新增PVE官方源

编辑 /etc/apt/sources.list

vim /etc/apt/sources.list

对于白嫖用户,在文件底部增加

#proxmox.com提供的PVE pve-no-subscription储存库,
#不建议用于生产环境
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

对于Proxmox VE Enterprise用户

deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

6.2版本更新失败

官方预设了订阅用户源 /etc/apt/sources.list.d/pve-enterprise.list

请将里面的内容注释掉

vim /etc/apt/sources.list.d/pve-enterprise.list

//在前面加个#号注释
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

设置默认使用ipv4(可选)

有些用户没有ipv6,在更新源的时候默认优先使用ipv6,可能会导致更新列表时变慢

编辑 /etc/gai.conf

vim  /etc/gai.conf

//然后将下列内容前面的#号去掉,保存
precedence ::ffff:0:0/96  100

即时生效

顺便把debian的源也换一下吧

/etc/apt/sources.list 完整配置

#deb http://ftp.debian.org/debian buster main contrib

#deb http://ftp.debian.org/debian buster-updates main contrib

# security updates
#deb http://security.debian.org buster/updates main contrib


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

# PVE pve-no-subscription repository provided by proxmox.com
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

执行更新

apt update && apt dist-upgrade

然后重启你的pve宿主机

reboot

参考资料

https://dannyda.com/2020/05/12/how-to-upgrade-from-proxmox-6-1-to-proxmox-6-2/

分类: Linux

0 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据