PVE更新错误提示解决备忘

PVE apt update 错误提示解决备忘

PVE版本8.2.2 提示:

TASK ERROR: command 'apt-get update' failed: exit code 100

apt update && apt dist-upgrade
1
2
3
4
5
6
7
8
9
10
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bookworm InRelease
Hit:3 http://ftp.debian.org/debian bookworm-updates InRelease
Err:4 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
401 Unauthorized [IP: 51.79.228.122 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease 401 Unauthorized [IP: 51.79.228.122 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm 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.

解决办法

1
2
pve-enterprise.list  pve-enterprise.list.dpkg-dist
nano /etc/apt/sources.list.d/ceph.list

修改ceph.list

1
2
#deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription