Ubuntu 15.10 中的 apt-get 有问题

Vla*_*sov 3 updates apt networking

当我尝试运行 apt update 时,我遇到了这样的问题:

Ign archive.ubuntu.com wily InRelease
Ign archive.ubuntu.com wily-updates InRelease                           
Ign archive.ubuntu.com wily-backports InRelease                         
Ign archive.ubuntu.com wily-security InRelease                          
Err archive.ubuntu.com wily Release.gpg                                 
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Err archive.ubuntu.com wily-updates Release.gpg                         
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Err archive.ubuntu.com wily-backports Release.gpg                       
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Err archive.ubuntu.com wily-security Release.gpg                        
  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Run Code Online (Sandbox Code Playgroud)

我试图弄清楚出了什么问题,但我没有找到答案。PS我不使用代理。

Tun*_*ran 5

要在 Ubuntu 下禁用 IPv6 支持,请编辑以下文件:/etc/sysctl.conf.

net.ipv6.conf.all.disable_ipv6=1  
net.ipv6.conf.default.disable_ipv6=1  
net.ipv6.conf.lo.disable_ipv6=1
Run Code Online (Sandbox Code Playgroud)

添加这些行将禁用 IPv6 支持(在环回中),这是所有可用的 etginterfaces 的默认设置。您将需要重新启动网络接口:

/etc/init.d/networking restart
Run Code Online (Sandbox Code Playgroud)