國內(nèi)源
刪除企業(yè)源
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
備份源
mv /etc/apt/sources.list.d/pve-no-subscription.list /etc/apt/pve-no-subscription.list.backup
mv /etc/apt/sources.list /etc/apt/sources.list.backup
下載秘鑰
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
添加國內(nèi)源
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list
這里要注意下看峻,很多教程會設(shè)置成錯誤 deb http://mirrors.ustc.edu.cn/proxmox/debian/pve strech pve-no-subscription造成無法升級為pve6.2
strech--debian 9--pve 5.x
buster--debian 10--pve 6.x
建議同時使用國內(nèi) debian 源,修改 /etc/apt/sources.list 文件冠句,添加如下內(nèi)容:
echo "deb http://mirrors.ustc.edu.cn/debian buster main contrib
deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib
deb http://mirrors.ustc.edu.cn/debian-security buster/updates main contrib" > /etc/apt/sources.list
pve_ceph設(shè)置國內(nèi)源
原配置文件:/etc/apt/sources.list.d/ceph.list
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus buster main" > /etc/apt/sources.list.d/ceph.list
最后執(zhí)行
apt update
apt update && apt dist-upgrade
國外源
Here is the howto for the CLI:
Check your sources.list file, should look like this:
deb http://deb.debian.org/debian buster main contrib
deb http://deb.debian.org/debian buster-updates main contrib
# security updates
deb http://security.debian.org buster/updates main contrib
The enterprise repository:
cat /etc/apt/sources.list.d/pve-enterprise.list
deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
Update your repository and packages:
apt update
If you get any errors, your sources.list (or your network) has a problem.
Now upgrade the packages:
apt dist-upgrade
Reboot to activate the new Kernel, to check if you got all packages, run 'pveversion -v' and compare your output (all packages should have equal or higher version numbers):
pve-server:~# pveversion -v
proxmox-ve: 6.3-1 (running kernel: 5.4.78-2-pve)
pve-manager: 6.3-3 (running version: 6.3-3/eee5f901)
pve-kernel-5.4: 6.3-3
pve-kernel-helper: 6.3-3
pve-kernel-5.4.78-2-pve: 5.4.78-2
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.5
libproxmox-backup-qemu0: 1.0.2-1
libpve-access-control: 6.1-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.3-2
libpve-guest-common-perl: 3.1-3
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.3-3
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.3-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.0.6-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.4-3
pve-cluster: 6.2-1
pve-container: 3.3-1
pve-docs: 6.3-1
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.1-3
pve-ha-manager: 3.1-1
pve-i18n: 2.2-2
pve-qemu-kvm: 5.1.0-7
pve-xtermjs: 4.7.0-3
qemu-server: 6.3-2
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 0.8.5-pve1
pve-server:~#
Important Note
If you already use your Proxmox VE Subscription Key, access to the Enterprise repository works out of the box. For more details about the Proxmox VE repositories, see Package repositories