[SOLVED] New install from jessie to stretch stretch/pve-enterprise/binary-amd64/Packages 401 Unauthorized

MarvAmBass

New Member
Mar 20, 2018
14
0
1
33
Hi there,

I reinstalled one of our Debian Jessie Proxmox Cluster Members, to get him out of the cluster and also to have a new system with latest software version.

We also have a subscription for all of our Servers.

I created the file: /etc/apt/sources.list.d/pve-enterprise.list
with the following content:

deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

But I get and 401 unauthorized error when I run `apt-get update`.

[...]
Err:7 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise amd64 Packages
401 Unauthorized
Ign:8 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise Translation-en
Hit:9 http://security.debian.org stretch/updates InRelease
Reading package lists... Done
W: The repository 'https://enterprise.proxmox.com/debian/pve stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/stretch/pve-enterprise/binary-amd64/Packages 401 Unauthorized
E: Some index files failed to download. They have been ignored, or old ones used instead.



I read on some blog (https://www.svennd.be/proxmox-ve-5-0-fix-updates-upgrades/) to remove the file /etc/apt/sources.list.d/pve-enterprise.list and add the following instead:

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

But since I have a subscription I don't want to install the community edition.
I have a backup of the old /etc folder. If there is some file for authorization in there let me know and I will add this so make it work with the enterprise repository.

Hope you can help me - thanks