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

Re: can not update/upgrade Debian 10 when using apt-cacher-ng



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: