首页 很有用内容详情

记PROXMOX PVE从7.X更新到8.X处理记录

2023-08-08 2961 hy221

博主今天无聊,想更新一下家里的虚拟机系统PROXMOX PVE7更新到PVE8.04

升级过程很曲折,我自己都不知道怎么说起.此处也不准备提升级过程,只想记录一下升级完成后处理软件源的一些点

记PROXMOX PVE从7.X更新到8.X处理记录 第1张

此文使用SSH工具

FinalShell SSH 点击下方链接可下载,免费使用

https://www.ggtrj.com/post/294.html

1.取消无效订阅提示框

记PROXMOX PVE从7.X更新到8.X处理记录 第2张

找到目录:/usr/share/javascript/proxmox-widget-toolkit/

打开proxmoxlib.js文件

记PROXMOX PVE从7.X更新到8.X处理记录 第3张

文件双击打开就行在文中搜索    data.status
然后将这个括号里面的内容 改成这样  if (false)

记PROXMOX PVE从7.X更新到8.X处理记录 第4张

这样无效订阅弹窗就取消了.继续往下看

2.替换官方订阅更新源

官方本身的订阅源我们无法使用,听说需要企业证书.那么我们替换成国内中科大的免费源

记PROXMOX PVE从7.X更新到8.X处理记录 第5张

找到:/etc/apt这个目录,打开里面的sources.list

记PROXMOX PVE从7.X更新到8.X处理记录 第6张

可以直接复制下面的代码粘贴像上图一样的.将原来官方源的代码删除或者前面增加#

#中科大源
deb https://mirrors.ustc.edu.cn/debian bookworm main contrib  non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware
#清华源
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://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

 以上就把PVE订阅更新源更换成中科大的开源免费源了.

3.更换PVE源

记PROXMOX PVE从7.X更新到8.X处理记录 第7张

定位目录 /etc/apt/ 找到 pve-enterprise.list 文件打开

记PROXMOX PVE从7.X更新到8.X处理记录 第8张

如图,将官方的源地址前面加#将下面的中科大源更新复制进去

deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription

这样PVE源也替换成中科大的源了.

4.更换ceph订阅源

记PROXMOX PVE从7.X更新到8.X处理记录 第9张

定位目录 /etc/apt/ 找到 ceph.list 文件打开

记PROXMOX PVE从7.X更新到8.X处理记录 第10张

如上图,将官方源地址添加#,然后将下面的地址复制进去保存

deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy/ bookworm no-subscription

5.刷新所有源地址

记PROXMOX PVE从7.X更新到8.X处理记录 第11张

如上图所示,在PVE的Shell里运行一个 apt update 这个命令,它就会自动刷新源地址,可以看到源都换成中科大的了.

好了.本文就到此结束了.自己记录一下,也希望能给到有需要的朋友.

  • 评论列表 (0条)

 暂无评论,快来抢沙发吧~
您需要 登录账户 后才能发表评论

发布评论