Your message dated Wed, 22 Jun 2011 23:02:09 +0000
with message-id <[email protected]>
and subject line Bug#618996: fixed in apt-cacher 1.7.0.rc1
has caused the Debian Bug report #618996,
regarding apt-get gives "Bad header line" due to apt-cacher giving "Browser
does not support redirects!"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
618996: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618996
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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.
Instrumenting the source code of apt-get: methods/http.cc as follows:
--- http.cc.orig 2011-03-20 11:28:12.347525680 +0100
+++ http.cc 2011-03-20 09:17:23.409707029 +0100
@@ -535,8 +535,11 @@ bool ServerState::HeaderLine(string Line
{
// Blah, some servers use "connection:closes", evil.
Pos = Line.find(':');
- if (Pos == string::npos || Pos + 2 > Line.length())
- return _error->Error(_("Bad header line"));
+ if (Pos == string::npos || Pos + 2 > Line.length()) {
+ if (Debug == true)
+ clog << "[Bad header line] The offending HTTP header line is " <<
Line << std::endl;
+ return _error->Error(_("Bad header line"));
+ }
Pos++;
}
and running apt-get as follows:
bin/apt-get -o Debug::Acquire::http=true -o
Dir::Bin::methods=/tmp/apt-0.8.3ubuntu7/bin/methods -s update
, I got the following error message that I cut after the first error to keep
this report succinct:
--- 8< ------------------------------------------------------------------------
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
GET /de.archive.ubuntu.com/ubuntu/dists/maverick/Release.gpg HTTP/1.1
Host: localhost:3142
Connection: keep-alive
Cache-Control: max-age=0
Range: bytes=197-
If-Range: Sun, 10 Oct 2010 10:18:55 GMT
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET /de.archive.ubuntu.com/ubuntu/dists/maverick/main/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/main/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/restricted/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/restricted/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/universe/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/universe/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET /de.archive.ubuntu.com/ubuntu/dists/maverick-updates/Release.gpg HTTP/1.1
Host: localhost:3142
Connection: keep-alive
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
HTTP/1.0 200 OK
Connection: Keep-Alive
Accept-Ranges: bytes
Age: 785
ETag: "86081-c6-49240922fa1c0"
Content-Length: 198
Content-Type: text/plain
Last-Modified: Sun, 10 Oct 2010 10:18:55 GMT
GET /de.archive.ubuntu.com/ubuntu/dists/maverick/main/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/main/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/restricted/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/restricted/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/universe/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick/universe/i18n/Translation-en_US.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
GET /de.archive.ubuntu.com/ubuntu/dists/maverick-updates/Release.gpg HTTP/1.1
Host: localhost:3142
Connection: keep-alive
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
Ign http://localhost maverick Release.gpg
GET
/de.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/i18n/Translation-en.bz2
HTTP/1.1
Host: localhost:3142
Connection: keep-alive
User-Agent: Debian APT-HTTP/1.3 (0.8.3ubuntu7)
HTTP/1.1 302 Moved Temporarily
Connection: Keep-Alive
Content-Length: 0
<HTML><BODY><H2>Browser error!</H2>Browser does not support redirects!</BODY>
<!--
<?xml version="1.0" encoding="UTF-8"?>
<WISPAccessGatewayParam
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.acmewisp.com/WISPAccessGatewayParam.xsd">
<Redirect>
<AccessProcedure>1.0</AccessProcedure>
<AccessLocation>isocc=,cc=,ac=,network=Coova,</AccessLocation>
<LocationName>My_HotSpot</LocationName>
<LoginURL>https://coova.org/app/uam/auth?res=smartclient&uamip=10.248.0.1&uamport=3990&challenge=725a1abc23601b9741727f00009d9765&mac=00-22-43-2D-0F-6E&ip=10.248.0.239&called=00-16-3E-C5-A4-C6&nasid=nas-folgaria&md=6D85996B601978B358FDF6BC00555D8D</LoginURL>
<AbortLoginURL>http://10.248.0.1:3990/abort</AbortLoginURL>
<MessageType>100</MessageType>
<ResponseCode>0</ResponseCode>
</Redirect>
</WISPAccessGatewayParam>
-->
[Bad header line] The offending HTTP header line is <!--
Ign http://localhost/de.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Err http://localhost/de.archive.ubuntu.com/ubuntu/ maverick/main
Translation-en_US
Bad header line [IP: 127.0.0.1 3142]
--- 8< ------------------------------------------------------------------------
Doing "apt-get update" without using apt-cacher does not have this problem.
I can help debug this if you tell me in which part of apt-cacher I should look
into (i.e., I need to see the architecture of apt-cacher).
Thanks.
-- System Information:
Debian Release: squeeze/sid
APT prefers maverick-updates
APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500,
'maverick')
Architecture: i386 (i686)
Kernel: Linux 2.6.35-28-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt-cacher depends on:
ii ed 1.4-1build1 The classic UNIX line editor
ii libdigest-sha1-perl 2.13-1 NIST SHA-1 message digest algorith
ii libfilesys-diskspace-pe 0.05-13 fetch filesystem size and usage in
ii libfreezethaw-perl 0.5001-1 module to serialize and deserializ
pn libio-compress-bzip2-pe <none> (no description available)
ii libio-interface-perl 1.05-1 socket methods to get/set interfac
ii libwww-curl-perl 4.11-1 Perl bindings to libcurl
ii libwww-perl 5.836-1 Perl HTTP/WWW client/server librar
ii perl [libio-compress-zl 5.10.1-12ubuntu2 Larry Wall's Practical Extraction
Versions of packages apt-cacher recommends:
ii libberkeleydb-perl 0.42-1ubuntu1 use Berkeley DB 4 databases from P
Versions of packages apt-cacher suggests:
pn libio-socket-inet6-perl <none> (no description available)
-- Configuration Files:
/etc/apt-cacher/apt-cacher.conf changed:
cache_dir=/var/cache/apt-cacher
admin_email=root@localhost
daemon_port=3142
group=www-data
user=www-data
allowed_hosts=*
denied_hosts=
allowed_hosts_6=fec0::/16
denied_hosts_6=
generate_reports=0
clean_cache=0
offline_mode=0
logdir=/var/log/apt-cacher
expire_hours=0
use_proxy=0
use_proxy_auth=0
limit=0
debug=0
/etc/default/apt-cacher changed:
AUTOSTART=1
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: apt-cacher
Source-Version: 1.7.0.rc1
We believe that the bug you reported is fixed in the latest version of
apt-cacher, which is due to be installed in the Debian FTP archive:
apt-cacher_1.7.0.rc1.dsc
to main/a/apt-cacher/apt-cacher_1.7.0.rc1.dsc
apt-cacher_1.7.0.rc1.tar.gz
to main/a/apt-cacher/apt-cacher_1.7.0.rc1.tar.gz
apt-cacher_1.7.0.rc1_all.deb
to main/a/apt-cacher/apt-cacher_1.7.0.rc1_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Mark Hindley <[email protected]> (supplier of updated apt-cacher package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 22 Jun 2011 11:01:24 +0100
Source: apt-cacher
Binary: apt-cacher
Architecture: source all
Version: 1.7.0.rc1
Distribution: experimental
Urgency: low
Maintainer: Mark Hindley <[email protected]>
Changed-By: Mark Hindley <[email protected]>
Description:
apt-cacher - Caching proxy for Debian package and source files
Closes: 418170 507794 522161 541618 547308 593227 600893 611526 614615 618996
624568
Changes:
apt-cacher (1.7.0.rc1) experimental; urgency=low
.
* Remove apache specific CGI installation (which was broken) and
deprecate CGI mode (closes: 593227)
* Try to ensure cache_dir and subdirs are owned by the correct user
(closes: #611526)
* Add changelog and NEWS.Debian to installer_files_regexp (closes: 600893)
* Fix error: Can't use an undefined value as a HASH reference at
apt-cacher-lib.pl line 249. (closes: 614615)
* Check validity of cached HTTP status (closes: #618996)
* Set CURLOPT_FOLLOWLOCATION to follow redirects correctly (closes: #618996)
* Fix error: Can't use an undefined value as a HASH reference at
apt-cacher-lib.pl line 249.
* Use SHA rather than MD5 for checksumming.
* Use Digest::SHA rather than Digest::SHA1 (closes: #624568)
* Checksum database compaction is now recursive until there is nothing
left to do.
* Basic SOAP proxying which enables support for apt-listbugs (Closes:
#547308)
* Support separate namespaces to allow multi-distro support (e.g. Debian
+ Ubuntu). (Closes: #541618)
* Configuration option disk_usage_limit to limit disk usage (Closes: #418170)
* Make cache only accessible from localhost by default. See allowed_hosts
and allowed_hosts_6 if you need to relax this (Closes: #522161)
* Option to limit libcurl rate overall. This is not well supported by libcurl
so this just uses a simple fraction per download (Closes: #507794)
* Upgrade to Standards version 3.9.2 (no changes required)
Checksums-Sha1:
b69b1234cbbb9061c50a3de1788f2063856bf0b4 847 apt-cacher_1.7.0.rc1.dsc
57d777f038432006dc8a7a75b84a811267c1e5c3 123454 apt-cacher_1.7.0.rc1.tar.gz
872c4b7f9c4494bb1284b6a4664ec34403ab448e 89864 apt-cacher_1.7.0.rc1_all.deb
Checksums-Sha256:
f7dfdc85a9be4c949103f4bd07b67b0d91c80b3c2d882601789921bf826dd036 847
apt-cacher_1.7.0.rc1.dsc
a70f9a25616f3963a8f37445f50c7f90cadd5c4270013eb31042385c6d3858e2 123454
apt-cacher_1.7.0.rc1.tar.gz
54c86184d6074b63fd3692ef3d26c8d1101b431612a05134a4f61a2eec6e923d 89864
apt-cacher_1.7.0.rc1_all.deb
Files:
b98895d2a7f6c00829c93cb148abe742 847 net optional apt-cacher_1.7.0.rc1.dsc
e0877dfe2d9e27fa862dee2a9424e0a1 123454 net optional
apt-cacher_1.7.0.rc1.tar.gz
dd28097ed92c030f5a1c5da72d500d31 89864 net optional
apt-cacher_1.7.0.rc1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iD8DBQFOAnHS4QZIHu3wCMURAoCLAKCGPYOYO0up44DawOgmIfZR+jP3yACfZbeC
3wBKtWuOXGmcuLwRQgNgpcE=
=cGb1
-----END PGP SIGNATURE-----
--- End Message ---