为什么开发版本中的 apt-get 更新速度较慢?

为什么开发版本中的 apt-get 更新速度较慢?

当我更新 apt-get 时,universe repo 需要很长时间才能下载,我通常将速度限制在 130kbps 左右,这可以在不到一分钟的时间内轻松下载约 4mb,但它在每秒 1 字节和 30kpbs 以下之间跳跃(而且我在更新时没有运行任何会占用带宽的东西)。在 lucid 上更新很顺利,花费不到 10 秒,为什么现在需要大约 10 分钟……

will@UbuntuBox:~$ sudo apt-get update
Hit http://archive.canonical.com maverick Release.gpg                          
Ign http://archive.canonical.com/ maverick/partner Translation-en              
Get:1 http://ppa.launchpad.net maverick Release.gpg [316B]                     
Ign http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/ maverick/main Translation-en_US
Get:2 http://im.archive.ubuntu.com maverick Release.gpg [198B]                 
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/main Translation-en          
Hit http://security.ubuntu.com maverick-security Release.gpg                   
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en   
Hit http://extras.ubuntu.com maverick Release.gpg                              
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en              
Ign http://archive.canonical.com/ maverick/partner Translation-en_US           
Hit http://archive.canonical.com maverick Release                              
Get:3 http://ppa.launchpad.net maverick Release [57.3kB]                       
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_US           
Hit http://extras.ubuntu.com maverick Release                                  
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US       
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en    
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US 
Hit http://archive.canonical.com maverick/partner i386 Packages                
Hit http://extras.ubuntu.com maverick/main i386 Packages                       
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://im.archive.ubuntu.com maverick-updates Release.gpg              
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Hit http://im.archive.ubuntu.com maverick-proposed Release.gpg
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_US
Hit http://security.ubuntu.com maverick-security Release
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en_US
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en
Ign http://im.archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en_US
Get:4 http://im.archive.ubuntu.com maverick Release [57.3kB]
Hit http://security.ubuntu.com maverick-security/main Sources                  
Hit http://security.ubuntu.com maverick-security/restricted Sources            
Hit http://security.ubuntu.com maverick-security/universe Sources
Hit http://security.ubuntu.com maverick-security/main i386 Packages            
Hit http://security.ubuntu.com maverick-security/restricted i386 Packages      
Hit http://security.ubuntu.com maverick-security/multiverse i386 Packages      
Hit http://security.ubuntu.com maverick-security/universe i386 Packages
Get:5 http://ppa.launchpad.net maverick/main Sources [3,051B]                  
Get:6 http://ppa.launchpad.net maverick/main i386 Packages [6,396B]            
Hit http://im.archive.ubuntu.com maverick-updates Release                      
Hit http://im.archive.ubuntu.com maverick-proposed Release                     
Get:7 http://im.archive.ubuntu.com maverick/main Sources [829kB]               
Get:8 http://im.archive.ubuntu.com maverick/restricted Sources [4,361B]        
Get:9 http://im.archive.ubuntu.com maverick/universe Sources [4,186kB]         
Get:10 http://im.archive.ubuntu.com maverick/main i386 Packages [1,491kB]      
Get:11 http://im.archive.ubuntu.com maverick/restricted i386 Packages [6,000B] 
Get:12 http://im.archive.ubuntu.com maverick/multiverse i386 Packages [183kB]  
Get:13 http://im.archive.ubuntu.com maverick/universe i386 Packages [5,786kB]  
Hit http://im.archive.ubuntu.com maverick-updates/main Sources                 
Hit http://im.archive.ubuntu.com maverick-updates/restricted Sources           
Hit http://im.archive.ubuntu.com maverick-updates/universe Sources             
Hit http://im.archive.ubuntu.com maverick-updates/main i386 Packages           
Hit http://im.archive.ubuntu.com maverick-updates/restricted i386 Packages     
Hit http://im.archive.ubuntu.com maverick-updates/multiverse i386 Packages     
Hit http://im.archive.ubuntu.com maverick-updates/universe i386 Packages       
Hit http://im.archive.ubuntu.com maverick-proposed/restricted i386 Packages    
Hit http://im.archive.ubuntu.com maverick-proposed/main i386 Packages          
Hit http://im.archive.ubuntu.com maverick-proposed/universe i386 Packages      
Hit http://im.archive.ubuntu.com maverick-proposed/multiverse i386 Packages    
Fetched 12.6MB in 7min 54s (26.6kB/s)                                          
Reading package lists... Done

如果有人能帮忙,我会非常感激

答案1

发生这种情况是因为每个文件夹中的 Packages.gz 都很大并且现在经常更改。发布后,它将与 Lucid 相同。另外,尝试为您找到最快的服务器(在镜像选择对话框中)。

答案2

我相信造成这种情况的原因比 Extender 所说的要多一些。如果您查看终端的输出,您会看到以下几条条目:

Hit http://country.archive.ubuntu.com maverick/universe Sources

在开发期间,“universe”部分(还有“restricted”、“multiverse”和“main”部分)中的每个软件包更新都需要更改此文件。但是发布后,这些文件不再更新,相反,您将看到来自以下位置的更新:

Hit http://country.archive.ubuntu.com maverick-updates/universe Sources

因为只有相当小比例的软件包在发布后进行更新,所以该文件比在发布时发布并在开发期间使用的文件小得多。

现在 Ubuntu (Maverick) 10.10 已经发布,更新速度应该会更快。

相关内容