update - Some index files failed to download

If none of the more specific forums is the right place to ask

update - Some index files failed to download

Postby marchello » 2013-10-29 21:21

Hi all,

my system failed to update, it lasts few days... What is wrong?

$ sudo apt-get update -y; sudo apt-get upgrade -y; sudo apt-get autoremove -y; sudo apt-get clean -y
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Hit http://archive.raspberrypi.org wheezy Release
Hit http://mirrordirector.raspbian.org wheezy Release
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Get:1 http://mirrordirector.raspbian.org wheezy/main armhf Packages [9509 kB]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Fetched 1 B in 22s (0 B/s)
W: Failed to fetch gzip:/var/lib/apt/lists/partial/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
marchello
 
Posts: 59
Joined: 2013-10-08 08:47

Re: update - Some index files failed to download

Postby subhuman » 2013-10-30 14:57

/var/lib/apt/lists/partial/ - what if you just remove the file in that directory?
User avatar
subhuman
 
Posts: 359
Joined: 2011-08-20 14:54

Re: update - Some index files failed to download

Postby marchello » 2013-10-30 15:51

subhuman wrote:/var/lib/apt/lists/partial/ - what if you just remove the file in that directory?


Thanks for your suggestion, I'll try it at home in the evening and reply.
marchello
 
Posts: 59
Joined: 2013-10-08 08:47

Re: update - Some index files failed to download

Postby marchello » 2013-10-30 20:58

Seems that it did the trick, thanks! :-)

pi@raspberrypi ~ $ sudo rm /var/lib/apt/lists/partial/*
pi@raspberrypi ~ $ sudo apt-get update
Hit http://archive.raspbian.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://archive.raspbian.org wheezy Release
Hit http://raspberrypi.collabora.com wheezy Release
Hit http://archive.raspberrypi.org wheezy Release
Get:1 http://archive.raspbian.org wheezy/main Sources [6252 kB]
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Hit http://archive.raspbian.org wheezy/contrib Sources
Hit http://archive.raspbian.org wheezy/non-free Sources
Hit http://archive.raspbian.org wheezy/rpi Sources
Get:2 http://archive.raspbian.org wheezy/main armhf Packages [7414 kB]
Hit http://archive.raspbian.org wheezy/contrib armhf Packages
Hit http://archive.raspbian.org wheezy/non-free armhf Packages
Hit http://archive.raspbian.org wheezy/rpi armhf Packages
Ign http://archive.raspbian.org wheezy/contrib Translation-en
Ign http://archive.raspbian.org wheezy/main Translation-en
Ign http://archive.raspbian.org wheezy/non-free Translation-en
Ign http://archive.raspbian.org wheezy/rpi Translation-en
Fetched 13.7 MB in 1min 29s (154 kB/s)
Reading package lists... Done
marchello
 
Posts: 59
Joined: 2013-10-08 08:47

Re: update - Some index files failed to download

Postby mayerjusc08 » 2014-03-20 00:36

Hi,
I am having the same error issues on the $ sudo apt-get update
I have internet connection; can connect to google, etc without any issue

pi@raspberrypi ~ $ sudo apt-get update
Err http://mirrordirector.raspbian.org wheezy Release.gpg
Could not connect to mirrordirector.raspbian.org:80 (5.153.225.207). - connect
(111: Connection refused)
Hit http://repository.wolfram.com stable Release.gpg
Hit http://repository.wolfram.com stable Release
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Hit http://repository.wolfram.com stable/non-free armhf Packages
Hit http://archive.raspberrypi.org wheezy Release
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://repository.wolfram.com stable/non-free Translation-en_GB
Ign http://repository.wolfram.com stable/non-free Translation-en
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Reading package lists... Done
W: Failed to fetch http://mirrordirector.raspbian.org/rasp ... wheezy/Rel
ease.gpg Could not connect to mirrordirector.raspbian.org:80 (5.153.225.207). -
connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.


thanks
mayerjusc08
 
Posts: 1
Joined: 2014-03-20 00:25

Re: update - Some index files failed to download

Postby CDowling1 » 2017-05-14 19:45

I tried the fix suggested and got rm: cannot remove /var/lib/apt/list/partial/* No such file or directory

I'm using Jessie release. Any help would be appreciated.
CDowling1
 
Posts: 1
Joined: 2017-05-14 19:39

Re: update - Some index files failed to download

Postby GarryRicketson » 2017-05-14 21:03

Show the code, exactly how you wrote the 'rm' command and use 'code boxes'
for it.
You probably did not use "su" or "sudo", you would need to be "root" or have root privileges to remove that file.

example:
Code: Select all
sudo rm /var/lib/apt/lists/partial/*

Also this is a really old thread, and the solution was for Debian Wheezy, it may not apply
to Debian Jessie.
User avatar
GarryRicketson
 
Posts: 4069
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: update - Some index files failed to download

Postby phenest » 2017-05-14 21:12

CDowling1 wrote:I tried the fix suggested and got rm: cannot remove /var/lib/apt/list/partial/* No such file or directory

I'm using Jessie release. Any help would be appreciated.

Try /var/lib/apt/lists/partial/*
You missed an 's'.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: update - Some index files failed to download

Postby orythem27 » 2017-05-15 11:40

From my experience these "Hash Sum mismatch" errors can be 95% avoided by using https to reduce the possibility of ISP caching. Of course, you have to choose a mirror that supports https.
User avatar
orythem27
 
Posts: 245
Joined: 2017-05-11 07:59
Location: P.R. China


Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable