————————————————————————————————————
注:升级可能需要去国外下载安装包,建议挂代理!
也可以apt dist-upgrade –download-only,先确定后有包都下载下来后再安装
有集群的升级需要升级 Corosync 3.x等其它配置祥见官方指导文件:https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0
tar -zcvf /root/pve-etc.bak /etc
scp 到其它电脑
先检确定pve为免费源
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
cat /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
apt update
apt dist-upgrade
pve5to6
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" >pve-no-subscription.list
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" >pve-no-subscription.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
修改 /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
apt update && apt upgrade && apt dist-upgrade




YES

上面回车继续

Q退出
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
reboot now