[Solved][Proxmox update] Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease 401 Unauthorized [IP: 51.79.159.216 443]

Here is the solution to the Proxmox update and upgrade issue. Error : E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease  401  Unauthorized [IP: 51.79.159.216 443]

Error: 

root@moni:~## apt update

Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://ftp.debian.org/debian buster InRelease           
Hit:3 http://ftp.debian.org/debian buster-updates InRelease   
Err:4 https://enterprise.proxmox.com/debian/pve buster InRelease 401  Unauthorized [IP: 51.79.159.216 443]
Reading package lists... Done            |
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease  401  Unauthorized [IP: 51.79.159.216 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


Solution:

If you check the proxmox repository  /etc/apt/sources.list.d/pve-enterprise.list, you will find that the apt package manager on the fresh Proxmox host is configured to download packages from Enterprise Repository. For enterprise package, unless your pay the subscription one cannot upgrade the proxmox.   

If you don't want to pay and use the free version of Proxmox you should switch to No-Subscription Repository.

To do that replace the repository:

deb http://enterprise.proxmox.com/debian/pve buster pve-enterprise

with following:

deb http://download.proxmox.com/debian/pve buster pve-no-subscription


Now try updating, it should work.

root@moni:~##apt update

Hit:1 http://security.debian.org buster/updates InReleaseHit:2 http://ftp.debian.org/debian buster InRelease

.
.
.
.

14 packages can be upgraded. Run 'apt list --upgradable' to see them.

root@moni:~# apt upgrade

Reading package lists... Done
Building dependency tree       
.
.
.
After this operation, 288 MB of additional disk space will be used.

Do you want to continue? [Y/n] 

Comments

Popular posts from this blog

(Solved) (Fixed )MariaDB Unmet Dependencies on Ubuntu 20.04.

Solution to Moodle Error: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write.

ACTION_FAILED:OU_INVALID: Solution for GoogleApps bulk user upload issue, username@domainname.com:ACTION_FAILED:OU_INVALID. This error is because you have not specified the Org Unit Path properly.