简介
PVE虽然是开源的,但是内置的软件源是需要付费订阅的,当然也有免费的,但是需要手动添加
禁用内置默认的企业订阅源
在pve中使用下面命令禁用内置的企业订阅源
# 禁用 PVE 企业源
if [ -f /etc/apt/sources.list.d/pve-enterprise.sources ]; then
sed -i 's/^Enabled:.*/Enabled: no/' /etc/apt/sources.list.d/pve-enterprise.sources
fi
# 禁用 Ceph 企业源(如果你不用 Ceph,也可以直接忽略它)
if [ -f /etc/apt/sources.list.d/ceph.sources ]; then
sed -i 's/^Enabled:.*/Enabled: no/' /etc/apt/sources.list.d/ceph.sources
fi
添加免费的源
使用下面命令创建并添加免费的源
# 添加 PVE 免费源
cat > /etc/apt/sources.list.d/pve-no-subscription.sources <<EOF
Types: deb
URIs: http://download.proxmox.com/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF
# 如果你使用 Ceph,也添加 Ceph 的免费源
cat > /etc/apt/sources.list.d/ceph-no-subscription.sources <<EOF
Types: deb
URIs: http://download.proxmox.com/debian/ceph-squid
Suites: trixie
Components: no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF
再次更新
使用下面命令再次更新,查看是否还存在401错误
apt-get update