Files
ENDRENCE LETERNET 9831d0b36f **Added:**
* Interactive option to **remove all existing APT proxy configurations**, restoring default behavior for all selected targets.
* Support for **selective skipping** of LXC/VM IDs via comma-separated input.
* Prompt to **overwrite existing config** if `00aptproxy` already exists inside target.
* Interactive mode to **apply** or **remove** proxy across:

  * LXC containers
  * VMs with QEMU Guest Agent
  * Proxmox host node

**Changed:**

* Refactored script for **simplified structure** with clearer flow and prompts.
* Improved compatibility check: now uses `/etc/os-release` for accurate distro detection (Ubuntu/Debian only).
* Replaced legacy check via `lsb_release` for faster and leaner execution.

**Fixed:**

* Old proxy files like `01proxy` are now reliably **detected and removed** before applying a new config.
* Ensured **port and proxy format** strictly follow APT specification:
  `Acquire::http::Proxy "http://<host>:<port>";`
2025-07-29 15:00:04 +06:00
..
2025-07-29 15:00:04 +06:00

update_apt_proxy_all.sh

This script automates the configuration of the apt-cacher-ng proxy for all Proxmox LXC containers, VMs (with QEMU Guest Agent), and optionally the Proxmox node itself.

Features

  • Interactive prompts for proxy IP, port, and target selection (LXC, VM, All, Node).
  • Updates /etc/apt/apt.conf.d/01proxy in selected targets.
  • Works with both LXC containers and VMs (requires QEMU Guest Agent for VMs).
  • Optionally updates the Proxmox node itself.

Usage

You can run the script directly if its cloned locally:

bash misc/update_apt_proxy_all/update_apt_proxy_all.sh

Or, run it directly from the raw link (no need to clone):

bash <(curl -s https://git.lewsion.com/endrence/proxmox-scripts/raw/branch/main/misc/update_apt_proxy_all/update_apt_proxy_all.sh)

Follow the prompts to select targets and configure the proxy.

Requirements

  • Proxmox environment with pct and qm commands available.
  • QEMU Guest Agent installed in VMs for VM updates.

License

MIT