Falha ao buscar a atualização do APT (não uma duplicata)

1

Eu já verifiquei este , this e this responde, nenhum deles funciona no meu caso. Aqui está o que estou recebendo quando executo sudo apt-get update no meu laptop 14.04 LTS:

Get:10 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [336 kB]
Get:11 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [13.2 kB]
Get:12 http://us.archive.ubuntu.com trusty-updates/main Translation-en [350 kB]
Get:13 http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en [6,832 B]
Get:14 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [176 kB]
Get:15 http://us.archive.ubuntu.com trusty Release [58.5 kB]                   
Get:16 http://us.archive.ubuntu.com trusty/main i386 Packages [14 B]           
Get:17 http://us.archive.ubuntu.com trusty/universe i386 Packages [5,866 kB]   
Get:18 http://us.archive.ubuntu.com trusty/universe i386 Packages [5,866 kB]    
Get:19 http://us.archive.ubuntu.com trusty/main Translation-en [762 kB]        ^[[B^[[B
Get:20 http://us.archive.ubuntu.com trusty/universe Translation-en [4,089 kB]  
Fetched 7,516 kB in 22min 42s (5,514 B/s)                                      
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages  Hash Sum mismatch

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

Já experimentei sudo apt-get clean seguido por rm -rf /var/lib/apt/lists antes de atualizar novamente, mas não funcionou. Aqui estão os repositórios habilitados em sources.list :

deb http://us.archive.ubuntu.com/ubuntu/ trusty main
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://security.ubuntu.com/ubuntu trusty-security main
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main universe multiverse

EDITAR

Como expliquei nos comentários, a resposta à pergunta vinculada não funcionou para mim. Eu já tentei remover a pasta lists e executar apt-get clean

    
por Prahlad Yeri 01.02.2016 / 19:42

1 resposta

1

Primeiramente, gerei um sources.list limpo e mínimo de repogen tendo apenas main e universe seções . Em seguida, fiz uma redefinição completa do meu sistema apt seguindo:

sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/
sudo apt-get update --fix-missing

Mas mesmo isso não resolveu o problema. Em seguida, localizei a origem do problema na seção universe da linha do repo em sources.list :

deb http://in.archive.ubuntu.com/ubuntu trusty main
#deb http://in.archive.ubuntu.com/ubuntu trusty universe

Descobri que depois de comentar a seção universe , apt-get update funcionou sem nenhum problema, mas com universe adicionado, recebi este erro:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release  Unable to find expected entry 'universe/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

Então, conforme sugestão do @FlorianDiesch, tentei trocar os servidores: tentei os principais, indianos e americanos, mas sem sorte:

deb http://archive.ubuntu.com/ubuntu trusty universe
deb http://in.archive.ubuntu.com/ubuntu trusty universe
deb http://us.archive.ubuntu.com/ubuntu trusty universe

Finalmente, tentei o servidor alemão e valeu a pena!

deb http://de.archive.ubuntu.com/ubuntu trusty universe

Agora, apt-get update fez uma atualização adequada sem problemas. Isso parece sugerir que os arquivos Release dos outros servidores têm alguns problemas ou que não gostam da configuração da minha máquina por algum motivo.

    
por Prahlad Yeri 01.02.2016 / 21:33