Apt-Get Update不断获得相同的包
我今天在桌面计算机上启动了apt-get update
,并在30分钟后仍在运行。
它不断从同一个存储库下载。 每一行都有一个Get
计数器,并且不断递增。 我最终放弃了它。
我得到的输出是:
Get:53 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Hit http://security.ubuntu.com trusty-security/multiverse Translation-en Get:54 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Hit http://security.ubuntu.com trusty-security/restricted Translation-en Get:55 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Get:56 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Get:57 http://security.ubuntu.com trusty-security/universe Translation-en [67.8 kB] Get:58 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Get:59 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] ... Get:8286 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Get:8287 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Get:8288 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Get:8289 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB] Get:8290 http://nz.archive.ubuntu.com trusty-updates Release [63.5 kB]
我正在运行这个工作,我们有一个代理服务器。 我也在我照看的其中一台服务器上尝试过它。 相同的结果 – 它被卡在同一条线上。
我的桌面和服务器都运行Ubuntu 14.04。
它可能与这个问题有关,但是我遇到了apt-get update
的问题,而这个问题与apt-get upgrade
存在问题
我还没有在家里尝试这个。
我把它缩小到两个文件:
http://nz.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release http://nz.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg
当我开始apt-get-update
, /var/lib/apt/lists/partial
会出现一些文件,包括这两个文件。
该列表将很快变短,最终只剩下这两个文件。
我查看了http://nz.archive.ubuntu.com/ubuntu/dists/trusty-updates
,发现partial
Release.gpg
具有相同的大小,但文件Release
时间太短。 我还注意到这些文件昨晚在服务器上更新了。
有趣的是,我可以在浏览器中查看和下载文件Release.gpg
,但我只能在浏览器中查看文件Release
:当我尝试下载它时(“将文件另存为…”),Firefox回复说它无法读取文件/tmp/Xu4f...
并且磁盘上的文件Release
将为空。
突然间,一切都重新开始了: apt-get update
在几秒钟内就完成了,我可以毫无问题地下载文件Release
。
我能想到的唯一解释是某处存在缓存问题,因为这些文件昨晚更新了。