2009-02-15 23:37 +0800

apt-get gzip error

Lenny became stable today and so I decided to upgrade my XBOX running Xebian Etch to the latest and greatest version of my favorite distro. After adding the keys using apt-key, I ran apt-get update and halfway through encountered the following error:
Errhttp://ftp.tw.debian.org stable/main Packages
Sub-process gzip returned an error code (1)
Fetched 867KB in 5s (173KB/s)
Failed to fetch http://ftp.tw.debian.org/debian/dists/stable/contrib/binary-i386/Packages.gz Sub-process gzip returned an error code (1)
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
Although I very rarely ran into this problem (this is only the 3rd time), I remember when I first got this error and how much time I spent trying to solve it so I thought I'd post it here. The solution is very simple actually but proved quite difficult to figure out and even my good friend Google failed me (at least it was 5yrs ago). So to fix the issue just go into /var/lib/apt/lists/partial directory and delete everything inside then run
sudo apt-get clean
sudo apt-get update
again and you should be good to go. Cheers!

Posted by LrdShaper | Permanent Link | Categories: linux/unix, xbox, nslu2