Bug#968220: apt: 'apt source' fails: Data left in buffer
Package: apt
Version: 2.1.9
Severity: normal
The 'apt source' command fails to download package sources:
$ apt source hello
Reading package lists... Done
Need to get 733 kB of source archives.
Get:1 https://ftp.icm.edu.pl/packages/linux-debian bullseye/main hello
2.10-2 (dsc) [1335 B]
Err:1 https://ftp.icm.edu.pl/packages/linux-debian bullseye/main hello
2.10-2 (dsc)
Data left in buffer [IP: 193.219.28.2 443]
Get:2 https://ftp.icm.edu.pl/packages/linux-debian bullseye/main hello
2.10-2 (tar) [726 kB]
Get:3 https://ftp.icm.edu.pl/packages/linux-debian bullseye/main hello
2.10-2 (diff) [6132 B]
Err:3 https://ftp.icm.edu.pl/packages/linux-debian bullseye/main hello
2.10-2 (diff)
Data left in buffer [IP: 193.219.28.2 443]
Fetched 726 kB in 1s (505 kB/s)
E: Failed to fetch
https://ftp.icm.edu.pl/packages/linux-debian/pool/main/h/hello/hello_2.10-2.dsc
Data left in buffer [IP: 193.219.28.2 443]
E: Failed to fetch
https://ftp.icm.edu.pl/packages/linux-debian/pool/main/h/hello/hello_2.10-2.debian.tar.xz
Data left in buffer [IP: 193.219.28.2 443]
E: Failed to fetch some archives.
$ ls -log hello_*
-rw-r--r-- 1 0 May 13 2019 hello_2.10-2.debian.tar.xz
-rw-r--r-- 1 0 May 13 2019 hello_2.10-2.dsc
-rw-r--r-- 1 725946 Mar 22 2015 hello_2.10.orig.tar.gz
$
Using the '-o Acquire::https::Pipeline-Depth=0' option makes no difference.
Other programs download the files successfully without a complaint.
-- 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 gpgv 2.2.20-1
ii libapt-pkg6.0 2.1.9
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.9
pn aptitude | synaptic | wajig <none>
ii dpkg-dev 1.20.5
ii gnupg 2.2.20-1
pn powermgmt-base <none>
-- no debconf information
Reply to: