ProXmoX VE Update apt-get update Error [How to Solve]

Use the default apt update source of proxmox ve. After clicking “Refresh” on the web update management panel, an error will be displayed. At this time, because the default update source is the subscription of proxmox ve Enterprise Edition, if we do not purchase the subscription, we will prompt the signature error, which makes the apt update fail. The solution is very simple. Just replace the software source. Proxmox officially provides sources corresponding to different versions, which can be selected according to your own situation.

The principle of the three solutions found online is to replace the software source. The three methods are:

Method 1:

vim /etc/apt/sources.list.d/pve-enterprise.list

Note out:

# deb stretch pve-enterprise


echo "deb stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

Method 2:

Edit sources.list and enter the following command:

nano /etc/apt/sources.list

Add at the bottom after opening:

deb buster pve-no-subscription

Then press Ctrl + O to save and Ctrl + X to exit.

Edit pve-enterprise.list and enter the following command:

nano /etc/apt/sources.list.d/pve-enterprise.list

Comment out   deb buster pve-enterprise

Then save and exit.

Method 3:

Back up the original sources.list

cp /etc/apt/sources.list /etc/apt/sources.list.bak

Replace the contents of sources.list with the following official non feeds

deb buster main contrib
deb buster-updates main contrib

# PVE pve-no-subscription repository provided by,
# NOT recommended for production use
deb buster pve-no-subscription

# security updates
deb buster/updates main contrib

Comment out the original URL in /etc/apt/sources.list.d/pve-enterprise.list

# deb buster pve-enterpris

Then execute the following command to upgrade normally.

apt update && apt dist-upgrade

After the upgrade, reboot and restart the physical server, execute pveversion – V to check the latest software version.

Similar Posts: