Proxmox apt-get update fails

Viewed 8730

When I type in the bash of the Server apt-get update it fails, I don't know why. The error is:

E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease 401 Unauthorized [IP: 2a01:7e0:0:424::249 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.

1 Answers

The apt package manager on the fresh Proxmox host is configured to download packages from Enterprise Repository by default. You must have a paid subscription to use this repo. If you don't have paid subscription you should switch to No-Subscription Repository.

Either delete /etc/apt/sources.list.d/pve-enterprise.list file or comment all lines in this file with #.

Create new file /etc/apt/sources.list.d/pve-no-subscription.list with content:

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

Read about Proxmox package repositories here: https://pve.proxmox.com/wiki/Package_Repositories

Related