Control: tag -1 moreinfo unreproducible On Tue, Aug 11, 2020 at 05:49:36AM +0200, Piotr Engelking wrote: > 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 > $
Please debug this further, it's not reproducible from the outside. You'll need to recompile apt with some changes, and run it: 1. Find the Fail() call where it says "Data left in buffer" and replace that call with an abort(), collect a coredump, and give me a full backtrace 2. Remove the message "Data left in buffer" from the call argument list, so it just says Fail(false) or Fail(true), and then see what the error message says. To run a local apt build, after building with debian/rules, use: ./obj-x86_64-linux-gnu/cmdline/apt -oDir::Bin::Methods=$PWD/obj-x86_64-linux-gnu/methods Alternatively, if you can provide SSH access to a machine exhibiting this bug, you may also do so. It needs to have apt build dependencies installed so apt can be built. Note that the bug might disappear if the MTU changes somewhere in your network, your bandwidth changes, the server responds in different chunks, or the affected package gets updated and becomes a different size. Thank you! -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en