Jump to content

Apt cache

From base48
Revision as of 21:48, 24 May 2026 by Vega (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

base lan has an apt cache deployed, with the intention to allow people using ubuntu/debian based distros or containers to download and update their packages faster from a lan cache instead of using the flaky starlink uplink.

To use the cache simply create a file /etc/apt/apt.conf.d/00baseaptproxy containing the line

Acquire::http::Proxy "http://apt-cacher-ng.at.base48.cz:3142";

or run this scriptlet:

echo 'Acquire::http::Proxy "http://apt-cacher-ng.at.base48.cz:3142";' > /etc/apt/apt.conf.d/00baseaptproxy && apt update

No other configuration needed. Beware: downloading anything will fail if the proxy is down or you're not on base lan, so this is best used for containers/vms on the proxmox cluster, not on your personal laptop, at least not permanently. Running apt update is all that's needed to apply the changes in proxy settings.