PBS Post Install
Set up package repositories, the subscription notice and updates on a Proxmox Backup Server 3 or 4 host.
post-pbs-install.sh is the Proxmox Backup Server counterpart of PVE Post Install. It corrects the Debian sources, sets up the PBS repositories, optionally removes the subscription notice, updates and reboots.
Website entry: post-pbs-install. Source: tools/pve/post-pbs-install.sh.
Run
In the Proxmox Backup Server shell, as root. Not on a Proxmox VE host: if pveversion exists the script prints "PVE Detected, Wrong Script!" and exits with 232.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pbs-install.sh)"Supported versions
The routine is chosen from VERSION_CODENAME in /etc/os-release:
| Codename | PBS | Sources format |
|---|---|---|
bookworm | 3.x | .list files |
trixie | 4.x | deb822 .sources files |
Any other codename exits with 105. whiptail must be installed, otherwise the script exits with 127.
Prompts
The script starts with the text prompt Start the Proxmox Backup Server Post Install Script (y/n)?. Only the steps in this table ask a question; the repository steps below run without asking.
| Menu title | Choices | Effect |
|---|---|---|
| PBS SOURCES (3.x) | yes | Overwrites /etc/apt/sources.list with the bookworm, bookworm-updates and bookworm-security entries (main contrib). |
| PBS SOURCES (4.x) | yes | Deletes /etc/apt/sources.list.d/*.list, removes lines containing proxmox or bookworm from /etc/apt/sources.list and writes /etc/apt/sources.list.d/debian.sources for trixie, trixie-updates and trixie-security (main contrib non-free-firmware). |
PBS Enterprise Repository (4.x, only if pbs-enterprise is present) | yes | Sets Enabled: false in /etc/apt/sources.list.d/pbs-enterprise.sources. |
no | Keeps it active. | |
| SUBSCRIPTION NAG | yes | Writes the APT hook /etc/apt/apt.conf.d/no-nag-script, which patches /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js after every package operation. |
no | Deletes /etc/apt/apt.conf.d/no-nag-script. | |
| UPDATE | yes | apt update and apt -y dist-upgrade. |
| REBOOT | yes | Reboots the host. |
After the nag question the script reinstalls proxmox-widget-toolkit, which applies the patch or, without the hook, restores the original file.
Repository steps without a question
PBS 3.x
| Repository | Found active | Found disabled | Missing |
|---|---|---|---|
pbs-enterprise | Commented out in the file that contains it | Left alone | /etc/apt/sources.list.d/pbs-enterprise.list is written with the entry commented out |
pbs-no-subscription | Left alone | Left alone | /etc/apt/sources.list.d/pbs-install-repo.list is written, active |
pbstest | Left alone | Left alone | /etc/apt/sources.list.d/pbstest-for-beta.list is written, commented out |
PBS 4.x
| Repository | Present | Missing |
|---|---|---|
pbs-enterprise | Asks (see above) | /etc/apt/sources.list.d/pbs-enterprise.sources is written with Enabled: false |
pbs-no-subscription | Left alone | /etc/apt/sources.list.d/proxmox.sources is written, active |
pbs-test | Left alone | /etc/apt/sources.list.d/pbs-test.sources is written with Enabled: false |
On ARM64 (dpkg --print-architecture returns arm64) all Proxmox repository steps are skipped; only the Debian sources, nag, update and reboot steps run.
Undo
- Subscription notice: run the script again and answer
noat SUBSCRIPTION NAG. - Repository files: no backup is made. Edit or delete the files named above.
Environment variables
| Variable | Default | Purpose |
|---|---|---|
COMMUNITY_SCRIPTS_CORE_URL | https://raw.githubusercontent.com/community-scripts/core/main | Base URL the script loads api/api.func from. |
Limits
- Unlike the PVE script, an active
pbs-enterpriserepository on 3.x is disabled without asking. - The 4.x sources step deletes every
.listfile in/etc/apt/sources.list.d/, including third-party ones. - The script does not upgrade between major versions; see pbs3-upgrade and PBS 4 Upgrade.