apt-get update Fails Due To Gzip Error
Submitted by tensai on Mon, 05/24/2010 - 8:29am.
This morning I was greeted by a collection of apt-get failures. I use cron-apt on all my servers so I can quickly apply patches. A few of my servers reported the following error when they ran last night:
gzip: stdin: not in gzip format Failed to fetch http://http.us.debian.org/debian/dists/etch/main/binary-i386/Packages.gz Sub-process gzip returned an error code (1) E: Some index files failed to download, they have been ignored, or old ones used instead.
A little googling revealed that it's some sort of bug in apt. The solution was pretty easy, simply remove all the files in /var/lib/apt/lists/partial.
The oddest thing about this issue is that it struck multiple servers of mine on the same day. Seems there must have been something on the Debian servers that triggered it. Maybe the web server crumbled and reset connections, leaving a partial file? That would be my guess but I'll probably never know for sure.
»
- Add new comment
- 231 reads



Recent comments
13 weeks 5 days ago
14 weeks 11 hours ago
35 weeks 1 day ago
35 weeks 1 day ago
38 weeks 21 hours ago
44 weeks 15 hours ago
46 weeks 3 days ago
46 weeks 4 days ago
46 weeks 4 days ago
47 weeks 13 hours ago