Thread View: linux.debian.bugs.dist
3 messages
3 total messages
Started by Simon Josefsson
Wed, 04 Nov 2026 21:20
Bug#1153057: apt: HTTP redirector archive results in unpredictable URLs in apt-get install user output
Author: Simon Josefsson
Date: Wed, 04 Nov 2026 21:20
Date: Wed, 04 Nov 2026 21:20
204 lines
11214 bytes
11214 bytes
--=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Package: apt Version: 3.0.4 Severity: wishlist Hi! If the apt archive server is using HTTP redirects to bounce clients to other servers, then 'apt-get install' appears to randomly (but seamingly deterministically) alternate between printing the original URL from the apt sources configuration and the HTTP redirect URL received from the server. This seems like a UX bug to me. I would expect either the apt source URL to be printed consistently, or possibly the HTTP redirect destination target URL consistently. The former seems more appropriate than printing URLs received from unprotected HTTP (I didn't test if an ANSI terminal injection attack was possible). The simplest way to reproduce this is to use a DiffOS container image and then install a package like 'libreoffice' which has a lot of dependencies that get pulled in, see output below. Notice how some lines have URLs with 'deb.diffos.org' and some has 'deb.debian.org'. The deb.diffos.org server is running Apache with redirects like this: https://gitlab.com/debdistutils/diffos/archive/-/blob/main/apache/deb.diffo= s.org.conf?ref_type=3Dheads#L71 RewriteRule ^/diffos/pool/main/(.*) https://deb.debian.= org/debian/pool/main/$1 RewriteRule ^/diffos-security/pool/main/(.*) https://deb.debian.= org/debian-security/pool/main/$1 Note though that the only configured apt sources file only contains 'deb.diffos.org' and never 'deb.debian.org': $ podman run -it registry.gitlab.com/debdistutils/diffos/container:trixie root@a002f9b9a14c:/# cat /etc/apt/sources.list.d/diffos.sources=20 Types: deb URIs: http://deb.diffos.org/diffos Suites: diffos-trixie diffos-trixie-updates Components: main Signed-By: /usr/share/keyrings/diffos-archive-keyring.gpg Types: deb URIs: http://deb.diffos.org/diffos-security Suites: diffos-trixie-security Components: main Signed-By: /usr/share/keyrings/diffos-archive-keyring.gpg root@a002f9b9a14c:/#=20 This problem was initially reported here: https://codeberg.org/DiffOS/issues/issues/3 /Simon $ podman run -it registry.gitlab.com/debdistutils/diffos/container:trixie-a= md64 root@0789e77c4233:/# apt-get update Get:1 http://deb.diffos.org/diffos diffos-trixie InRelease [3453 B] Get:2 http://deb.diffos.org/diffos diffos-trixie-updates InRelease [3469 B] Get:3 http://deb.diffos.org/diffos-security diffos-trixie-security InReleas= e [3268 B] Get:4 http://deb.diffos.org/diffos diffos-trixie/main amd64 Packages [56.6 = MB] Get:5 http://deb.diffos.org/diffos diffos-trixie-updates/main amd64 Package= s [2351 B] Get:6 http://deb.diffos.org/diffos-security diffos-trixie-security/main amd= 64 Packages [2160 kB] Fetched 58.8 MB in 3s (21.4 MB/s)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 Reading package lists... Done root@0789e77c4233:/# apt-get install -y gcc Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-14 cpp-14-x86-= 64-linux-gnu cpp-x86-64-linux-gnu gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64= -linux-gnu libasan8 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libct= f-nobfd0 libctf0 libgcc-14-dev libgomp1 libgprofng0 libhwasan0 libisl23 lib= itm1 libjansson4 liblsan0 libmpc3 libmpfr6 libquadmath0 libsframe1 libtsan2 libubsan1 linu= x-libc-dev manpages manpages-dev rpcsvc-proto Suggested packages: binutils-doc gprofng-gui binutils-gold cpp-doc gcc-14-locales cpp-14-doc = gcc-multilib make autoconf automake libtool flex bison gdb gcc-doc gcc-14-m= ultilib gcc-14-doc gdb-x86-64-linux-gnu libc-devtools glibc-doc man-browser The following NEW packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-14 cpp-14-x86-= 64-linux-gnu cpp-x86-64-linux-gnu gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x8= 6-64-linux-gnu libasan8 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-= dev libctf-nobfd0 libctf0 libgcc-14-dev libgomp1 libgprofng0 libhwasan0 lib= isl23 libitm1 libjansson4 liblsan0 libmpc3 libmpfr6 libquadmath0 libsframe1 libtsan2 li= bubsan1 linux-libc-dev manpages manpages-dev rpcsvc-proto 0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded. Need to get 60.7 MB of archives. After this operation, 223 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian diffos-trixie/main amd64 manpages all 6.= 9.1-1 [1393 kB] Get:2 http://deb.debian.org/debian diffos-trixie/main amd64 libsframe1 amd6= 4 2.44-3 [78.4 kB] Get:3 http://deb.debian.org/debian diffos-trixie/main amd64 binutils-common= amd64 2.44-3 [2509 kB] Get:4 http://deb.debian.org/debian diffos-trixie/main amd64 libbinutils amd= 64 2.44-3 [534 kB] Get:5 http://deb.debian.org/debian diffos-trixie/main amd64 libgprofng0 amd= 64 2.44-3 [808 kB] Get:6 http://deb.debian.org/debian diffos-trixie/main amd64 libctf-nobfd0 a= md64 2.44-3 [156 kB] Get:7 http://deb.debian.org/debian diffos-trixie/main amd64 libctf0 amd64 2= .44-3 [88.6 kB] Get:8 http://deb.diffos.org/diffos diffos-trixie/main amd64 libjansson4 amd= 64 2.14-2+b3 [39.8 kB] Get:9 http://deb.debian.org/debian diffos-trixie/main amd64 binutils-x86-64= -linux-gnu amd64 2.44-3 [1014 kB] Get:10 http://deb.debian.org/debian diffos-trixie/main amd64 binutils amd64= 2.44-3 [265 kB] Get:11 http://deb.debian.org/debian diffos-trixie/main amd64 libisl23 amd64= 0.27-1 [659 kB] Get:12 http://deb.debian.org/debian diffos-trixie/main amd64 libmpfr6 amd64= 4.2.2-1 [729 kB] Get:13 http://deb.diffos.org/diffos diffos-trixie/main amd64 libmpc3 amd64 = 1.3.1-1+b3 [52.2 kB] Get:14 http://deb.debian.org/debian diffos-trixie/main amd64 cpp-14-x86-64-= linux-gnu amd64 14.2.0-19 [11.0 MB] Get:15 http://deb.debian.org/debian diffos-trixie/main amd64 cpp-14 amd64 1= 4.2.0-19 [1280 B] Get:16 http://deb.debian.org/debian diffos-trixie/main amd64 cpp-x86-64-lin= ux-gnu amd64 4:14.2.0-1 [4840 B] Get:17 http://deb.debian.org/debian diffos-trixie/main amd64 cpp amd64 4:14= .2.0-1 [1568 B] Get:18 http://deb.debian.org/debian diffos-trixie/main amd64 libcc1-0 amd64= 14.2.0-19 [42.8 kB] Get:19 http://deb.debian.org/debian diffos-trixie/main amd64 libgomp1 amd64= 14.2.0-19 [137 kB] Get:20 http://deb.debian.org/debian diffos-trixie/main amd64 libitm1 amd64 = 14.2.0-19 [26.0 kB] Get:21 http://deb.debian.org/debian diffos-trixie/main amd64 libatomic1 amd= 64 14.2.0-19 [9308 B] Get:22 http://deb.debian.org/debian diffos-trixie/main amd64 libasan8 amd64= 14.2.0-19 [2725 kB] Get:23 http://deb.debian.org/debian diffos-trixie/main amd64 liblsan0 amd64= 14.2.0-19 [1204 kB] Get:24 http://deb.debian.org/debian diffos-trixie/main amd64 libtsan2 amd64= 14.2.0-19 [2460 kB] Get:25 http://deb.debian.org/debian diffos-trixie/main amd64 libubsan1 amd6= 4 14.2.0-19 [1074 kB] Get:26 http://deb.debian.org/debian diffos-trixie/main amd64 libhwasan0 amd= 64 14.2.0-19 [1488 kB] Get:27 http://deb.debian.org/debian diffos-trixie/main amd64 libquadmath0 a= md64 14.2.0-19 [145 kB] Get:28 http://deb.debian.org/debian diffos-trixie/main amd64 libgcc-14-dev = amd64 14.2.0-19 [2672 kB] Get:29 http://deb.debian.org/debian diffos-trixie/main amd64 gcc-14-x86-64-= linux-gnu amd64 14.2.0-19 [21.4 MB] Get:30 http://deb.debian.org/debian diffos-trixie/main amd64 gcc-14 amd64 1= 4.2.0-19 [540 kB] Get:31 http://deb.debian.org/debian diffos-trixie/main amd64 gcc-x86-64-lin= ux-gnu amd64 4:14.2.0-1 [1436 B] Get:32 http://deb.debian.org/debian diffos-trixie/main amd64 gcc amd64 4:14= .2.0-1 [5136 B] Get:33 http://deb.diffos.org/diffos diffos-trixie/main amd64 libc-dev-bin a= md64 2.41-12+deb13u4 [60.0 kB] Get:34 http://deb.debian.org/debian-security diffos-trixie-security/main am= d64 linux-libc-dev all 6.12.115-2 [3050 kB] Get:35 http://deb.debian.org/debian diffos-trixie/main amd64 libcrypt-dev a= md64 1:4.4.38-1 [119 kB] --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQOEBAEWCgMsFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmrroHwbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyFBxzaW1vbkBqb3NlZnNzb24ub3JnwhwmAJgzBFyS zrQWCSsGAQQB2kcPAQEHQAiHK2SL4a8QwZCvX1fkJU5l8aNp2jmw7hrcOfGGsZTr tCVTaW1vbiBKb3NlZnNzb24gPHNpbW9uQGpvc2Vmc3Nvbi5vcmc+iJYEExYIAD4C GwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AWIQSx0r0Tdb7LeEz0+MTXPPY4xTwG vgUCatfMtwUJD2HCAwAKCRDXPPY4xTwGvue9AP40ROc4bUzq1zxU43T76rWP+6jv mKO/CaPer1S2fZMOtQEAuMKQ3X/qP75LtsbJG82TaaIkg2UM5Mw+pp0UOfPJ6Aq4 OARcks9qEgorBgEEAZdVAQUBAQdAMZUbpg1up2WOwPlQn3pPVaRMejyZnScmD7d5 TRzHehwDAQgHiH4EGBYIACYCGwwWIQSx0r0Tdb7LeEz0+MTXPPY4xTwGvgUCatfL twUJD2HATQAKCRDXPPY4xTwGvocHAP9g1zG1w10/lhb7ksrN9T8xnHTOZNibd27d k+X+leRCkQD+OWllYuM1N1ZA/a5Qjyv7pnq+hrxeqSg+cnm4ArlDQwa4MwRcks+B FgkrBgEEAdpHDwEBB0DsUwiDmnlwMSNoSF+ByvW0E6TVXou9PKDa9SpZvKghioj1 BBgWCAAmAhsCFiEEsdK9E3W+y3hM9PjE1zz2OMU8Br4FAmrXy7oFCQ9hwDYAgXYg BBkWCAAdFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAlySz4EACgkQUXIrCP5HRaKn TAEAoB+OWrHmYCK8Cjr1DgPUH7JnhPBmR2DbhR5jPRREEugA+gOMeWmL6GOpaPfK YLcNhzw4ZnAlxSLY1wq1eANBpiQOCRDXPPY4xTwGvjf7AP9MpnBFLDHomavCkXzR aJEaYqYigvHl7W7qWuswi2FgTQEAg7xKIF4THHLZj4f48rwFG7VW2ts8o/SaYpJM ogWJlwYACgkQUXIrCP5HRaIH6wD+OCKdYAOoxDSs8elvVCdcFl6Us7GCvs5sI+qM vpI/cuQBAJBnZY3XrLIq39HE+7Sgv+83T0noAAXH4OzM8ZA4FHMI =Zsz1 -----END PGP SIGNATURE----- --=-=-=--
Bug#1153057: apt: HTTP redirector archive results in unpredictable URLs in apt-get install user output
Author: Julian Andres Klode
Date: Wed, 04 Nov 2026 21:30
Date: Wed, 04 Nov 2026 21:30
51 lines
3945 bytes
3945 bytes
--tgqx6igbgae2kwpe Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: Bug#1153057: apt: HTTP redirector archive results in unpredictable URLs in apt-get install user output MIME-Version: 1.0 On Wed, Nov 04, 2026 at 10:15:40PM +0100, Simon Josefsson wrote: > Package: apt > Version: 3.0.4 > Severity: wishlist >=20 > Hi! >=20 > If the apt archive server is using HTTP redirects to bounce clients to > other servers, then 'apt-get install' appears to randomly (but seamingly > deterministically) alternate between printing the original URL from the > apt sources configuration and the HTTP redirect URL received from the > server. Yeah that seems reasonable to me given the output is running on a fixed pulse it probably happens to print when some items are still pre-redirect whereas the others already got a redirect and were printed correctly. --=20 debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en --tgqx6igbgae2kwpe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEET7WIqEwt3nmnTHeHb6RY3R2wP3EFAmrrojcACgkQb6RY3R2w P3FcKA//RUbZ55x1RtS5RxFlPK2AjM9UOnIamUmP6ipNlEvtyMoFkM0YqLrmoTcF uusB6QpaUhHzZGNs8w0SGd9k6LSGrtqN627KBU0M0sHwlPYSsw/10m9rV2q1NXDi aoFcehKr5fJ5GuAy6BQsjo9HU1eioEId1fJbhb3V9duBymmBBu8B9kRc4n1T9aPq DR3SXjppdfLmPUVQogqbovZvNUifoJgKbLEfeoVa1R0GChSw0vcjnao4fa8aHTS/ aEpZ1v5AHQOt+5lJlLrUJcQ0N+BTh5JrK4dTGiCTp+XmVQVzXDYh4pOdKwmKoJu2 yLhjv+rGzS+Z9BXcK1XBu+SfDORInbWN0KLAaPrzVYTxidlI5AUJ8lVF2OWPO4ru m3oM5APT+vrk4g1aKLD2lm2t9nzQdLKSlC7cwyp63nc2vyBJcAy1BDh44ft3D2Dv 1DdH9nOxN66KZo8WPsPwWavX5GQUXcczIPw+QhySALilaI6V13ivgjMqJs8dP7cQ mMjuynzhu+a7gwDCQszKyZHeWTsS1K8VYcDu2Soeipmb9p8YyvVBdnZM8qHaIVYF KpS7oB0yuWomg2HldKiyPem2NQuyZ3pH2tjnClJtvjLjZo/z1MmasL4pTtbMTpx3 cQ8tSe5BKA2KyGz+Xwr0dg9UOC6FN83wpFLBYU/zmPsgHjHjxaE= =rzNG -----END PGP SIGNATURE----- --tgqx6igbgae2kwpe--
Bug#1153057: apt: HTTP redirector archive results in unpredictable URLs in apt-get install user output
Author: Arnaud Rebillout
Date: Thu, 05 Nov 2026 04:40
Date: Thu, 05 Nov 2026 04:40
29 lines
3283 bytes
3283 bytes
On Wed, 4 Nov 2026 22:23:07 +0100 Julian Andres Klode <jak@debian.org> wrote: > On Wed, Nov 04, 2026 at 10:15:40PM +0100, Simon Josefsson wrote: > > If the apt archive server is using HTTP redirects to bounce clients to > > other servers, then 'apt-get install' appears to randomly (but seamingly > > deterministically) alternate between printing the original URL from the > > apt sources configuration and the HTTP redirect URL received from the > > server. > > Yeah that seems reasonable to me given the output is running on a fixed > pulse it probably happens to print when some items are still > pre-redirect whereas the others already got a redirect and were > printed correctly. It's also something I noticed on Kali Linux, since by default Kali APT sources point to http.kali.org, which redirects to a mirror close-by. IMO apt should print the redirected URL, it makes it much easier when you look at logs where apt failed with a "hashsum mismatch" error. Sometimes in this case it only prints the URL of the redirector, so you don't know which mirror is actually at fault. If I understand Julian's answer, it's not an easy thing to change though... Cheers, Arnaud
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads