原创文章,转载请注明出处
https://qiedd.com/
新增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
PVE 7
# deb http://ftp.debian.org/debian bullseye main contrib # deb http://ftp.debian.org/debian bullseye-updates main contrib # security updates # deb http://security.debian.org bullseye-security main contrib deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb http://mirrors.aliyun.com/debian-security bullseye-security main deb-src http://mirrors.aliyun.com/debian-security bullseye-security main deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye-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 bullseye 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/
3 条评论
Andy · 2021年3月24日 上午10:15
本人Linux小白,请教下博主:在更换源的时候输入的命令“deb http://download.proxmox.com/debian/pve buster pve-no-subscription”中,按照网址逐级进入,不是应该http://download.proxmox.com/debian/pve/dists/buster/pve-no-subscription吗?为什么会输入成http://download.proxmox.com/debian/pve buster pve-no-subscription?可否解释一下?
Lordpenguindd · 2021年3月24日 上午11:34
源:http://download.proxmox.com/debian/pve
发行版:buster
源的分支:pve-no-subscription
Andy · 2021年3月26日 下午2:06
感谢大神的悉心解答。