debian
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.
- 684 reads
dpkg --configure -a
Submitted by tensai on Mon, 01/04/2010 - 11:42pmSo, just a word to the wise: dpkg --configure -a is not the same as dpkg-reconfigure -a. The former will continue configuring packages where an interrupted session left off. That's a good thing. The latter will reconfigure every package on your system. That, I think I can safely say, is a bad thing.
And no, I don't know anyone who's made that mistake recently. Nope, nobody.

- 1257 reads



Recent comments
23 weeks 4 days ago
40 weeks 4 days ago
40 weeks 5 days ago
40 weeks 5 days ago
1 year 16 weeks ago
1 year 35 weeks ago
1 year 35 weeks ago
2 years 4 weeks ago
2 years 4 weeks ago
2 years 7 weeks ago