Proxmox Update über Commandline funktioniert nicht

Leider schweigt sich das Online Manual von Proxmox zum “normalen” Update über die Kommandozeile etwas aus.
Tippt man ganz unbedarft ein “apt-get update” ein, landet man bei folgender Ausgabe:

apt-get update
Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
Err:2 https://enterprise.proxmox.com/debian/pve buster InRelease
401 Unauthorized [IP: 212.224.123.70 443]
Hit:3 http://ftp.de.debian.org/debian buster InRelease
Get:4 http://ftp.de.debian.org/debian buster-updates InRelease [51.9 kB]
Get:5 http://security.debian.org buster/updates/main amd64 Packages [270 kB]
Reading package lists… Done
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease 401 Unauthorized [IP: 212.224.123.70 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve buster 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.

Ups, und das war’s dann mit dem update?
Der Grund dafür ist, dass auch in der Community Edition die Enterprise Quelle eingetragen ist.
Also kurz mal schnell die Quelle mit “vi /etc/apt/sources.list.d/pve-enterprise.list” editiert folgendermaßen geändert:

Proxmox 6.4

vi /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
deb http://download.proxmox.com/debian buster pve-no-subscription

Update 17.07.2022

Proxmox 7.x

vi /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

Update 02.02.2024

Proxmox 8.x

nano /etc/apt/sources.list
deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib
# Proxmox VE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib

nano apt/sources.list.d/ceph.list
#deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription

Danach kann man ganz normal updaten:

apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get autoclean

Und das war’s dann auch schon?
Schreib mir gerne einen Kommentar.

1 Kommentar

Hinterlasse einen Kommentar

An der Diskussion beteiligen?
Hinterlasse uns deinen Kommentar!

Schreibe einen Kommentar zu Steffen Antworten abbrechen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert