由于pve系统更新 7.4.18 官方已经停止更新了,要升级到 8.2 现在记录升级过程
准备工作:按照PVE官方升级页面提示,7.x的PVE必须升级到目前最新7.4-18
将自带的源文件sources.list备份
cp /etc/apt/sources.list /etc/apt/sources.list_bak
nano /etc/apt/sources.list
#粘贴一下内容
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
ctrl+x 点y 回车保存退出
(2)编辑pve企业源:
nano /etc/apt/sources.list.d/pve-enterprise.list
将其中原有的proxmox句首加# 注释掉,变为:#deb https:///debian/pve bullseye pve-enterprise添加以下清华源:
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription
ctrl+x 点 y 回车保存退出
更新并升级
apt update然后apt dist-upgrade -y
以上是7.4升到到最新版本的过程
下面开始准备7.4升级到8.2的系统
(1)升级8.0开始更换8.0的源
#将自带的源文件sources.list备份
cp /etc/apt/sources.list /etc/apt/sources.list_bak
编辑sources.list
nano /etc/apt/sources.list
粘贴一下内容
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
ctrl+x 点Y回车保存退出
(2)编辑pve企业源:
nano /etc/apt/sources.list.d/pve-enterprise.list
将其中原有的proxmox句首加# 注释掉,变为:#deb https:///debian/pve bookworm pve-enterprise
#添加以下清华源:
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
(3)修复源401错误
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
(4)下载官方证书
wget https:///debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
(5)运行检测,看有无严重问题
pve7to8 --full
(6)检查无误后开始升级
apt update && apt dist-upgrade -y
下面有4个地方要注意
回复 y
重启libc6服务 yes
回复 y
不更新 n
升级无明显报错后,重启PVE reboot
说明一下:大部分都是按照 爱折腾的老高这个账号里文章写的 再次谢谢博主