Como dizer ao apt-get para mudar de Sources.bz2 para Sources.gz

1

Eu tenho uma instalação limpa de imagens kali-2.0.1-rpi.img em um Raspberry Pi B +. Ele está conectado ao mac via cabo e rede está funcionando: eu posso abrir páginas da web e pingar ips do pi. Depois de inicializar e logar como root, quando tento atualizar pacotes, só recebo erros informando que os arquivos não foram encontrados.

root@kali: apt-get update
Ign http://security.kali.org sana/updates InRelease
Ign http://security.kali.org sana/updates Release.gpg
Ign http://http.kali.org sana InRelease
Ign http://http.kali.org sana Release.gpg
Ign http://security.kali.org sana/updates Release
Ign http://http.kali.org sana Release
Ign http://security.kali.org sana/updates/main armel Packages/DiffIndex
Ign http://security.kali.org sana/updates/contrib armel Packages/DiffIndex
Ign http://security.kali.org sana/updates/non-free armel Packages/DiffIndex
Err http://http.kali.org sana/main Sources
  404  Not Found
Err http://security.kali.org sana/updates/main Sources
  404  Not Found
Err http://security.kali.org sana/updates/contrib Sources
  404  Not Found
Err http://http.kali.org sana/non-free Sources
  404  Not Found
Err http://http.kali.org sana/contrib Sources
  404  Not Found
Err http://security.kali.org sana/updates/non-free Sources
  404  Not Found
Err http://http.kali.org sana/main armel Packages
  404  Not Found
Err http://http.kali.org sana/non-free armel Packages
  404  Not Found
Err http://http.kali.org sana/contrib armel Packages
  404  Not Found
Ign http://security.kali.org sana/updates/contrib Translation-en
Ign http://http.kali.org sana/contrib Translation-en
Ign http://security.kali.org sana/updates/main Translation-en
Ign http://http.kali.org sana/main Translation-en
Ign http://security.kali.org sana/updates/non-free Translation-en
Ign http://http.kali.org sana/non-free Translation-en
Err http://security.kali.org sana/updates/main armel Packages
  404  Not Found
Err http://security.kali.org sana/updates/contrib armel Packages
  404  Not Found
Err http://security.kali.org sana/updates/non-free armel Packages
  404  Not Found
W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/main/source/Sources  404  Not Found

W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/contrib/source/Sources  404  Not Found

W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/non-free/source/Sources  404  Not Found

W: Failed to fetch http://http.kali.org/kali/dists/sana/main/source/Sources  404  Not Found

W: Failed to fetch http://http.kali.org/kali/dists/sana/non-free/source/Sources  404  Not Found

W: Failed to fetch http://http.kali.org/kali/dists/sana/contrib/source/Sources  404  Not Found

W: Failed to fetch http://http.kali.org/kali/dists/sana/main/binary-armel/Packages  404  Not Found

W: Failed to fetch http://http.kali.org/kali/dists/sana/non-free/binary-armel/Packages  404  Not Found

W: Failed to fetch http://http.kali.org/kali/dists/sana/contrib/binary-armel/Packages  404  Not Found

W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/main/binary-armel/Packages  404  Not Found

W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/contrib/binary-armel/Packages  404  Not Found

W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/non-free/binary-armel/Packages  404  Not Found

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

Se eu verificar quais arquivos apt-get está procurando

root@kali:~# apt-get update --print-uris
'http://security.kali.org/kali-security/dists/sana/updates/main/source/Sources.bz2' security.kali.org_kali-security_dists_sana_updates_main_source_Sources 0 :
'http://security.kali.org/kali-security/dists/sana/updates/contrib/source/Sources.bz2' security.kali.org_kali-security_dists_sana_updates_contrib_source_Sources 0 :
'http://security.kali.org/kali-security/dists/sana/updates/non-free/source/Sources.bz2' security.kali.org_kali-security_dists_sana_updates_non-free_source_Sources 0 :
'http://security.kali.org/kali-security/dists/sana/updates/main/binary-armel/Packages.bz2' security.kali.org_kali-security_dists_sana_updates_main_binary-armel_Packages 0 :
'http://security.kali.org/kali-security/dists/sana/updates/contrib/binary-armel/Packages.bz2' security.kali.org_kali-security_dists_sana_updates_contrib_binary-armel_Packages 0 :
'http://security.kali.org/kali-security/dists/sana/updates/non-free/binary-armel/Packages.bz2' security.kali.org_kali-security_dists_sana_updates_non-free_binary-armel_Packages 0 :
'http://security.kali.org/kali-security/dists/sana/updates/contrib/i18n/Translation-en.bz2' security.kali.org_kali-security_dists_sana_updates_contrib_i18n_Translation-en 0 :
'http://security.kali.org/kali-security/dists/sana/updates/main/i18n/Translation-en.bz2' security.kali.org_kali-security_dists_sana_updates_main_i18n_Translation-en 0 :
'http://security.kali.org/kali-security/dists/sana/updates/non-free/i18n/Translation-en.bz2' security.kali.org_kali-security_dists_sana_updates_non-free_i18n_Translation-en 0 :
'http://security.kali.org/kali-security/dists/sana/updates/InRelease' security.kali.org_kali-security_dists_sana_updates_InRelease 0
'http://http.kali.org/kali/dists/sana/main/source/Sources.bz2' http.kali.org_kali_dists_sana_main_source_Sources 0 :
'http://http.kali.org/kali/dists/sana/non-free/source/Sources.bz2' http.kali.org_kali_dists_sana_non-free_source_Sources 0 :
'http://http.kali.org/kali/dists/sana/contrib/source/Sources.bz2' http.kali.org_kali_dists_sana_contrib_source_Sources 0 :
'http://http.kali.org/kali/dists/sana/main/binary-armel/Packages.bz2' http.kali.org_kali_dists_sana_main_binary-armel_Packages 0 :
'http://http.kali.org/kali/dists/sana/non-free/binary-armel/Packages.bz2' http.kali.org_kali_dists_sana_non-free_binary-armel_Packages 0 :
'http://http.kali.org/kali/dists/sana/contrib/binary-armel/Packages.bz2' http.kali.org_kali_dists_sana_contrib_binary-armel_Packages 0 :
'http://http.kali.org/kali/dists/sana/contrib/i18n/Translation-en.bz2' http.kali.org_kali_dists_sana_contrib_i18n_Translation-en 0 :
'http://http.kali.org/kali/dists/sana/main/i18n/Translation-en.bz2' http.kali.org_kali_dists_sana_main_i18n_Translation-en 0 :
'http://http.kali.org/kali/dists/sana/non-free/i18n/Translation-en.bz2' http.kali.org_kali_dists_sana_non-free_i18n_Translation-en 0 :
'http://http.kali.org/kali/dists/sana/InRelease' http.kali.org_kali_dists_sana_InRelease 0

Eu posso ver que ele está tentando carregar Sources.bz2 . No entanto, vá para a diretório do arquivo em um navegador revela que há apenas um Sources.gz disponível.

Como posso dizer ao apt-get para carregar a versão gzipped?

    
por Karsten S. 03.09.2015 / 20:25

1 resposta

0

Desta vez, o problema estava basicamente na frente do monitor, mas mesmo assim achei uma opção a ser configurada:

apt-get -o Acquire::CompressionTypes::Order::=gz update

A adição de --print-uris mostra que apt-get agora está tentando buscar gz em vez de bz2 .

No entanto, como inicialmente indicado, esse não foi o principal problema, porque o comando ainda falha, não sendo possível recuperar o arquivo gz que está definitivamente disponível. Normalmente apt-get procura por vários tipos e deve ser capaz de buscar a versão gzipada apenas se estiver disponível.

O problema aqui foi que pow foi instalado no Mac. A conexão de rede para o pi tornou ping s possível para o mundo externo e qualquer wget baixou uma página - mas não a real, mas a página de alimentação do Mac. Portanto, não havia conexão com os servidores de atualização.

    
por 03.09.2015 / 21:49