[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-cacher-ng and apt-get changelog result in http 500 error



Quoting Bernd Naumann (bernd@kr217.de):

> I can't use `apt-get changelog` while have `apt-cacher-ng` running,
> which is really annoying.
> 
> I.e.:
> ```
> apt-get changelog screen
> Err Changelog for screen
> (http://packages.debian.org/changelogs/pool/main/s/screen/screen_4.1.0~2
> 0120320gitdb59704-7/changelog)
>   500  Bad redirection (invalid URL)
> Err Changelog for screen
> (http://ftp.de.debian.org/debian/pool/main/s/screen/screen_4.1.0~2012032
> 0gitdb59704-7.changelog)
>   404  Not Found
> E: changelog download failed
> ```

I can't reproduce this. Here's the output for an installed and an
uninstalled package on my laptop (jessie) and my apt-cacher-ng box
(wheezy).

$ apt-get changelog sed
Get:1 Changelog for sed
(http://packages.debian.org/changelogs/pool/main/s/sed/sed_4.2.2-4/changelog)
[19.1 kB]
Fetched 19.1 kB in 1s (10.1 kB/s)
$ apt-get changelog bless
Get:1 Changelog for bless
(http://packages.debian.org/changelogs/pool/main/b/bless/bless_0.6.0-4/changelog)
[2,713 B]
Fetched 2,713 B in 1s (1,920 B/s)
$

$ apt-get changelog sed
Get:1 Changelog for sed
(http://packages.debian.org/changelogs/pool/main/s/sed/sed_4.2.1-10/changelog)
[18.3 kB]
Fetched 18.3 kB in 1s (9,854 B/s)
$ apt-get changelog a2ps
Get:1 Changelog for a2ps
(http://packages.debian.org/changelogs/pool/main/a/a2ps/a2ps_4.14-1.1+deb7u1/changelog)
[26.8 kB]
Fetched 26.8 kB in 1s (15.5 kB/s)
$

So it looks like something might be misconfigured somewhere.

My /etc/apt/apt.conf contains

Acquire::http::Proxy "http://192.168.1.19:3142/";;

Sources files are

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

and

deb http://ftp.us.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.us.debian.org/debian/ wheezy main non-free contrib
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free

Or another possibilty: I'm running the apt-cacher-ng version from
wheezy-backports, otherwise I get problems expiring the post-wheezy
packages.

Cheers,
David.


Reply to: