Algo errado com o apt-get no Ubuntu 15.10

3

Quando tento executar o apt update, tenho um problema desse tipo:

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]

Eu tentei descobrir o que está errado, mas não encontrei uma resposta. P.S. Eu não uso um proxy.

    
por Vladyslav Krylasov 15.12.2015 / 02:24

1 resposta

5

Para desabilitar o suporte a IPv6 no Ubuntu, edite o seguinte arquivo: /etc/sysctl.conf .

net.ipv6.conf.all.disable_ipv6=1  
net.ipv6.conf.default.disable_ipv6=1  
net.ipv6.conf.lo.disable_ipv6=1

A adição dessas linhas desativará o suporte a IPv6 (em loopback), um padrão para todas as etginterfaces disponíveis. Você precisará reinicializar as interfaces de rede:

/etc/init.d/networking restart
    
por Tung Tran 15.12.2015 / 03:16