Up until 1.5.3 I was setting http_proxy to point to apt-cacher when at work and
not setting it when at home, thus having one single sources.list with addresses
like http://ftp.us.debian.org ....
But in 1.6.1 using http_proxy triggers '/usr/sbin/apt-cacher: Usage error'
while the client keeps on waiting for the headers. The functionality is broken
and manual updating of sources.list is needed (in my case duplicating it).
Just to clarify, you mean you are setting http_proxy in the shell
environment for apt-get or aptitude? What are you setting it to?
Yes, exactly, that's what I mean.
at work: # http_proxy=http://debproxy:9999 apt-get update
at home: # apt-get update
I'm, setting it to http://debproxy:9999, apt-cacher runs on another host that
in turn uses an upstream squid proxy.
If I downgrade apt-cacher and copy checksumming.conf (deleted on upgrade) then
it works, with the same configuration.
I am running 1.6.1 here with
Acquire::http::Proxy "http://localhost:3142"
in /etc/apt/apt.conf with no problems.
Could remove that and do, for example:
http_proxy=http://localhost:3142 apt-get update
Could you enable debugging and send me the error.log file
Sure.
On the client I get:
apt-get update
Err http://ftp.us.debian.org testing/main Packages
Connection failed
and so on for each file.
On the server, error.log:
Fri Mar 28 09:53:45 2008|debug [10783]: Apt-Cacher started with Debug output
enabled, accepting connections on 0.0.0.0:9999
Fri Mar 28 09:53:54 2008|debug [10783]: Connection from 172.16.1.65
Fri Mar 28 09:53:54 2008|debug [10783]: registred child process: 10784
Fri Mar 28 09:53:54 2008|debug [10784]: New Daemon connection
Fri Mar 28 09:53:54 2008|debug [10784]: testing denied_hosts
Fri Mar 28 09:53:54 2008|debug [10784]: Client 172.16.1.65 passed access
control rules
Fri Mar 28 09:53:54 2008|debug [10784]: Processing a new request line
Fri Mar 28 09:53:54 2008|debug [10784]: got: GET
http://ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
HTTP/1.1
Fri Mar 28 09:53:54 2008|debug [10784]: Processing a new request line
Fri Mar 28 09:53:54 2008|debug [10784]: got: Host: ftp.us.debian.org
Fri Mar 28 09:53:54 2008|debug [10784]: Processing a new request line
Fri Mar 28 09:53:54 2008|debug [10784]: got: Cache-Control: max-age=0
Fri Mar 28 09:53:54 2008|debug [10784]: Request specified Cache-Control:
max-age=0
Fri Mar 28 09:53:54 2008|debug [10784]: Processing a new request line
Fri Mar 28 09:53:54 2008|debug [10784]: got: If-Modified-Since: Thu, 27 Mar
2008 08:09:53 GMT
Fri Mar 28 09:53:54 2008|debug [10784]: Processing a new request line
Fri Mar 28 09:53:54 2008|debug [10784]: got: User-Agent: Debian APT-HTTP/1.3
Fri Mar 28 09:53:54 2008|debug [10784]: Processing a new request line
Fri Mar 28 09:53:54 2008|debug [10784]: got:
Fri Mar 28 09:53:54 2008|debug [10784]: Checking host ftp.us.debian.org in absolute URI
Fri Mar 28 09:55:54 2008|debug [10783]: Connection from 172.16.1.65
Fri Mar 28 09:55:54 2008|debug [10783]: registred child process: 10813
Fri Mar 28 09:55:54 2008|debug [10813]: New Daemon connection
Fri Mar 28 09:55:54 2008|debug [10813]: testing denied_hosts
Fri Mar 28 09:55:54 2008|debug [10813]: Client 172.16.1.65 passed access
control rules
Fri Mar 28 09:55:54 2008|debug [10813]: Processing a new request line
Fri Mar 28 09:55:54 2008|debug [10813]: got: GET
http://ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
HTTP/1.1
Fri Mar 28 09:55:54 2008|debug [10813]: Processing a new request line
Fri Mar 28 09:55:54 2008|debug [10813]: got: Host: ftp.us.debian.org
Fri Mar 28 09:55:54 2008|debug [10813]: Processing a new request line
Fri Mar 28 09:55:54 2008|debug [10813]: got: Cache-Control: max-age=0
Fri Mar 28 09:55:54 2008|debug [10813]: Request specified Cache-Control:
max-age=0
Fri Mar 28 09:55:54 2008|debug [10813]: Processing a new request line
Fri Mar 28 09:55:54 2008|debug [10813]: got: If-Modified-Since: Thu, 27 Mar
2008 08:09:53 GMT
Fri Mar 28 09:55:54 2008|debug [10813]: Processing a new request line
Fri Mar 28 09:55:54 2008|debug [10813]: got: User-Agent: Debian APT-HTTP/1.3
Fri Mar 28 09:55:54 2008|debug [10813]: Processing a new request line
Fri Mar 28 09:55:54 2008|debug [10813]: got:
Fri Mar 28 09:55:54 2008|debug [10813]: Checking host ftp.us.debian.org in absolute URI
Fri Mar 28 09:57:03 2008|debug [10784]: Host in Absolute URI is not this server
Fri Mar 28 09:57:03 2008|debug [10784]: Resolved request is
/ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
Fri Mar 28 09:57:03 2008|debug [10784]: new index file:
ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages.gz
Fri Mar 28 09:57:03 2008|debug [10784]: looking for
/var/cache/apt-cacher/packages/ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages.gz
Fri Mar 28 09:57:03 2008|debug [10784]: known as index file: Packages.gz
Fri Mar 28 09:57:03 2008|debug [10784]: Init new libcurl object
Fri Mar 28 09:57:03 2008|debug [10784]: download agent: setting up for HEAD
request
Fri Mar 28 09:57:03 2008|debug [10784]: download agent: getting
http://ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
Fri Mar 28 09:57:04 2008|debug [10784]: libcurl download of headers complete
Fri Mar 28 09:57:04 2008|debug [10784]: ETag headers different, "10ca0002-647f33-44970d2b3b4c0"
<-> "45dc0ee-648870-cb91a440". Refreshing cached file
Fri Mar 28 09:57:04 2008|debug [10784]: EXPIRED
Fri Mar 28 09:57:04 2008|debug [10784]: Entering critical section : file
download decision
Fri Mar 28 09:57:04 2008|debug [10784]: no fetcher running, downloading
Fri Mar 28 09:57:04 2008|debug [10784]: file does not exist or download
required, forking fetcher
Fri Mar 28 09:57:04 2008|debug [10784]: registered child process: 10878
Fri Mar 28 09:57:04 2008|debug [10784]: checks done, can return now
Fri Mar 28 09:57:04 2008|debug [10878]: fetcher: try to fetch
http://ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
Fri Mar 28 09:57:04 2008|debug [10878]: Exiting critical section
Fri Mar 28 09:57:04 2008|debug [10878]: download agent: setting up for GET
request
Fri Mar 28 09:57:04 2008|debug [10878]: download agent: getting
http://ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
Fri Mar 28 09:57:04 2008|debug [10878]: libcurl download of headers complete
Fri Mar 28 09:57:04 2008|debug [10878]: Entering critical section : libcurl,
storing the header to
/var/cache/apt-cacher/headers/ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages.gz
Fri Mar 28 09:57:04 2008|debug [10878]: Exiting critical section
Fri Mar 28 09:57:05 2008|debug [10784]: Entering critical section : reading the
header file
Fri Mar 28 09:57:05 2008|debug [10784]: Exiting critical section
Fri Mar 28 09:57:05 2008|debug [10784]: Header sent: HTTP/1.0 200 (OK) OK
Connection: Keep-Alive
Accept-Ranges: bytes
ETag: "45dc0ee-648870-cb91a440"
Content-Length: 6588528
Content-Type: application/x-gzip
Last-Modified: Fri, 28 Mar 2008 08:07:37 GMT
Fri Mar 28 09:57:05 2008|debug [10784]: ready to send contents of
/var/cache/apt-cacher/packages/ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages.gz
Fri Mar 28 09:57:05 2008|debug [10784]: opening file first:
/var/cache/apt-cacher/packages/ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages.gz
Fri Mar 28 09:57:05 2008|debug [10784]: read 16384 bytes
Fri Mar 28 09:57:54 2008|debug [10783]: Connection from 172.16.1.65
Fri Mar 28 09:57:54 2008|debug [10783]: registred child process: 10902
Fri Mar 28 09:57:54 2008|debug [10902]: New Daemon connection
Fri Mar 28 09:57:54 2008|debug [10902]: testing denied_hosts
Fri Mar 28 09:57:54 2008|debug [10902]: Client 172.16.1.65 passed access
control rules
Fri Mar 28 09:57:54 2008|debug [10902]: Processing a new request line
Fri Mar 28 09:57:54 2008|debug [10902]: got: GET
http://ftp.us.debian.org/debian/dists/testing/main/binary-i386/Release HTTP/1.1
Fri Mar 28 09:57:54 2008|debug [10902]: Processing a new request line
Fri Mar 28 09:57:54 2008|debug [10902]: got: Host: ftp.us.debian.org
Fri Mar 28 09:57:54 2008|debug [10902]: Processing a new request line
Fri Mar 28 09:57:54 2008|debug [10902]: got: Cache-Control: max-age=0
Fri Mar 28 09:57:54 2008|debug [10902]: Request specified Cache-Control:
max-age=0
Fri Mar 28 09:57:54 2008|debug [10902]: Processing a new request line
Fri Mar 28 09:57:54 2008|debug [10902]: got: If-Modified-Since: Thu, 27 Mar
2008 08:39:10 GMT
Fri Mar 28 09:57:54 2008|debug [10902]: Processing a new request line
Fri Mar 28 09:57:54 2008|debug [10902]: got: User-Agent: Debian APT-HTTP/1.3
Fri Mar 28 09:57:54 2008|debug [10902]: Processing a new request line
Fri Mar 28 09:57:54 2008|debug [10902]: got:
Fri Mar 28 09:57:54 2008|debug [10902]: Checking host ftp.us.debian.org in absolute URI
Fri Mar 28 09:59:03 2008|debug [10813]: Host in Absolute URI is not this server
Fri Mar 28 09:59:03 2008|debug [10813]: Resolved request is
/ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
Fri Mar 28 09:59:03 2008|debug [10813]: new index file:
ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages.gz
Fri Mar 28 09:59:03 2008|debug [10813]: looking for
/var/cache/apt-cacher/packages/ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages.gz
Fri Mar 28 09:59:03 2008|debug [10813]: known as index file: Packages.gz
Fri Mar 28 09:59:03 2008|debug [10813]: Init new libcurl object
Fri Mar 28 09:59:03 2008|debug [10813]: download agent: setting up for HEAD
request
Fri Mar 28 09:59:03 2008|debug [10813]: download agent: getting
http://ftp.us.debian.org/debian/dists/testing/main/binary-i386/Packages.gz
Fri Mar 28 09:59:04 2008|debug [10813]: libcurl download of headers complete
Fri Mar 28 09:59:04 2008|debug [10813]: ETag headers different, "45dc0ee-648870-cb91a440"
<-> "9154-648870-4497acb91a440". Refreshing cached file
Fri Mar 28 09:59:04 2008|debug [10813]: EXPIRED
Fri Mar 28 09:59:04 2008|debug [10813]: Entering critical section : file
download decision
Fri Mar 28 09:59:04 2008|debug [10813]: Waiting on another fetcher
Fri Mar 28 09:59:04 2008|debug [10813]: Exiting critical section
Fri Mar 28 09:59:04 2008|debug [10813]: checks done, can return now
Fri Mar 28 09:59:04 2008|debug [10813]: Entering critical section : reading the
header file
Fri Mar 28 09:59:04 2008|debug [10813]: Exiting critical section
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]