PVE使用apt-get update更新出现401的解决办法
PVE安装完毕后,会自动添加一个企业存储库的订阅,但如果您是免费用户,在使用apt-get update
更新软件的时候会出现401错误,错误内容如下:
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
在末尾添加免费的存储库:
#适用于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
此文部分内容参考了:Package Repositories
本文来自博客园,作者:木子欢儿,转载请注明原文链接:https://www.cnblogs.com/HGNET/p/17055559.html