Evitar que o apt-get use um espelho específico

3

Estou usando o Cubian X1 , uma distribuição customizada do wheezy do Debian, na minha placa Cubietruck ARM.

A execução do apt-get update falha, pois ele tenta se conectar ao mirror.isoc.org.il mirror que é filtrado dentro do Irã, junto com outros domínios / IPs hospedados em Israel.

Aqui está o conteúdo de /etc/apt/sources.list :

deb http://http.debian.net/debian/ wheezy main contrib non-free
deb http://http.debian.net/debian/ wheezy-updates main contrib non-free
deb http://http.debian.net/debian wheezy-backports main
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://packages.cubian.org/ wheezy main non-free
deb http://repo.ajenti.org/debian main main debian

Eu também comentei as referências isoc.org.il dentro desses dois arquivos:

  • /usr/share/python-apt/templates/Ubuntu.mirrors
  • /usr/share/python-apt/templates/Debian.mirrors

Mas o apt-get update ainda falha com as seguintes mensagens:

W: Failed to fetch http://http.debian.net/debian/dists/wheezy/Release.gpg  Could not connect to mirror.isoc.org.il:80 (192.115.211.70). - connect (110: Connection timed out)

W: Failed to fetch http://http.debian.net/debian/dists/wheezy-updates/Release.gpg  Unable to connect to mirror.isoc.org.il:http:

W: Failed to fetch http://http.debian.net/debian/dists/wheezy-backports/Release.gpg  Unable to connect to mirror.isoc.org.il:http:

Não sei por que o apt-get ainda tenta um espelho como mirror.isoc.org.il. Talvez seja reconhecido como o espelho mais próximo. Existe alguma maneira de guiar o apt-get para se conectar a outro espelho?

O acompanhamento é a saída completa do apt-get update :

cubie@Cubian:~$ sudo apt-get update
Get:1 http://repo.ajenti.org main Release.gpg [490 B]
Get:2 http://packages.cubian.org wheezy Release.gpg [316 B]
Hit http://repo.ajenti.org main Release
Get:3 http://security.debian.org wheezy/updates Release.gpg [836 B]
Hit http://packages.cubian.org wheezy Release
Hit http://repo.ajenti.org main/main armhf Packages
Hit http://packages.cubian.org wheezy/main armhf Packages
Hit http://security.debian.org wheezy/updates Release
Hit http://packages.cubian.org wheezy/non-free armhf Packages
Hit http://repo.ajenti.org main/debian armhf Packages
Hit http://security.debian.org wheezy/updates/main armhf Packages
Get:4 http://http.debian.net wheezy Release.gpg [1,655 B]
Hit http://packages.cubian.org wheezy/main Translation-en_US
Hit http://security.debian.org wheezy/updates/contrib armhf Packages
Hit http://packages.cubian.org wheezy/main Translation-en
Get:5 http://http.debian.net wheezy-updates Release.gpg [836 B]
Hit http://packages.cubian.org wheezy/non-free Translation-en_US
Hit http://security.debian.org wheezy/updates/non-free armhf Packages
Get:6 http://http.debian.net wheezy-backports Release.gpg [836 B]
Hit http://packages.cubian.org wheezy/non-free Translation-en
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://http.debian.net wheezy Release
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://http.debian.net wheezy-updates Release
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Hit http://http.debian.net wheezy-backports Release
Hit http://http.debian.net wheezy/main armhf Packages
Hit http://http.debian.net wheezy/contrib armhf Packages
Hit http://http.debian.net wheezy/non-free armhf Packages
Hit http://http.debian.net wheezy/contrib Translation-en
Hit http://http.debian.net wheezy/main Translation-en
Hit http://http.debian.net wheezy/non-free Translation-en
Hit http://http.debian.net wheezy-updates/main armhf Packages/DiffIndex
Hit http://http.debian.net wheezy-updates/contrib armhf Packages
Hit http://http.debian.net wheezy-updates/non-free armhf Packages
Hit http://http.debian.net wheezy-updates/contrib Translation-en
Ign http://repo.ajenti.org main/debian Translation-en_US
Hit http://http.debian.net wheezy-updates/main Translation-en/DiffIndex
Ign http://repo.ajenti.org main/debian Translation-en
Ign http://repo.ajenti.org main/main Translation-en_US
Ign http://repo.ajenti.org main/main Translation-en
Hit http://http.debian.net wheezy-updates/non-free Translation-en
Hit http://http.debian.net wheezy-backports/main armhf Packages/DiffIndex
Hit http://http.debian.net wheezy-backports/main Translation-en/DiffIndex
Fetched 4,969 B in 18s (268 B/s)
Reading package lists... Done
cubie@Cubian:~$ sudo apt-get update
Get:1 http://repo.ajenti.org main Release.gpg [490 B]
Hit http://security.debian.org wheezy/updates Release.gpg
Get:2 http://repo.ajenti.org main Release [11.1 kB]
Hit http://packages.cubian.org wheezy Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://repo.ajenti.org main/main armhf Packages
Hit http://packages.cubian.org wheezy Release
Hit http://packages.cubian.org wheezy/main armhf Packages
Hit http://security.debian.org wheezy/updates/main armhf Packages
Get:3 http://repo.ajenti.org main/debian armhf Packages [1,468 B]
Hit http://packages.cubian.org wheezy/non-free armhf Packages
Hit http://security.debian.org wheezy/updates/contrib armhf Packages
Hit http://packages.cubian.org wheezy/main Translation-en_US
Hit http://security.debian.org wheezy/updates/non-free armhf Packages
Hit http://packages.cubian.org wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://packages.cubian.org wheezy/non-free Translation-en_US
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://packages.cubian.org wheezy/non-free Translation-en
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Ign http://repo.ajenti.org main/debian Translation-en_US
Ign http://repo.ajenti.org main/debian Translation-en
Ign http://repo.ajenti.org main/main Translation-en_US
Ign http://repo.ajenti.org main/main Translation-en
Err http://http.debian.net wheezy Release.gpg
  Could not connect to mirror.isoc.org.il:80 (192.115.211.70). - connect (110: Connection timed out)
Err http://http.debian.net wheezy-updates Release.gpg
  Unable to connect to mirror.isoc.org.il:http:
Err http://http.debian.net wheezy-backports Release.gpg
  Unable to connect to mirror.isoc.org.il:http:
Hit http://http.debian.net wheezy Release
Hit http://http.debian.net wheezy-updates Release
Hit http://http.debian.net wheezy-backports Release
Ign http://http.debian.net wheezy/main armhf Packages/DiffIndex
Ign http://http.debian.net wheezy/contrib armhf Packages/DiffIndex
Ign http://http.debian.net wheezy/non-free armhf Packages/DiffIndex
Hit http://http.debian.net wheezy/contrib Translation-en
Hit http://http.debian.net wheezy/main Translation-en
Hit http://http.debian.net wheezy/non-free Translation-en
Hit http://http.debian.net wheezy-updates/main armhf Packages/DiffIndex
Ign http://http.debian.net wheezy-updates/contrib armhf Packages/DiffIndex
Ign http://http.debian.net wheezy-updates/non-free armhf Packages/DiffIndex
Hit http://http.debian.net wheezy-updates/contrib Translation-en
Hit http://http.debian.net wheezy-updates/main Translation-en/DiffIndex
Hit http://http.debian.net wheezy-updates/non-free Translation-en
Hit http://http.debian.net wheezy-backports/main armhf Packages/DiffIndex
Hit http://http.debian.net wheezy-backports/main Translation-en/DiffIndex
Hit http://http.debian.net wheezy/main armhf Packages
Hit http://http.debian.net wheezy/contrib armhf Packages
Hit http://http.debian.net wheezy/non-free armhf Packages
Hit http://http.debian.net wheezy-updates/contrib armhf Packages
Hit http://http.debian.net wheezy-updates/non-free armhf Packages
Fetched 13.1 kB in 2min 9s (101 B/s)
W: Failed to fetch http://http.debian.net/debian/dists/wheezy/Release.gpg  Could not connect to mirror.isoc.org.il:80 (192.115.211.70). - connect (110: Connection timed out)

W: Failed to fetch http://http.debian.net/debian/dists/wheezy-updates/Release.gpg  Unable to connect to mirror.isoc.org.il:http:

W: Failed to fetch http://http.debian.net/debian/dists/wheezy-backports/Release.gpg  Unable to connect to mirror.isoc.org.il:http:

E: Some index files failed to download. They have been ignored, or old ones used instead.
    
por Isaac 01.04.2015 / 19:55

2 respostas

1

Eu não consegui encontrar o caminho para remover o Replese.gpg como disse mark .

No entanto, eu também recebo erros similares durante apt-get install , já que o apt-get ainda tentou se conectar a isoc.org.il .

Para reslobrir o problema, gerei as primeiras 4 linhas com um espelho fixo (espelho US) usando debgen.simplylinux.ch . Aqui está o trabalho final sources.list :

deb http://ftp.us.debian.org/debian wheezy main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-backports main
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://packages.cubian.org/ wheezy main non-free
deb http://repo.ajenti.org/debian main main debian
    
por 04.04.2015 / 16:35
-1

Abra "software e atualizações" do painel.

Escolha a guia "outro software".

Encontre essas três linhas e desmarque-as ou exclua-as.

http://http.debian.net/debian/dists/wheezy/Release.gpg

http://http.debian.net/debian/dists/wheezy-backports/Release.gpg

http.debian.net/debian/dists/wheezy-updates/Release.gpg

Agora você pode

sudo apt-get update

Deve ficar bem.

EDIT: Para remover repos via terminal, por favor consulte ESTA extensa resposta

Estes repos devem ser removidos já que eles não existem mais, quando o apt tenta atualizar seus pacotes ele não pode encontrar estes repos e relata o erro "Falha ao buscar", no seu caso específico deve remover esses repositórios antigos.

    
por 01.04.2015 / 19:59