Problema com o sudo apt-get update

2

Estou por trás de um proxy. Toda vez que executo o comando apt-get update, esta é a saída na tela

Err http://extras.ubuntu.com trusty InRelease

Err http://extras.ubuntu.com trusty Release.gpg                                
  Unable to connect to extras.ubuntu.com:http:
Err http://security.ubuntu.com trusty-security InRelease                       

Err http://security.ubuntu.com trusty-security Release.gpg                     
  Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.15 80]
Err http://in.archive.ubuntu.com trusty InRelease       

Err http://in.archive.ubuntu.com trusty-updates InRelease

Err http://in.archive.ubuntu.com trusty-backports InRelease

Err http://in.archive.ubuntu.com trusty Release.gpg     
  Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
Err http://in.archive.ubuntu.com trusty-updates Release.gpg
  Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
Err http://in.archive.ubuntu.com trusty-backports Release.gpg
  Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]
Reading package lists... Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease  

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease  

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease  

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Unable to connect to extras.ubuntu.com:http:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.15 80]

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.149 80]

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

pings para todos os servidores funcionam bem Eu tenho desabilitar endereços ipv6. Nada parece funcionar. Alguém pode me ajudar

    
por Aymen Mir 30.12.2015 / 13:38

1 resposta

5

Sistemas Ubuntu e Debian.

Adicionar:

Acquire::http::Proxy "http://yourproxyaddress:proxyport";

Para arquivar:

/etc/apt/apt.conf

Esta é a única entrada neste arquivo e minhas variáveis de proxy do sistema estão vazias.

http_proxy
https_proxy
HTTP_PROXY
HTTPS_PROXY

outro trabalho gira em torno de:

  1. Use o endereço IP e não o FQDN na linha de aquisição.
  2. Adicione as informações de proxy a um navegador, teste de proxy
  3. link
  4. o proxy exige autorização
por 30.12.2015 / 15:03

Tags