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

Bug#812365: marked as done (/usr/bin/apt-get: when download of a package list timeouts it is reported as Ign rather than Err)



Your message dated Sun, 16 Mar 2025 23:11:57 +0100
with message-id <20250316230944.GA693733@debian.org>
and subject line Re: Bug#812365: /usr/bin/apt-get: when download of a package list timeouts it is reported as Ign rather than Err
has caused the Debian Bug report #812365,
regarding /usr/bin/apt-get: when download of a package list timeouts it is reported as Ign rather than Err
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 owner@bugs.debian.org
immediately.)


-- 
812365: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812365
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 1.0.10.2
Severity: normal
File: /usr/bin/apt-get

Hello,

I was wondering why apt-get update randomly ignores some packages files
and after adding some debug options it turns out that the download times
out and apt reports Ign before the source name.

This is a rather unfortunate way to report download failure.

Timeout should cause Err to be printed just like any other error.

Thanks

Michal

-- Package-specific info:

-- (/etc/apt/preferences present, but not submitted) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (990, 'stable'), (500, 'oldstable'), (171, 'unstable'), (151, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt depends on:
ii  debian-archive-keyring  2014.3
ii  gnupg                   1.4.19-6
ii  libapt-pkg4.16          1.0.10.2
ii  libc6                   2.19-22
ii  libgcc1                 1:5.2.1-23
ii  libstdc++6              5.2.1-23

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc     <none>
ii  aptitude    0.7.4-1
ii  dpkg-dev    1.18.3
ii  python-apt  1.0.1

-- no debconf information

--- End Message ---
--- Begin Message ---
On Sun, Mar 16, 2025 at 07:59:36PM +0100, Kamil Ignacak wrote:
> Hi!
> 
> Reproduction on bookworm with apt 2.6.1, with a mirror that is
> configured (through iptables) to not respond:
> 
> root@debian:~# cat /etc/os-release | grep CODENAME
> VERSION_CODENAME=bookworm
> root@debian:~# apt --version
> apt 2.6.1 (amd64)
> root@debian:~# cat /etc/apt/sources.list
> deb http://server.local.net/12 ./
> 
> root@debian:~#
> root@debian:~# apt-get update
> Ign:1 http://server.local.net/12 ./ InRelease
> Ign:1 http://server.local.net/12 ./ InRelease
> Ign:1 http://server.local.net/12 ./ InRelease
> Err:1 http://server.local.net/12 ./ InRelease
>   Could not connect to server.local.net:80 (192.168.0.28), connection timed
> out
> Reading package lists... Done
> W: Failed to fetch http://server.local.net/12/./InRelease  Could not connect
> to server.local.net:80 (192.168.0.28), connection timed out
> W: Some index files failed to download. They have been ignored, or old ones
> used instead.
> root@debian:~#
> 
> 
> 
> Reproduction on sid/trixie with apt 2.9.33, with a mirror that is
> configured (through iptables) to not respond.
> 
> root@debian:~# cat /etc/os-release | grep CODENAME
> VERSION_CODENAME=trixie
> root@debian:~# apt --version
> apt 2.9.33 (amd64)
> root@debian:~# cat /etc/apt/sources.list
> deb http://server.local.net/sid ./
> 
> root@debian:~# apt-get update
> Ign:1 http://server.local.net/sid ./ InRelease
> Ign:1 http://server.local.net/sid ./ InRelease
> Ign:1 http://server.local.net/sid ./ InRelease
> Err:1 http://server.local.net/sid ./ InRelease
>   Could not connect to server.local.net:80 (192.168.0.28), connection timed
> out
>   Unable to connect to server.local.net:http:
> Reading package lists... Done
> W: Failed to fetch http://server.local.net/sid/./InRelease  Unable to
> connect to server.local.net:http:
> W: Some index files failed to download. They have been ignored, or old ones
> used instead.
> N: Some sources can be modernized. Run 'apt modernize-sources' to do so.
> root@debian:~#
> 
> 
> 
> In both cases the initial report from apt includes "Ign" prefix, but the
> final line is using "Err" prefix to indicate that a timeout for specific
> transaction has failed.
> 
> I'm not sure if this would be good enough for the reporter, so I went
> back to apt 1.2 (rev 10aaf7cbf8) from reporter's last e-mail.
> 
> 
> 
> root@debian:~# cat /etc/os-release | grep CODENAME
> VERSION_CODENAME=buster
> root@debian:~# apt --version
> apt 1.2 (amd64)
> root@debian:~# cat /etc/apt/sources.list
> deb http://server.local.net/10 ./
> 
> root@debian:~#
> root@debian:~# apt-get update
> Err:1 http://server.local.net/10 ./ InRelease
>   Could not connect to server.local.net:80 (192.168.0.28), connection timed
> out
> Reading package lists... Done
> W: Failed to fetch http://server.local.net/10/./InRelease  Could not connect
> to server.local.net:80 (192.168.0.28), connection timed out
> W: Some index files failed to download. They have been ignored, or old ones
> used instead.
> 
> 
> 
> In apt 1.2 there are no lines tagged with "Ign", while current versions
> of apt tag some of timed-out downloads with "Ign" (but finally also
> using "Err" tag). To me there is no clear conclusion whether this issue
> is addressed or not in current versions of apt.

When in doubt, close. I think ultimately this bug has been lacking
information on what the issue was 9 years ago, and we're not going
to drill down on it 9 years later.

And yes now apt will retry 3 times so the first failures are ignored.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

--- End Message ---

Reply to: