I ran into this problem of apt-get (or synaptic) barfing on bad headers. I tried to get the same file with wget:
[EMAIL PROTECTED] wget -S http://agnes/debian/dists/etch/Release.gpg --23:30:26-- http://agnes/debian/dists/etch/Release.gpg => `Release.gpg' Selvitetään osoitetta agnes... 192.168.1.102 Yhdistetään palvelimeen agnes|192.168.1.102|:80... yhdistetty. HTTP-pyyntö lähetetty, odotetaan vastausta... HTTP/1.1 200 OK Date: Sat, 20 Jan 2007 21:30:11 GMT Server: Apache/1.3.34 (Debian) Last-Modified: Sat, 20 Jan 2007 08:08:24 GMT ETag: "37345ff-17a-45b1cdf8" Accept-Ranges: bytes Content-Length: 378 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/pgp @Pontent-Encoding: armored p' Pituus: 378 [text/pgp] Notice the garbage header. The server was running a really old version of etch, with apache 1. I replaced it with apache 2, and the problem went away. I suspect, therefore, that the problem is not in apt, but in the web server. Or else something I did merely hid the problem, of course. -- The road is wide and the sky is tall, before I die I will see it all.--H.A.