Linux

sudo apt-get update 不更新 Debian Wheezy 中的儲存庫

  • July 16, 2015

我正在嘗試使用以下命令更新儲存庫,但它失敗了:

sudo apt-get update

以下是上述命令的輸出:

Hit http://dl.google.com stable Release.gpg
Hit http://deb.opera.com stable Release.gpg                                                                                        
Hit http://liveusb.info all Release.gpg                                                                                            
Hit http://dl.google.com stable Release                                                                                            
Hit http://deb.opera.com stable Release                                                                                            
Hit http://liveusb.info all Release                                                                                                
Hit http://dl.google.com stable/main i386 Packages                                                                                 
Hit http://repo.mysql.com wheezy Release.gpg                                                                                       
Hit http://linux.dropbox.com wheezy Release.gpg                                                                                    
Hit http://deb.opera.com stable/non-free i386 Packages                                                                             
Hit http://liveusb.info all/main i386 Packages                                                                                     
Hit http://security.debian.org wheezy/updates Release.gpg                                                                          
Get:1 http://http.debian.net wheezy Release.gpg [1,655 B]                                                                          
Hit http://linux.dropbox.com wheezy Release                                                                                        
Hit http://security.debian.org wheezy/updates Release                                                                              
Hit http://repo.mysql.com wheezy Release                                                                                           
Hit http://linux.dropbox.com wheezy/main i386 Packages                                                                             
Hit http://security.debian.org wheezy/updates/main i386 Packages                                                                   
Get:2 http://http.debian.net wheezy Release [168 kB]                                                                               
Hit http://repo.mysql.com wheezy/mysql-apt-config i386 Packages                                                                    
Hit http://security.debian.org wheezy/updates/main Translation-en                                                                  
Ign http://dl.google.com stable/main Translation-en_US                                                                             
Ign http://deb.opera.com stable/non-free Translation-en_US                                                                         
Ign http://dl.google.com stable/main Translation-en                                                                                
Ign http://liveusb.info all/main Translation-en_US                                                                                 
Ign http://deb.opera.com stable/non-free Translation-en                                                                            
Ign http://liveusb.info all/main Translation-en                                                                                    
Get:3 http://http.debian.net wheezy/main i386 Packages [5,858 kB]                                                                  
Ign http://linux.dropbox.com wheezy/main Translation-en_US                                                                         
Ign http://linux.dropbox.com wheezy/main Translation-en                                                                            
Get:4 http://http.debian.net wheezy/main Translation-en [3,846 kB]                                                                 
Ign http://repo.mysql.com wheezy/mysql-apt-config Translation-en_US                                                                
Ign http://repo.mysql.com wheezy/mysql-apt-config Translation-en                                                                   
Err http://http.debian.net wheezy-updates Release.gpg                         
Cannot initiate the connection to ftp.tr.debian.org:80 (2001:a98:11::100). - connect (101: Network is unreachable) [IP: 2001:a98:11::100 80]
Get:5 http://http.debian.net wheezy-updates Release [124 kB]
Err http://http.debian.net wheezy-updates/main Translation-en

Err http://http.debian.net wheezy-updates/main Translation-en

Get:6 http://http.debian.net wheezy-updates/main i386 Packages [3,397 B]
Err http://http.debian.net wheezy-updates/main Translation-en

Err http://http.debian.net wheezy-updates/main Translation-en

Err http://http.debian.net wheezy-updates/main Translation-en
Cannot initiate the connection to ftp.tr.debian.org:80 (2001:a98:11::100). - connect (101: Network is unreachable) [IP: 2001:a98:11::100 80]
Fetched 10.0 MB in 1min 5s (152 kB/s)
W: Failed to fetch http://http.debian.net/debian/dists/wheezy-updates/Release.gpg  Cannot initiate the connection to ftp.tr.debian.org:80 (2001:a98:11::100). - connect (101: Network is unreachable) [IP: 2001:a98:11::100 80]

W: Failed to fetch http://http.debian.net/debian/dists/wheezy-updates/main/i18n/Translation-en  Cannot initiate the connection to ftp.tr.debian.org:80 (2001:a98:11::100). - connect (101: Network is unreachable) [IP: 2001:a98:11::100 80]

E: Some index files failed to download. They have been     Ignored, or old ones used instead.

以下是我的 /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20140716-13:13]/ wheezy contrib main contrib non-free non-free

deb http://http.debian.net/debian wheezy main contrib non-free
deb-src http://http.debian.net/debian wheezy main contrib non-free

deb http://http.debian.net/debian wheezy-updates main contrib non-free
deb-src http://http.debian.net/debian wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src ftp://ftp2.de.debian.org/debian/ wheezy/updates main contrib non-free

## Depôt MultiSystem
deb http://liveusb.info/multisystem/depot all main
# deb http://http.us.debian.org/debian/ wheezy contrib non-free main

http://http.debian.net>不直接提供服務,它只是將您重定向到鏡像。它試圖變得聰明,並把你送到一個“接近”的地方。[有關詳細資訊,請參閱http://http.debian.net/](http://http.debian.net/)的實際網頁,有關其他詳細資訊,請參閱<http://rgeissert.blogspot.co.nz/p/httpdebiannet-faq.html

無論哪種方式,問題在於您在嘗試時沒有到 ftp.tr.debian.org 的 IPv6 連接;可能是鏡像已關閉,或者您的 IPv6 網路連接存在問題。

稍等片刻再試一次(希望得到一個不同的鏡像,或者發現暫時性問題已經消失),或者在您的 apt 源中指定一個明確的特定鏡像而不是重定向器。

引用自:https://serverfault.com/questions/656030