该操作涉及到系统管理,建议在确保自身能力和安全性的情况下进行:
升级PVE7到最新版本并设置国内源:
- 删除企业源:
sudo rm -rf /etc/apt/sources.list.d/pve-enterprise.list
- 添加PVE官方GPG key:
sudo wget http://mirrors.ustc.edu.cn/proxmox/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
- 添加PVE官方源:
sudo sh -c 'echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list'
- 添加Debian官方源并设置为国内源:
sudo sh -c 'echo "deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib" > /etc/apt/sources.list'
- 设置Ceph源为国内源:
sudo sh -c 'echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus bullseye main" > /etc/apt/sources.list.d/ceph.list'
- 更新软件源并升级系统:
sudo apt update && sudo apt dist-upgrade
标签:https,PVE7,mirrors,升级,bullseye,版本,deb,main,debian
From: https://www.cnblogs.com/firmament/p/17351563.html