Failed to fetch enterprise.proxmox.com 401 Unauthorized

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

Proxmox Server Solutions GmbH from Vienna provides two package repositories for Proxmox VE: Proxmox VE Enterprise Repository (subject to a fee, recommended for productive use) and Proxmox VE No-Subscription Repository (free of charge, recommended for testing purposes). After Installation of Proxmox VE, the following error message appears when trying to install updates: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease 401 Unauthorized. This article shows how to solve this error by either setting up a paid subscription to the Enterprise Repository or, alternatively, using the free No-Subscription Repository.

Troubleshooting

After the installation, Proxmox VE displays the following error message when trying to install the updates. The access to Proxmox VE Enterprise Repository can be unlocked with a subscription key. Alternatively, the Proxmox VE No-Subscription Repository is available for testing purposes.

After the installation of Proxmox VE, the following message appears without further configuration when trying to install updates:

Header
Proxmox
Virtual Environment 8.1.3
Node 'pve'
Show details
Logs
()
starting apt-get update
Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
[...]
Get:9 http://ftp.at.debian.org/debian bookworm/main Translation-en [6109 kB]
Err:10 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
  401  Unauthorized [IP: 212.224.123.70 443]
Err:11 https://enterprise.proxmox.com/debian/pve bookworm InRelease
  401  Unauthorized [IP: 212.224.123.70 443]
Get:12 http://ftp.at.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]
Get:13 http://ftp.at.debian.org/debian bookworm/contrib Translation-en [48.7 kB]
Get:14 http://ftp.at.debian.org/debian bookworm-updates/main amd64 Packages [12.7 kB]
Get:15 http://ftp.at.debian.org/debian bookworm-updates/main Translation-en [13.8 kB]
Reading package lists...
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  401  Unauthorized [IP: 212.224.123.70 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease' is not signed.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bookworm/InRelease  401  Unauthorized [IP: 212.224.123.70 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bookworm InRelease' is not signed.
TASK ERROR: command 'apt-get update' failed: exit code 100

Solution 1: Proxmox VE Enterprise Repository

This is the default, stable and recommended repository that is available for all users of Proxmox VE subcriptions. It contains the most stable packages and is suitable for production use. The pve-enterprise Repository is activated by default (/etc/apt/sources.list.d/pve-enterprise.list).

Information on the subscriptions available can be found in the article Proxmox VE Support-Subscriptions.

Solution 2: Proxmox VE No-Subscription Repository

This is the repository that is recommended for testing and non-production purposes. The included packages are not as intensively tested and validated as those from the Proxmox VE Enterprise Repository. There is no subscription key required for the access on the pve-no-subscription Repository.

The following settings must be selected in /etc/apt/sources.list for using the No-Subscription Repository:

deb http://ftp.at.debian.org/debian bookworm main contrib
deb http://ftp.at.debian.org/debian bookworm-updates main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

# security updates
deb http://security.debian.org bookworm-security main contrib

Note: So that the message "failed to fetch" disappears permanently, you must comment out the respective repository listed in each file by adding a "#" before it in the following two files:

  • /etc/apt/sources.list.d/pve-enterprise.list:
    # deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
  • /etc/apt/sources.list.d/ceph.list:
    # deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise

More information


Author: Werner Fischer

Werner Fischer, working in the Knowledge Transfer team at Thomas-Krenn, completed his studies of Computer and Media Security at FH Hagenberg in Austria. He is a regular speaker at many conferences like LinuxTag, OSMC, OSDC, LinuxCon, and author for various IT magazines. In his spare time he enjoys playing the piano and training for a good result at the annual Linz marathon relay.


Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

Broadcom P2100G weak network performance within docker
Known Issues Proxmox VE
SSL-Error Proxmox:error:0A000086:SSL routines::certificate verify failed (596)