leftso 39 0 2022-09-14
PVE 7.x更换国内源

备份之前的
cp /etc/apt/sources.list.d/pve-install-repo.list /root

删除企业源
rm /etc/apt/sources.list.d/pve-install-repo.list

配置国内非订阅源
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
 
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bullseye main" > /etc/apt/sources.list.d/ceph.list
 
echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" >>  /etc/apt/sources.list


备份source.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak

编辑source.list,内容如下:
deb http://mirrors.aliyun.com/debian bullseye main contrib

deb http://mirrors.aliyun.com/debian bullseye-updates main contrib

# security updates
deb http://mirrors.aliyun.com/debian-security bullseye-security main contrib

# deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

更新源
apt update

更新稳定软件
apt dist-upgrade -y

提示:
该操作可能会升级pve版本,如果不需要升级则请勿执行


 

评论区域