Bug#968163: apt: 'apt update' repeats the same progress line many times

2020-08-09 Thread Piotr Engelking
Package: apt
Version: 2.1.8
Severity: minor

The 'apt update' commands repeats the same progress lines, sometimes
more than 100 times:

# script -c 'apt -q update'
Script started, output log file is 'typescript'.
[...]
Script done.
# uniq -c < typescript | egrep -v '^ *1 '
  2 Get:2 file:/usr/src/deb  Release [858 B]
  8 Get:24 https://ftp.icm.edu.pl/packages/linux-debian
bullseye/main amd64 Contents (deb) 2020-08-09-2002.04.pdiff [90 B]
 92 Get:25 https://ftp.icm.edu.pl/packages/linux-debian
bullseye/main i386 Contents (deb) 2020-08-09-2002.04.pdiff [88 B]
  2 Get:26 https://ftp.icm.edu.pl/packages/linux-debian sid/main
i386 Contents (deb) 2020-08-09-2002.04.pdiff [12.1 kB]
  3 Get:27 https://ftp.icm.edu.pl/packages/linux-debian sid/main
amd64 Contents (deb) 2020-08-09-2002.04.pdiff [12.1 kB]
  2 Get:28 https://ftp.icm.edu.pl/packages/linux-debian
sid/contrib amd64 Contents (deb) 2020-08-09-2002.04.pdiff [84 B]
  2 Get:29 https://ftp.icm.edu.pl/packages/linux-debian
sid/contrib i386 Contents (deb) 2020-08-09-2002.04.pdiff [85 B]
  2 Get:30 https://ftp.icm.edu.pl/packages/linux-debian
experimental/main amd64 Contents (deb) 2020-08-09-2002.04.pdiff [5301
B]
  4 Get:31 https://ftp.icm.edu.pl/packages/linux-debian
experimental/main i386 Contents (deb) 2020-08-09-2002.04.pdiff [5375
B]
  3 Get:41 https://ftp.icm.edu.pl/packages/linux-debian
experimental/contrib Sources [3924 B]
  2 Get:46 https://ftp.icm.edu.pl/packages/linux-debian
experimental/contrib amd64 Packages [5908 B]
#

The problem is present without and with the -q option.

Please do not write identical progress lines more than once.


-- Package-specific info:

-- /etc/apt/sources.list.d/debian.sources --

Types: deb deb-src
URIs: https://ftp.icm.edu.pl/packages/linux-debian/
Suites: bullseye sid experimental
Components: main contrib non-free
Signed-By: /etc/apt/trusted.gpg.d/debian-archive-buster-automatic.gpg
Description: Debian

Types: deb deb-src
URIs: https://deb.debian.org/debian-security/
Suites: bullseye-security
Components: main contrib non-free
Signed-By: /etc/apt/trusted.gpg.d/debian-archive-buster-security-automatic.gpg
Description: Debian security updates


-- /etc/apt/sources.list.d/local.sources --

Types: deb
URIs: file:/usr/src/deb/
Suites: /
Trusted: yes
Description: local


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (800, 'testing'), (700, 'unstable'), (600, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser 3.118
ii  debian-archive-keyring  2019.1
ii  gpgv2.2.20-1
ii  libapt-pkg6.0   2.1.8
ii  libc6   2.31-2
ii  libgcc-s1   10.1.0-6
ii  libgnutls30 3.6.14-2+b1
ii  libseccomp2 2.4.3-1+b1
ii  libstdc++6  10.1.0-6
ii  libsystemd0 246-2

Versions of packages apt recommends:
ii  ca-certificates  20200601

Versions of packages apt suggests:
ii  apt-doc  2.1.8
pn  aptitude | synaptic | wajig  
ii  dpkg-dev 1.20.5
ii  gnupg2.2.20-1
pn  powermgmt-base   

-- no debconf information



Bug#968163: apt: 'apt update' repeats the same progress line many times

2020-08-10 Thread Julian Andres Klode
On Mon, Aug 10, 2020 at 03:49:55AM +0200, Piotr Engelking wrote:
> Package: apt
> Version: 2.1.8
> Severity: minor
> 
> The 'apt update' commands repeats the same progress lines, sometimes
> more than 100 times:
> 
> # script -c 'apt -q update'
> Script started, output log file is 'typescript'.
> [...]
> Script done.
> # uniq -c < typescript | egrep -v '^ *1 '
>   2 Get:2 file:/usr/src/deb  Release [858 B]
>   8 Get:24 https://ftp.icm.edu.pl/packages/linux-debian
> bullseye/main amd64 Contents (deb) 2020-08-09-2002.04.pdiff [90 B]
>  92 Get:25 https://ftp.icm.edu.pl/packages/linux-debian
> bullseye/main i386 Contents (deb) 2020-08-09-2002.04.pdiff [88 B]
>   2 Get:26 https://ftp.icm.edu.pl/packages/linux-debian sid/main
> i386 Contents (deb) 2020-08-09-2002.04.pdiff [12.1 kB]
>   3 Get:27 https://ftp.icm.edu.pl/packages/linux-debian sid/main
> amd64 Contents (deb) 2020-08-09-2002.04.pdiff [12.1 kB]
>   2 Get:28 https://ftp.icm.edu.pl/packages/linux-debian
> sid/contrib amd64 Contents (deb) 2020-08-09-2002.04.pdiff [84 B]
>   2 Get:29 https://ftp.icm.edu.pl/packages/linux-debian
> sid/contrib i386 Contents (deb) 2020-08-09-2002.04.pdiff [85 B]
>   2 Get:30 https://ftp.icm.edu.pl/packages/linux-debian
> experimental/main amd64 Contents (deb) 2020-08-09-2002.04.pdiff [5301
> B]
>   4 Get:31 https://ftp.icm.edu.pl/packages/linux-debian
> experimental/main i386 Contents (deb) 2020-08-09-2002.04.pdiff [5375
> B]
>   3 Get:41 https://ftp.icm.edu.pl/packages/linux-debian
> experimental/contrib Sources [3924 B]
>   2 Get:46 https://ftp.icm.edu.pl/packages/linux-debian
> experimental/contrib amd64 Packages [5908 B]
> #
> 
> The problem is present without and with the -q option.
> 
> Please do not write identical progress lines more than once.

Heh, I've only ever seen it with the same number. But this is not
a progress logging issue, it means there's a problem with the
connection and it's reconnecting, and it does so potentially endlessly
because the code misses a continue.
-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer  i speak de, en



Bug#968163: apt: 'apt update' repeats the same progress line many times

2020-08-10 Thread Piotr Engelking
Julian Andres Klode :

> Heh, I've only ever seen it with the same number. But this is not
> a progress logging issue, it means there's a problem with the
> connection and it's reconnecting, and it does so potentially endlessly
> because the code misses a continue.

Thanks for the quick fix, I'll try to test it. How about the

  Get:2 file:/usr/src/deb  Release [858 B]

line, though? It is just a local file, no networking involved.