Upgrade Proxmox PVE 7 auf PVE 8

OS Installation, Konfiguration etc.
Post Reply
User avatar
h3rb3rn
Administrator
Posts: 191
Joined: Mon 9. Feb 2015, 23:29

Upgrade Proxmox PVE 7 auf PVE 8

Post by h3rb3rn »

Aktualisiert am 15.08.2024

Debian 11 (Bullseye) Grundsystem aktualisieren

Code: Select all

apt update; apt full-upgrade -y
Repositories anpassen auf Debian 12 (bookworm)

Code: Select all

echo "deb  https://deb.debian.org/debian bookworm main contrib non-free-firmware" > /etc/apt/sources.list;
echo "deb-src  https://deb.debian.org/debian bookworm main contrib non-free-firmware" >> /etc/apt/sources.list;
echo " " >> /etc/apt/sources.list;
echo "deb  https://deb.debian.org/debian bookworm-updates main contrib non-free-firmware" >> /etc/apt/sources.list;
echo "deb-src  https://deb.debian.org/debian bookworm-updates main contrib non-free-firmware" >> /etc/apt/sources.list;
echo " " >> /etc/apt/sources.list;
echo "deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free-firmware" >> /etc/apt/sources.list;
echo "deb-src http://deb.debian.org/debian-security/ bookworm-security main contrib non-free-firmware" >> /etc/apt/sources.list;
echo " " >> /etc/apt/sources.list;
echo "deb http://deb.debian.org/debian bookworm-backports main contrib non-free-firmware" >> /etc/apt/sources.list;
echo "deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free-firmware" >> /etc/apt/sources.list;
apt update;
Proxmox Repository auf PVE 8 anpassen

Code: Select all

sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*;
apt update;
File setzen, damit Upgrade durchgeführt wird

Code: Select all

touch '/please-remove-proxmox-ve'
Upgrade auf Debian 12 und PVE 8

Code: Select all

apt full-upgrade -y;
apt full-upgrade -y;
apt autoremove;
apt autoclean;
Reboot and Finish

Code: Select all

reboot
Wenn Fehlermeldung
/bin/sh: 1: /usr/share/proxmox-ve/pve-apt-hook: not found


Fix:

Code: Select all

rm /usr/share/proxmox-ve;
mkdir /usr/share/proxmox-ve;
touch /usr/share/proxmox-ve/pve-apt-hook;
chmod u+x /usr/share/proxmox-ve/pve-apt-hook;
apt install proxmox-ve -y;
Quelle: https://forum.proxmox.com/threads/error ... und.45436/

Wenn Dependency Fehler wegen falscher Package Versionen - !!! nur ausführen, wenn kein Ceph im Einsatz ist !!!:

Code: Select all

apt autoremove ceph-common librbd1 python3-ceph-argparse python3-ceph-common python3-cephfs python3-rados  librbd1 librados2 libcephfs2

Code: Select all

apt-get install proxmox-ve
Post Reply