On Sun, Mar 20, 2011 at 11:44:16AM +0100, Tadeus Prastowo wrote: > Package: apt-cacher > Version: 1.6.12ubuntu1 > Severity: important > > "apt-get update" returns "Bad header line". This problem also happens when > using "aptitude update" and "aptitude install" although "apt-get install" > works fine.
Thanks. If you apply this patch to /usr/share/apt-cacher/apt-cacher, does it help? Mark commit 078bea72c89edf4287e92e46510aaa6211daf56f Author: Mark Hindley <m...@hindley.org.uk> Date: Sun Mar 20 11:05:05 2011 +0000 Possible fix for #618996 diff --git a/apt-cacher b/apt-cacher index 5179ef9..8d83af9 100755 --- a/apt-cacher2 +++ b/apt-cacher2 @@ -1274,6 +1274,7 @@ sub init_curl { $curl->setopt(CURLOPT_LOW_SPEED_TIME, $cfg->{fetch_timeout}); $curl->setopt(CURLOPT_INTERFACE, $cfg->{interface}) if defined $cfg->{interface}; $curl->setopt(CURLOPT_NOSIGNAL, 1); + $curl->setopt(CURLOPT_FOLLOWLOCATION, 1); # Callbacks $curl->setopt(CURLOPT_DEBUGFUNCTION, \&debug_callback); -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org