Article View: linux.debian.bugs.dist
Article #92Bug#1150279: auto-apt-proxy does not detect apt-cacher-ultra.
From: root
Date: Wed, 07 Oct 2026 22:10
Date: Wed, 07 Oct 2026 22:10
95 lines
4747 bytes
4747 bytes
This is a multi-part MIME message sent by reportbug.
--===============1196884795329277990==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: auto-apt-proxy
Version: 18.1
Severity: wishlist
Tags: patch
X-Debbugs-Cc: charlescurley@charlescurley.com
Dear Maintainer,
apt-cacher-ultra (ACU) is a new replacement for apt-cacher-ng (ACNG), et al. It has seen some discussion on the debian-user list, and a few people are experimenting with it.
I use auto-apt-proxy (AAP) to detect my local apt cache, via the host name apt-proxy.
```
root@testing:~# host apt-proxy
apt-proxy.localdomain is an alias for issola.localdomain.
issola.localdomain has address 192.168.100.12
root@testing:~# auto-apt-proxy
http://192.168.100.12:3142
root@testing:~#
```
AAP has worked quite well with ACNG; thank you. However, when I shifted to ACU, AAP failed to detect it. The attached patch works in my environment. I have not tested it with other ways of detecting an apt cache.
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 7.2.8+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages auto-apt-proxy depends on:
ii apt 3.3.3
Versions of packages auto-apt-proxy recommends:
ii busybox 1:1.38.0-3+b1
ii iproute2 7.2.0-1
Versions of packages auto-apt-proxy suggests:
pn avahi-utils <none>
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/bin/auto-apt-proxy (from auto-apt-proxy package)
--===============1196884795329277990==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="auto-apt-proxy.acu.patch"
176a177,187
> detect_apt_cacher_ultra() {
> local ip="$1"
> local proxy="$(proxy_url "$ip" 3142)"
> log_debug "looking for apt-cacher-ultra at ${proxy}"
> if hit -o "Acquire::http::Proxy::${ip}=DIRECT" "$proxy" | grep -q -i 'HTTP.*400'; then
> set_proxy "$proxy"
> return 0
> fi
> return 1
> }
>
344c355
< for test in detect_apt_cacher detect_apt_cacher_ng detect_approx detect_squid_deb_proxy; do
---
> for test in detect_apt_cacher detect_apt_cacher_ultra detect_apt_cacher_ng detect_approx detect_squid_deb_proxy; do
458,461c469,473
< detect_squid_deb_proxy "$ip" && return 0
< detect_apt_cacher_ng "$ip" && return 0
< detect_approx "$ip" && return 0
< detect_apt_cacher "$ip" && return 0
---
> detect_squid_deb_proxy "$ip" && return 0
> detect_apt_cacher_ultra "$ip" && return 0
> detect_apt_cacher_ng "$ip" && return 0
> detect_approx "$ip" && return 0
> detect_apt_cacher "$ip" && return 0
--===============1196884795329277990==--
Technical Details
Message-ID:
<NLHZL-49AP-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: root <charlescurley@charlescurley.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1150279: auto-apt-proxy does not detect apt-cacher-ultra. Date: Thu, 08 Oct 2026 00:10:01 +0200 Message-ID: <NLHZL-49AP-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Oct 7 22:09:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -0.408 Reply-To: root <charlescurley@charlescurley.com>, 1150279@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: charlescurley@charlescurley.com, terceiro@debian.org X-Debian-Pr-Message: report 1150279 X-Debian-Pr-Package: auto-apt-proxy X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: auto-apt-proxy Content-Type: multipart/mixed; boundary="===============1196884795329277990==" MIME-Version: 1.0 X-Mailer: reportbug 13.2.0+nmu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995626 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 95 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 07 Oct 2026 16:07:12 -0600 X-Original-Message-ID: <179141083266.5382.11652181817160536112.reportbug@testing.virtual>