Não é possível atualizar após excluir o proxy

1

Eu tinha um servidor de cache apt instalado em 192.168.40.97:3142 usando apt-cacher-ng . Para usá-lo no meu laptop, adicionei um arquivo 02proxy no diretório /etc/apt/apt.conf.d que tinha o seguinte conteúdo.

Acquire::http { Proxy "http://192.168.40.97:3142"; };

Mas eu queria usar o apt sem proxy, pois o servidor tinha alguns problemas. Então eu deletei o arquivo 02proxy e tentei apt update . Mas ainda está tentando se conectar ao servidor.

r2m@ssl-60:/etc/apt/apt.conf.d$ sudo apt update
Err:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
  Could not connect to 192.168.40.97:3142 (192.168.40.97). - connect (111:     Connection refused)
Err:2 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Unable to connect to 192.168.40.97:3142:
Err:3 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
  Unable to connect to 192.168.40.97:3142:
Err:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Could not connect to 192.168.40.97:3142 (192.168.40.97). - connect (111: Connection refused)
Reading package lists... Done                   
Building dependency tree       
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not connect to 192.168.40.97:3142 (192.168.40.97). - connect (111: Connection refused)
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Unable to connect to 192.168.40.97:3142:
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Unable to connect to 192.168.40.97:3142:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Could not connect to 192.168.40.97:3142 (192.168.40.97). - connect  (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.

O que deve ser feito para remover o proxy? Estou usando no Ubuntu 16.04

Linux ssl-60 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

    
por rajeev_r_menon 06.01.2018 / 18:51

1 resposta

2

verifique se há uma linha contendo a palavra Proxy neste arquivo /etc/apt/apt.conf.d/70debconf

e se a palavra Proxy estiver presente, exclua a linha e depois execute o comando apt update

fonte: link

    
por 06.01.2018 / 19:46