apt-get update usando o endereço do repositório errado

0

Eu herdei um nó que costumava se conectar ao nosso servidor interno para atualizar e baixar pacotes. Desde então, tirei o nó da VLAN interna, excluí o diretório /etc/apt/sources.list.d/ e atualizei o /etc/apt/sources.list para se parecer com o seguinte:

###### Debian Main Repos
deb http://deb.debian.org/debian/ oldstable main contrib
deb-src http://deb.debian.org/debian/ oldstable main contrib

deb http://deb.debian.org/debian/ oldstable-updates main contrib
deb-src http://deb.debian.org/debian/ oldstable-updates main contrib

deb http://deb.debian.org/debian-security oldstable/updates main
deb-src http://deb.debian.org/debian-security oldstable/updates main

deb http://ftp.debian.org/debian jessie-backports main
deb-src http://ftp.debian.org/debian jessie-backports main

Quando eu faço apt-get update , isto é o que eu vejo:

Err http://deb.debian.org oldstable InRelease                                 

Err http://ftp.debian.org jessie-backports InRelease                          

Err http://deb.debian.org oldstable-updates InRelease                         

Err http://deb.debian.org oldstable/updates InRelease

Err http://ftp.debian.org jessie-backports Release.gpg
  Unable to connect to [our internal server]:
Err http://deb.debian.org oldstable Release.gpg
  Unable to connect to [our internal server]:
Err http://deb.debian.org oldstable-updates Release.gpg
  Unable to connect to [our internal server]:
Err http://deb.debian.org oldstable/updates Release.gpg
  Unable to connect to [our internal server]:
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/oldstable/InRelease  

W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/InRelease  

W: Failed to fetch http://deb.debian.org/debian-security/dists/oldstable/updates/InRelease  

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/InRelease  

W: Failed to fetch http://deb.debian.org/debian/dists/oldstable/Release.gpg  Unable to connect to [our internal server]:

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/Release.gpg  Unable to connect to [our internal server]:

W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/Release.gpg  Unable to connect to [our internal server]:

W: Failed to fetch http://deb.debian.org/debian-security/dists/oldstable/updates/Release.gpg  Unable to connect to [our internal server]:

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

Não sei por que ainda está tentando se conectar ao nosso servidor interno que faz parte de uma VLAN diferente. Alguém pode me guiar?

    
por jeebface 30.10.2017 / 19:23

1 resposta

0

Finalmente descobri. Eu fiz apt-config dump e vi que ele tem configurações de proxy. Entrou em /etc/apt/apt.conf.d/ e comentou todas as linhas que começam com Acquire::HTTP::Proxy .

    
por 30.10.2017 / 19:49