PVE安裝完畢后,會自動添加一個企業(yè)存儲庫的訂閱,但如果您是免費(fèi)用戶,在使用apt-get update更新軟件的時候會出現(xiàn)401錯誤,錯誤內(nèi)容如下:
Err:7 https://enterprise.proxmox.com/debian/pve buster InRelease
401 Unauthorized [IP: 51.79.159.216 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease 401 Unauthorized [IP: 51.79.159.216 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve buster InRelease' is not signed.
解決辦法
備份原有的存儲庫:
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
然后修改/etc/apt/sources.list在末尾添加免費(fèi)的存儲庫:
適用于PVE 6.x
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
適用于PVE 7.x
deb http://security.debian.org/debian-security bullseye-security main contrib
最后再更新即可:
apt-get update
此文部分內(nèi)容參考了:Package Repositories(https://pve.proxmox.com/wiki/Package_Repositories)
原文鏈接:https://blog.csdn.net/muzihuaner/article/details/128711200