apt download retries do not start at the 'root' but the redirect

Bug #1992844 reported by axoin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I am running apt with exactly one source and with the retries=3 option that became standard.

~ $ cat /etc/apt/sources.list.d/raspi.list
deb http://raspbian.raspberrypi.org/raspbian bullseye main

~ $ apt --version
apt 2.2.4 (arm64)

$ sudo apt-get -oAcquire::ForceIPv6=true -oAcquire::Retries=3 install --reinstall adduser

Now the host of the repo will reply with a mirror selection (i.e. http 302 redirect). It so happens that the mirror selected is a ipv4 mirror and my machine is a ipv6 only machine, so there is no possible dns resolution. (force ipv6 was a trial, has no effect on my machine which is ipv6 only)

Apt tries again 3 times, but only at the location of the redirect.

For my understanding it should start at the original source, so it has a chance of getting a _different_ 302 redirect.

Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Ign:1 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian bullseye/main armhf adduser all 3.118
Ign:1 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian bullseye/main armhf adduser all 3.118
Ign:1 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian bullseye/main armhf adduser all 3.118
Fehl:1 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian bullseye/main armhf adduser all 3.118
  Beim Auflösen von »ftp.agdsn.de:http« ist etwas Schlimmes passiert (-5 - Zu diesem Hostnamen gehört keine Adresse).
E: Fehlschlag beim Holen von http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian/pool/main/a/adduser/adduser_3.118_all.deb Beim Auflösen von »ftp.agdsn.de:http« ist etwas Schlimmes passiert (-5 - Zu diesem Hostnamen gehört keine Adresse). [ something wicked happened, no address for this hostname ]
E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?

Revision history for this message
Nick Rosbrook (enr0n) wrote :

It looks like you're running Raspbian, not Ubuntu. Please open a bug with Raspbian instead.

Changed in apt (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.