[SOLVED] Update Unauthorized, after latest update.

Dec 26, 2018
138
2
23
35
So after upgrading 4 of our Proxmox servers from 6.0 to 6.1, i get this error:

Code:
starting apt-get update

Hit:1 http://ftp.no.debian.org/debian buster InRelease

Hit:2 http://ftp.no.debian.org/debian buster-updates InRelease

Hit:3 http://security.debian.org buster/updates InRelease

Hit:4 http://download.proxmox.com/debian/ceph-nautilus buster InRelease

Err:5 https://enterprise.proxmox.com/debian/pve buster InRelease

  401  Unauthorized [IP: 212.224.123.70 443]

Ign:6 http://downloads.linux.hpe.com/SDR/repo/mcp stretch/current InRelease

Hit:7 http://downloads.linux.hpe.com/SDR/repo/mcp stretch/current Release

Reading package lists...

E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease  401  Unauthorized [IP: 212.224.123.70 443]

E: The repository 'https://enterprise.proxmox.com/debian/pve buster InRelease' is no longer signed.

TASK ERROR: command 'apt-get update' failed: exit code 100


But only on 2 of 4 servers. And all of them have license.
 
What's the status of the subscription on these nodes? For good measure click the "Check" button in the Subscription panel.
 
I had this same issue and beat my head against a wall for the longest time. The answer is indeed in the Package_Repositories page, but its not as explicit as you'd like. I had to edit my repositories list at /etc/apt/sources.list as stated in the post, but you also have to comment out the line listed in /etc/apt/sources.list.d/pve-enterprise.list. If you don't comment out the line in the second file, it still tries to use the enterprise repo. After commenting that out, run apt update and it should work.
 
I had this same issue and beat my head against a wall for the longest time. The answer is indeed in the Package_Repositories page, but its not as explicit as you'd like. I had to edit my repositories list at /etc/apt/sources.list as stated in the post, but you also have to comment out the line listed in /etc/apt/sources.list.d/pve-enterprise.list. If you don't comment out the line in the second file, it still tries to use the enterprise repo. After commenting that out, run apt update and it should work.
thanks so much. big help.
the answer is on the page but not being very familiar with pve (yet) i looked right through it.
 
I had this same issue and beat my head against a wall for the longest time. The answer is indeed in the Package_Repositories page, but its not as explicit as you'd like. I had to edit my repositories list at /etc/apt/sources.list as stated in the post, but you also have to comment out the line listed in /etc/apt/sources.list.d/pve-enterprise.list. If you don't comment out the line in the second file, it still tries to use the enterprise repo. After commenting that out, run apt update and it should work.
I registered for this forum only to say thank you. Thank you.
 
  • Like
Reactions: natenate2627
Just fyi in case somebody else gets stuck. I ended up having to edit 2 files. #1 is /etc/apt/sources.list.d . On there I had the enterprise.proxmox.com line with pve-enterprise at the end. I commented that out.

Code:
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise

#2 was editing the /etc/apt/sources.list file. On there I added the line with the download.proxmox.com (pve-no-subscription) as the Package_Repositories page suggests.

Code:
deb http://ftp.us.debian.org/debian bullseye main contrib

deb http://ftp.us.debian.org/debian bullseye-updates main contrib

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

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

after that I was able to do an apt-get update and apt-get upgrade just fine. I'm using proxmox 7.1.
 
Thanks magnumsferrari - that worked for me. Specifically, my long-running proxmox server had the correct /etc/apt/sources.list file already, but somehow a file referencing the enterprise source was added at: /etc/apt/sources.list.d/pve-enterprise.list. Commented out the single entry there and now back to successful updates.
 
Thanks magnumsferrari - that worked for me. Specifically, my long-running proxmox server had the correct /etc/apt/sources.list file already, but somehow a file referencing the enterprise source was added at: /etc/apt/sources.list.d/pve-enterprise.list. Commented out the single entry there and now back to successful updates.
the enterprise repo is the default when you install pve.

if you remove/comment the enterprise repo, don't forget to add the pve-no-subscription repo.
 
  • Like
Reactions: agancs
I had this same issue and beat my head against a wall for the longest time. The answer is indeed in the Package_Repositories page, but its not as explicit as you'd like. I had to edit my repositories list at /etc/apt/sources.list as stated in the post, but you also have to comment out the line listed in /etc/apt/sources.list.d/pve-enterprise.list. If you don't comment out the line in the second file, it still tries to use the enterprise repo. After commenting that out, run apt update and it should work.
Your post was very useful for me
Thank you !!!
 
I had this same issue and beat my head against a wall for the longest time. The answer is indeed in the Package_Repositories page, but its not as explicit as you'd like. I had to edit my repositories list at /etc/apt/sources.list as stated in the post, but you also have to comment out the line listed in /etc/apt/sources.list.d/pve-enterprise.list. If you don't comment out the line in the second file, it still tries to use the enterprise repo. After commenting that out, run apt update and it should work.
i love you!! worked perfectly!!!
 
It would appear that somewhat recently you have edit a 3rd file in order to abate the enterprise apt-get error.

The new source is in this file /etc/apt/sources.list.d/ceph.list
 
  • Like
Reactions: square_eyes

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!