修改pve为国内的 no subscription,不使用企业更新源
#修改pve为国内的 no subscription,不使用企业更新源
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
echo 'deb https://mirrors.ustc.edu.cn/proxmox/debian/pve/ buster pve-no-subscription' >> /etc/apt/sources.list.d/pve-no-subscription.list
#debian的国内镜像
sed -i 's/httpredir.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
sed -i 's/ftp.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
apt list --upgradeable -y
apt dist-upgrade --download-only -y
apt update -y
apt dist-upgrade -y