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://pve.proxmox.com/wiki/Package_Repositories)

原文链接:https://blog.csdn.net/muzihuaner/article/details/128711200

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容