Я пытаюсь обновить репозитории с помощью следующей команды, но это не удается:

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

1 ответ1

0

Выглядит как проблема с ipv6. Первый метод: создайте файл /etc/apt/apt.conf.d/99force-ipv4 и добавьте эту строку Acquire::ForceIPv4 "true"; это заставит apt использовать ipv4. Другой вторичный метод заключается в добавлении precedence ::ffff:0:0/96 100 в /etc/gai.conf

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .