PVE使用apt-get update更新出現(xiàn)401的解決辦法

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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容