删除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

Last modification:July 19th, 2020 at 02:02 pm
如果觉得我的文章对你有用,请随意赞赏