Tag: 易于

为什么我收到错误101? 我的DNS如何参与?

我得到的Update information is outdated 。 我尝试了sudo apt-get update并得到了这些错误: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/Release.gpg Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). – connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80] W: Failed to fetch http://repository.spotify.com/dists/stable/Release.gpg Something wicked happened resolving ‘repository.spotify.com:http’ (-11 – System error) W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/i18n/Translation-en_IN Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::13). […]

Apt“找不到分发模板”错误

当我尝试使用apt-get安装任何东西时,我收到以下错误: Traceback (most recent call last): File “/usr/bin/add-apt-repository”, line 60, in sp = SoftwareProperties() File “/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py”, line 90, in __init__ self.reload_sourceslist() File “/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py”, line 538, in reload_sourceslist self.distro.get_sources(self.sourceslist) File “/usr/lib/python2.6/dist-packages/aptsources/distro.py”, line 90, in get_sources raise NoDistroTemplateException(“Error: could not find a ” aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template 知道这意味着什么以及如何解决它?

16.04 apt update永远不会结束

它几天前就开始了。 我正在运行sudo apt update命令,它永远不会结束。 终端输出是 Get:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Hit:2 http://archive.canonical.com/ubuntu xenial InRelease Hit:3 http://ppa.launchpad.net/attente/java-non-latin-shortcuts/ubuntu xenial InRelease Hit:4 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease Hit:6 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB] Hit:8 http://dl.google.com/linux/chrome/deb stable Release Hit:9 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease Fetched 341 kB in 2s (150 kB/s) 虽然这个处理系统的风扇速度在我的笔记本电脑上提升了,听起来有点烦人。 但是没有过多的cpu活动。 你们能暗示我为什么会这样吗?

apt-get更新和升级有什么区别?

apt-get update和apt-get upgrade什么区别? 我应该先跑哪个? 他们中的任何一个会自动运行另一个吗?

apt-get被困在“在XXsec中获取XXKb”

我尝试安装交叉,从他们的网站下载.deb后,我按照Ubuntu软件中心打开它时的步骤: 在64位版本的Debian和一些Ubuntu变种上,首先打开一个终端并运行sudo dpkg –add-architecture i386 ; sudo apt-get update sudo dpkg –add-architecture i386 ; sudo apt-get update 由于我有Ubuntu 16.04 LTS 64位,我执行命令。 但是当复制并将该命令粘贴到我的终端时,它在7秒内停在了535kb的Fetched并在那里停留了大约20分钟。 我最终关闭了它并尝试单独运行两个命令,但在执行了sudo apt-get update命令之后,它也在“XXsec中获取XXKb”之后再次停止。 我重新启动了我的计算机并决定运行软件更新程序,并且它在大约75%的时间内停留了几个小时。

当我尝试通过synaptic更新时,获取“’文件’与系统上的同一文件不同”

通过Synaptic Manager更新时遇到错误。 后续更新在输出的底部给出了错误。 我是菜鸟,所以任何帮助都表示赞赏。 al@al:~$ sudo apt-get -f upgrade Reading package lists… Done Building dependency tree Reading state information… Done Correcting dependencies… Done The following NEW packages will be installed: libjack-jackd2-0:i386 The following packages have been kept back: linux-headers-generic skype 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get […]

错误::您必须在sources.list中放置一些“源”URI

我正在尝试在ubuntu上安装PIL python模块 我首先需要使用以下命令安装一个名为python-imaging的包 sudo apt-get build-dep python-imaging 当我尝试这样做时,我得到了错误 E: You must put some ‘source’ URIs in your sources.list 我看到这个问题,显示如何通过GUI修复,但我正在使用命令行。 有谁知道我怎么能解决这个错误..? 更新:根据以下答案,我已更新我的包列表,但我现在收到此错误。 不确定它是否相关,如果不是,我会开始一个新问题,因为我无法在任何地方找到对错误的引用。 E: Build-Depends dependency for python-imaging cannot be satisfied because candidate version of package python-all-dev can’t satisfy version requirements

使用apt时如何解决“文件末尾的额外垃圾”?

我正在尝试为来宾虚拟机配置一些代理,现在我得到: sudo apt-get update E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file 该文件的内容是: cat /etc/apt/apt.conf.d/95proxy Acquire::http::proxy “http://10.0.0.60:3128/” Acquire::ftp::proxy “http://10.0.0.60:3128/” Acquire::https::proxy “http://10.0.0.60:3128/”

查看要升级的包的apt-get更改日志

此问题描述了如何获取给定包的更改日志。 但是,这是整个更改日志。 我想要的是一种方式来看看我即将升级的内容会发生什么变化。 例如,我想象的是: $ sudo apt-get upgrade –show-changelogs Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages will be upgraded: foo — adds the bar feature for better snazziness — removes the deprecated baz feature 1 upgraded, 0 newly installed, 0 to remove and 0 not […]

apt-get update非常慢,卡在“等待标题”

我看过类似的问题: 坚持0%[等待标题] 使用Windows XP ICS时,apt-get update停留在“Waiting for Headers”上 然而,他们都没有回答我的问题。 我正在运行12.04 AMD64并且最近开始遇到一个问题,当我通过终端从家里的连接更新我的回购时,使用sudo apt-get update,它需要永远(字面上2小时后是28%),但是当我从不同的位置跑步时,完成时间不到5分钟。 我试图改变我使用的镜像,但这并没有解决问题。 我也减少了我的来源列表中的内容,但这也没有区别。 我的ADSL线路没有故障,因为我已经联系了我的ISP来检查这一点。 如果我使用WiFi或网络电缆连接也没有区别。 可能是我的问题? 速度测试(www.speedtest.net)下降约0.9 Mbps和0.42 Mbps(这是广告线速度下的阴影),我居住在南非并使用UCT LEG服务器。 但是我也尝试过SA中可用的其他镜像……它们都没有区别。