Re: can not update/upgrade Debian 10 when using apt-cacher-ng
- To: debian-user@lists.debian.org
- Subject: Re: can not update/upgrade Debian 10 when using apt-cacher-ng
- From: john doe <johndoe65534@mail.com>
- Date: Tue, 5 Nov 2019 06:59:55 +0100
- Message-id: <[🔎] 8ad95c94-fe44-9511-8fe8-63d94f27cfbe@mail.com>
- In-reply-to: <20191029151014.GB14469@tuxteam.de>
- References: <9b142c5b-c9ee-9d84-6fff-d78eb2becc59@mail.com> <20191029055013.04e77740@jhegaala.localdomain> <c1c117c4-54a9-8dc4-c88b-f84219e9d5ae@mail.com> <20191029130159.GA14469@tuxteam.de> <56f5c987-cf2b-734c-1729-f8990a750bad@mail.com> <20191029151014.GB14469@tuxteam.de>
On 10/29/2019 4:10 PM, tomas@tuxteam.de wrote:
> On Tue, Oct 29, 2019 at 03:58:04PM +0100, john doe wrote:
>> On 10/29/2019 2:01 PM, tomas@tuxteam.de wrote:
>>> On Tue, Oct 29, 2019 at 01:36:35PM +0100, john doe wrote:
>>>> On 10/29/2019 12:50 PM, Charles Curley wrote:
>>>>> On Tue, 29 Oct 2019 11:45:02 +0100
>>>>> john doe <johndoe65534@mail.com> wrote:
>>>>>
>>>>>> /etc/apt/sources.list:
>>>>>>
>>>>>> http://HOSTNAME-APT-CACHER-NG>:3142/debian-security buster/updates
>
> [...]
>
>> Yes, the hostname is not the one I use.
>
> Phew :-)
>
>> For now, method 2 is used when '/etc/apt/sources.list' is created by the
>> Debian installer, so method 1 is not an option.
>
> Not clear why, but... let's assume that.
>
>> Everything else is working but not downloading the upgrade through
>> apg-cacher-ng.
>>
>> Is anyone using a proxy to download the upgrade(s) and what format is to
>> be used in '/etc/apt/sources.list'?
>
> I have used that in the past, but I do prefer the cache specification
> in apt config these days.
>
> What happens when you point your browser at your cache instance?
>
> What do the cache log files say? (Find them typically in
> /var/log/apt-cacher-ng/apt-cacher.err and ...log).
>
I have filed a bugreport regarding this (1).
In a nutshell, the secdeb remap rule is missing the "directory spec".
Adding the directory spec ('/debian-security') wright before the first
semicolon (';') fixes the issue, so the secdeb line should look like:
Remap-secdeb: security.debian.org /debian-security ; security.debian.org
deb.debian.org/debian-security
Thanks to anyone who has chimed in.
1) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944114.
--
John Doe
Reply to: