Upgrade from 4.4-1 to 5 error: HttpErrro401

eiger3970

Well-Known Member
Sep 9, 2012
276
3
58
I am trying to upgrade to Proxmox 6, so I'm upgrade my version 4 to 5, then will upgrade 5 to 6.
However, the 1st command as per guide
Bash:
apt-get update && apt-get dist-upgrade
brings up error:
Bash:
root@proxmox:~# apt-get update && apt-get dist-upgrade
Ign http://ftp.au.debian.org stretch InRelease
Hit http://ftp.au.debian.org stretch Release.gpg
Hit http://ftp.au.debian.org stretch Release
Hit http://security.debian.org stretch/updates InRelease        
Hit http://ftp.au.debian.org stretch/main amd64 Packages
Hit http://ftp.au.debian.org stretch/contrib amd64 Packages                        
Hit http://ftp.au.debian.org stretch/contrib Translation-en                        
Hit http://ftp.au.debian.org stretch/main Translation-en        
Get:1 http://security.debian.org stretch/updates/main amd64 Packages [520 kB]
Get:2 http://security.debian.org stretch/updates/contrib amd64 Packages [1,760 B]
Get:3 http://security.debian.org stretch/updates/contrib Translation-en [1,759 B]
Get:4 http://security.debian.org stretch/updates/main Translation-en [230 kB]
Get:5 https://enterprise.proxmox.com stretch InRelease [188 B]
Ign https://enterprise.proxmox.com stretch InRelease
Get:6 https://enterprise.proxmox.com stretch Release.gpg [188 B]
Ign https://enterprise.proxmox.com stretch Release.gpg
Get:7 https://enterprise.proxmox.com stretch Release [188 B]
Ign https://enterprise.proxmox.com stretch Release
Get:8 https://enterprise.proxmox.com stretch/pve-enterprise amd64 Packages [188 B]
Get:9 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en_US [188 B]
Get:10 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en [188 B]
Get:11 https://enterprise.proxmox.com stretch/pve-enterprise amd64 Packages [188 B]
Get:12 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en_US [188 B]
Get:13 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en [188 B]                                        
Get:14 https://enterprise.proxmox.com stretch/pve-enterprise amd64 Packages [188 B]                                        
Get:15 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en_US [188 B]                                      
Get:16 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en [188 B]                                        
Get:17 https://enterprise.proxmox.com stretch/pve-enterprise amd64 Packages [188 B]                                        
Get:18 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en_US [188 B]                                      
Get:19 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en [188 B]                                        
Get:20 https://enterprise.proxmox.com stretch/pve-enterprise amd64 Packages [188 B]                                        
Err https://enterprise.proxmox.com stretch/pve-enterprise amd64 Packages                                                    
  HttpError401
Get:21 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en_US [188 B]                                      
Ign https://enterprise.proxmox.com stretch/pve-enterprise Translation-en_US                                                
Get:22 https://enterprise.proxmox.com stretch/pve-enterprise Translation-en [188 B]                                        
Ign https://enterprise.proxmox.com stretch/pve-enterprise Translation-en                                                    
W: Failed to fetch https://enterprise.proxmox.com/debian/dists/stretch/pve-enterprise/binary-amd64/Packages  HttpError401  

E: Some index files failed to download. They have been ignored, or old ones used instead.

So I browsed to the URL https://enterprise.proxmox.com/debian/pve/ and a prompt for Username and Password appears.
Screenshot at 2020-03-03 09-06-06.png

What is the required username and password please?
 
...or maybe it is easier to learn how to install Proxmox 6 via PXE if the upgrade is too outdated?
 
Thank you.
Is there a way to change the default update && upgrade from enterprise to no subscription repositories?
That is, via the Proxmox GUI, rather than the CLI manually entering in the command?
 
you should be able to configure that easily via the CLI - not aware of a UI method.

In my case there are both repositories configured through individual files.
Check /etc/apt/sources.list.d
In my case there are two repositories configured:
Code:
ls -l
total 12
-rw-r--r-- 1 root root 51 Feb  4 19:49 hwraid.list
-rw-r--r-- 1 root root 87 Feb  7 22:19 pve-enterprise.list
-rw-r--r-- 1 root root 70 Feb  3 20:45 pve-install-repo.list

I have no subscription so I have uncommented the pve-enterprise repo:
Code:
cat pve-enterprise.list
# NO SUBSCRIPTION
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

the pve-install-repo looks like this:
Code:
cat pve-install-repo.list
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

Note that I am already on the newest version, so yours need to look little different (replace "buster" with "stretch")
 
  • Like
Reactions: eiger3970

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!