@@ -303,7 +303,93 @@ looks like (with default proxies run)
303303dev@dev:~$ export DEBUG_APT_PROXY_DETECT=1
304304dev@dev:~$ sudo apt update
305305# INFO-TAG MS : MESSAGE
306+ [ INFO][ 2]: ===--- apt-proxy-detect ---===
307+ [ DEFAULTS][ 5]: loaded from /usr/local/etc/apt-proxy-detect.bash
308+ [ TEST-URL][ 23]: URL: http://packages.microsoft.com/repos/code/dists/stable/InRelease
309+ [ HASH][ 42]: HASH: c0b917f192fa7cccb3f536f2c01b824d of (http://packages.microsoft.com)
306310
311+ # first time - but introducing default proxies as once working
312+ [ CHECK][ 48]: once working proxy: https://192.168.0.2:8093 for http://packages.microsoft.com/repos/code/dists/stable/InRelease
313+ [ CHECK-PROXY][ 60]: Proxy (https://192.168.0.2:8093) failed with testurl (http://packages.microsoft.com/repos/code/dists/stable/InRelease)
314+ [ CHECK][ 66]: once working proxy: https://192.168.0.3:4544 for http://packages.microsoft.com/repos/code/dists/stable/InRelease
315+ [ CHECK-PROXY][ 80]: Proxy (https://192.168.0.3:4544) failed with testurl (http://packages.microsoft.com/repos/code/dists/stable/InRelease)
316+ [ CHECK][ 83]: once working proxy: http://192.168.0.27:8000 for http://packages.microsoft.com/repos/code/dists/stable/InRelease
317+ [ CHECK-PROXY][ 124]: Proxy (http://192.168.0.27:8000) works with testurl (http://packages.microsoft.com/repos/code/dists/stable/InRelease).
318+
319+ # and one works.
320+ [ PROXY][ 126]: return :http://192.168.0.27:8000:
321+ [ CACHE][ 129]: Store (http://192.168.0.27:8000) in cache file (/var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt)
322+ [ CACHE][ 137]: Update cachefile.
323+ [ INFO][ 3]: ===--- apt-proxy-detect ---===
324+ [ DEFAULTS][ 6]: loaded from /usr/local/etc/apt-proxy-detect.bash
325+ [ TEST-URL][ 22]: URL: http://download.proxmox.com/debian/pve/dists/bookworm/InRelease
326+ [ HASH][ 33]: HASH: 17b43db99b56eb6355d41861f4f304d0 of (http://download.proxmox.com)
327+ [ CACHE][ 39]: using stored under: /var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt
328+ [ CHECK][ 43]: once working proxy: https://192.168.0.2:8093 for http://download.proxmox.com/debian/pve/dists/bookworm/InRelease
329+ [ CHECK-PROXY][ 54]: Proxy (https://192.168.0.2:8093) failed with testurl (http://download.proxmox.com/debian/pve/dists/bookworm/InRelease)
330+ [ CHECK][ 57]: once working proxy: https://192.168.0.3:4544 for http://download.proxmox.com/debian/pve/dists/bookworm/InRelease
331+ [ CHECK-PROXY][ 69]: Proxy (https://192.168.0.3:4544) failed with testurl (http://download.proxmox.com/debian/pve/dists/bookworm/InRelease)
332+ [ CHECK][ 73]: once working proxy: http://192.168.0.27:8000 for http://download.proxmox.com/debian/pve/dists/bookworm/InRelease
333+ [ CHECK-PROXY][ 104]: Proxy (http://192.168.0.27:8000) works with testurl (http://download.proxmox.com/debian/pve/dists/bookworm/InRelease).
334+ [ PROXY][ 107]: return :http://192.168.0.27:8000:
335+ [ CACHE][ 111]: Store (http://192.168.0.27:8000) in cache file (/var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt)
336+ [ CACHE][ 114]: Update cachefile.
337+ [ INFO][ 2]: ===--- apt-proxy-detect ---===
338+ [ DEFAULTS][ 5]: loaded from /usr/local/etc/apt-proxy-detect.bash
339+ [ TEST-URL][ 29]: URL: http://local-repo.fritz.box/local-repo/dists/trunk/InRelease
340+ [ HASH][ 78]: HASH: 2bfbb1335aaf9d333a5c9498226eb208 of (http://local-repo.fritz.box)
341+ [ CACHE][ 85]: using stored under: /var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt
342+
343+ # first time - but introducing default proxies as once working
344+ [ CHECK][ 89]: once working proxy: https://192.168.0.2:8093 for http://local-repo.fritz.box/local-repo/dists/trunk/InRelease
345+ [ CHECK-PROXY][ 101]: Proxy (https://192.168.0.2:8093) failed with testurl (http://local-repo.fritz.box/local-repo/dists/trunk/InRelease)
346+ [ CHECK][ 105]: once working proxy: https://192.168.0.3:4544 for http://local-repo.fritz.box/local-repo/dists/trunk/InRelease
347+ [ CHECK-PROXY][ 116]: Proxy (https://192.168.0.3:4544) failed with testurl (http://local-repo.fritz.box/local-repo/dists/trunk/InRelease)
348+ [ CHECK][ 119]: once working proxy: http://192.168.0.27:8000 for http://local-repo.fritz.box/local-repo/dists/trunk/InRelease
349+ [ CHECK-PROXY][ 141]: Proxy (http://192.168.0.27:8000) failed with testurl (http://local-repo.fritz.box/local-repo/dists/trunk/InRelease)
350+
351+ # non is working as this is a local repo
352+ # search via AVAHI.
353+ [ AVAHI][ 147]: get cache entries for _apt_proxy._tcp
354+ [ CHECK][ 195]: Checking found proxy (http://192.168.0.27:8000) with testurl (http://local-repo.fritz.box/local-repo/dists/trunk/InRelease)
355+ [ CHECK-PROXY][ 207]: Proxy (http://192.168.0.27:8000) failed with testurl (http://local-repo.fritz.box/local-repo/dists/trunk/InRelease)
356+ Service[ER][Squid deb proxy on squid-deb-proxy]@http://192.168.0.27:8000
357+ [ CHECK][ 237]: Checking found proxy (http://192.168.0.27:3142) with testurl (http://local-repo.fritz.box/local-repo/dists/trunk/InRelease)
358+ [ CHECK-PROXY][ 249]: Proxy (http://192.168.0.27:3142) failed with testurl (http://local-repo.fritz.box/local-repo/dists/trunk/InRelease)
359+ Service[ER][apt-cacher-ng proxy on squid-deb-proxy]@http://192.168.0.27:3142
360+
361+ # also the AVAHI found ones do not work -> so none (direct connect)
362+ [ PROXY][ 252]: return ::
363+ [ CACHE][ 259]: Store (NONE) in cache file (/var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt)
364+ [ CACHE][ 262]: Update cachefile.
365+ [ INFO][ 2]: ===--- apt-proxy-detect ---===
366+ [ DEFAULTS][ 6]: loaded from /usr/local/etc/apt-proxy-detect.bash
367+ [ TEST-URL][ 22]: URL: http://security.debian.org/debian-security/dists/bookworm-security/InRelease
368+ [ HASH][ 32]: HASH: 3b68f7b6590a2da8625ff71f01d38ffb of (http://security.debian.org)
369+ [ CACHE][ 37]: using stored under: /var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt
370+ [ CHECK][ 40]: once working proxy: https://192.168.0.2:8093 for http://security.debian.org/debian-security/dists/bookworm-security/InRelease
371+ [ CHECK-PROXY][ 50]: Proxy (https://192.168.0.2:8093) failed with testurl (http://security.debian.org/debian-security/dists/bookworm-security/InRelease)
372+ [ CHECK][ 53]: once working proxy: https://192.168.0.3:4544 for http://security.debian.org/debian-security/dists/bookworm-security/InRelease
373+ [ CHECK-PROXY][ 65]: Proxy (https://192.168.0.3:4544) failed with testurl (http://security.debian.org/debian-security/dists/bookworm-security/InRelease)
374+ [ CHECK][ 68]: once working proxy: http://192.168.0.27:8000 for http://security.debian.org/debian-security/dists/bookworm-security/InRelease
375+ [ CHECK-PROXY][ 96]: Proxy (http://192.168.0.27:8000) works with testurl (http://security.debian.org/debian-security/dists/bookworm-security/InRelease).
376+ [ PROXY][ 99]: return :http://192.168.0.27:8000:
377+ [ CACHE][ 102]: Store (http://192.168.0.27:8000) in cache file (/var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt)
378+ [ CACHE][ 105]: Update cachefile.
379+ [ INFO][ 2]: ===--- apt-proxy-detect ---===
380+ [ DEFAULTS][ 4]: loaded from /usr/local/etc/apt-proxy-detect.bash
381+ [ TEST-URL][ 21]: URL: http://deb.debian.org/debian/dists/bookworm/InRelease
382+ [ HASH][ 31]: HASH: efbfa0e2acaaa513c457b6698de83118 of (http://deb.debian.org)
383+ [ CACHE][ 37]: using stored under: /var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt
384+ [ CHECK][ 39]: once working proxy: https://192.168.0.2:8093 for http://deb.debian.org/debian/dists/bookworm/InRelease
385+ [ CHECK-PROXY][ 50]: Proxy (https://192.168.0.2:8093) failed with testurl (http://deb.debian.org/debian/dists/bookworm/InRelease)
386+ [ CHECK][ 52]: once working proxy: https://192.168.0.3:4544 for http://deb.debian.org/debian/dists/bookworm/InRelease
387+ [ CHECK-PROXY][ 63]: Proxy (https://192.168.0.3:4544) failed with testurl (http://deb.debian.org/debian/dists/bookworm/InRelease)
388+ [ CHECK][ 66]: once working proxy: http://192.168.0.27:8000 for http://deb.debian.org/debian/dists/bookworm/InRelease
389+ [ CHECK-PROXY][ 94]: Proxy (http://192.168.0.27:8000) works with testurl (http://deb.debian.org/debian/dists/bookworm/InRelease).
390+ [ PROXY][ 97]: return :http://192.168.0.27:8000:
391+ [ CACHE][ 101]: Store (http://192.168.0.27:8000) in cache file (/var/lib/apt/lists/auxfiles/.apt-proxy-detect._apt)
392+ [ CACHE][ 105]: Update cachefile.
307393
308394Hit:1 http://local-repo.fritz.box/local-repo trunk InRelease
309395Hit:2 http://deb.debian.org/debian bookworm InRelease
0 commit comments