Proxmox Backup Server(PBS)在安裝完成後,預設會啟用 Enterprise 企業版更新源,需要付費訂閱才能正常使用。如果你沒有企業授權,每次更新時會看到以下錯誤:
401 Unauthorized
You do not have a valid subscription
其實 Proxmox 官方也提供 No-Subscription 的免費社群版更新源,
只要切換來源,就能正常取得系統更新與安全性修補。
這篇文章記錄 PBS 4.x(Debian 13 trixie) 切換到社群版更新源的完整步驟。
✅ 1. 檢查目前系統版本
PBS 4.x 對應 Debian 13 trixie,你可以確認:
cat /etc/debian_version
若顯示 13.x 或 trixie,代表你使用的是 PBS 4.x 對應的系統版本。
✅ 2. 停用 Enterprise 企業版更新源
PBS 預設的企業版 repository 存放於:
/etc/apt/sources.list.d/pbs-enterprise.sources
編輯它:
nano /etc/apt/sources.list.d/pbs-enterprise.sources
將整個內容全部註解掉或加入:
Enabled: no
例如:
#Types: deb
#URIs: https://enterprise.proxmox.com/debian/pbs
#Suites: trixie
#Components: pbs-enterprise
#Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
#Enabled: no
這樣即可完全停用企業版更新源。
✅ 3. 建立社群版 (No-Subscription) 更新源
Proxmox Backup Server 4.x 官方建議使用 Deb822 格式 (.sources) 設定 repository。
建立檔案:
nano /etc/apt/sources.list.d/proxmox.sources
加入以下內容:
Types: deb
URIs: http://download.proxmox.com/debian/pbs
Suites: trixie
Components: pbs-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
重點說明:
| 欄位 | 說明 |
|---|---|
| URIs | 官方 PBS 更新源 |
| Suites | PBS 4.x 使用 trixie(Debian 13) |
| Components | 使用免費社群版:pbs-no-subscription |
| Signed-By | 使用統一的 keyring:proxmox-archive-keyring.gpg |
✅ 4. 安裝 / 修正 Proxmox 官方 Keyring
PBS 4 使用新的簽章 keyring,必須存在:
/usr/share/keyrings/proxmox-archive-keyring.gpg
如果不存在,可手動下載:
wget https://download.proxmox.com/debian/proxmox-archive-keyring.gpg \
-O /usr/share/keyrings/proxmox-archive-keyring.gpg
chmod 644 /usr/share/keyrings/proxmox-archive-keyring.gpg
❌ 5. 移除過去版本殘留的 Bookworm PBS Repo(重要)
如果你的 PBS 升級過、或曾自行加入 repo,很可能出現舊的:
Suites: bookworm
這會造成更新衝突(因為 PBS 4 應該使用 trixie)。
刪除舊的 repo:
rm -f /etc/apt/sources.list.d/pbs-no-subscription.sources
rm -f /etc/apt/sources.list.d/pbs.list
rm -f /etc/apt/sources.list.d/proxmox-backup-server.list
只保留一個正確的:
/etc/apt/sources.list.d/proxmox.sources
✅ 6. 重新更新套件清單
apt update
正常情況下,你應該會看到:
Get: http://download.proxmox.com/debian/pbs trixie pbs-no-subscription ...
不會再看到以下錯誤:
401 Unauthorizedrepository is not signedMissing key XXXXbookwormPBS 殘留 repo
最後執行更新:
apt full-upgrade -y
🎉 完成!你的 PBS 已經成功切換到社群版
切換後你可以:
- 正常收到 PBS 4.x 的更新與安全修補
- 不需要付費訂閱
- 不會再出現 Enterprise 的錯誤提示
所有 PBS 功能仍然完整可用。