删除PVE订阅源列表
rm -f /etc/apt/sources.list.d/pve-enterprise.list
删除可能存在的PVE免费源列表
rm -f /etc/apt/sources.list.d/pve-install-repo.list
写入国内镜像源列表
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/pve/ buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
下载镜像源密钥
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默认源列表
rm -f /etc/apt/sources.list
写入国内镜像源列表地址
echo "deb http://mirrors.ustc.edu.cn/debian/ buster main contrib" > /etc/apt/sources.list
追加写入国内镜像地址
echo "deb http://mirrors.ustc.edu.cn/debian/ buster-updates main contrib" >> /etc/apt/sources.list
追加写入国内镜像源地址
echo "deb http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib" >> /etc/apt/sources.list
更新系统
apt update && apt full-upgrade
重启
reboot
原创文章,作者:VAY冬冬,如若转载,请注明出处:https://blog.vay1314.top/archives/34