PVE虚拟机系统更换国内源

/ 1 comment / 6396 View

Shell下依次运行以下命令:

PVE换源:

wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
echo "#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list

Debian换源:

mv /etc/apt/sources.list /etc/apt/sources.list.bk
nano /etc/apt/sources.list

Sources.list加入源:

deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free

# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free

更新&安装ethtool:

apt update
apt upgrade -y
已有 1 条评论
  1. ltby

    我PVE换源和Debian换源之后,在更新--存储库中一直提示“没有启用 Proxmox VE 存储库,你没有得到任何更新!”和“一些套件配置错误” 这2个提示。你们有没有这个现象啊?apt update也是错误

发表评论