环境

PVE Version:7.2-3

问题

root@pve:~# apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://download.proxmox.com/debian/ceph-pacific bullseye InRelease                                                                                                
Hit:3 http://ftp.debian.org/debian bullseye InRelease                                                                                   
Get:4 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]           
Err:5 https://enterprise.proxmox.com/debian/pve bullseye InRelease
  401  Unauthorized [IP: 51.79.159.216 443]
Reading package lists... Done                                                                                                                                                                  
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease  401  Unauthorized [IP: 51.79.159.216 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

解决

root@pve:~# mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
root@pve:~# nano /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

root@pve:~#  echo 'deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription' >> /etc/apt/sources.list.d/pve-no-subscription.list
文章目录