Unable to update from 6.4 to 7.2

The update was successful!
But it was much more steps than the guide. If I can summarize it somehow it is:
1)apt update && apt full-upgrade
2)reboot
in my case I have run 2 times the "apt update && apt full-upgrade", it didn't give me updates, I did a reboot and then again it had updates.
3)apt update && apt full-upgrade
4)reboot
5)make sure repos are still:
deb http://ftp.gr.debian.org/debian buster main contrib

deb http://ftp.gr.debian.org/debian buster-updates main contrib

# security updates
deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
and repeat
6)apt update && apt full-upgrade
7)reboot
8)change the security repo to:
deb http://ftp.gr.debian.org/debian buster main contrib

deb http://ftp.gr.debian.org/debian buster-updates main contrib

# security updates
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
and repeat
9)apt update && apt full-upgrade
10)reboot
By now the command pve6to7 should be working
so we go to step 11.
11)change the repos again
deb http://ftp.at.debian.org/debian bullseye main contrib

deb http://ftp.at.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
12)comment out the repo in "/etc/apt/sources.list.d/pve-enterprise.list"
13)apt update && apt full-upgrade
By now it should not give any errors and start installing the 7.2
14)reboot for 1 last time

Correct me where I am wrong, this is how it worked for me ^^

thanks again for the help
 
  • Like
Reactions: amstel
Interesting that you had to do the intermediate step with the security repo, but if it worked this way then great! Happy I could help.
 
  • Like
Reactions: AliG
Interesting that you had to do the intermediate step with the security repo, but if it worked this way then great! Happy I could help.
It didn't work for me without this mid-step. I know what I am doing is weird but I want to prep for the live servers ^^

Thanks again
 
Hi again and sorry for digging up this topic, I had to visit the office of the company I have to upgrade proxmox and I found out the main server runs proxmox 6.1..... the 2nd server is with proxmox 6.4...can i find somewhere the 6.1 so I can make a test lab first and see how it goes to update it?
Also, can I make them cluster to update the 2nd server with 6.4 to 7.2 and move the vms from main server with 6.1 to the 2nd server and then try to upgrade the main?
 
Ok I have found the 6.1 iso from torrents and I got it up and running.
I am stuck on step 8 that I have written above a few weeks ago,
When i change the security repo and run apt update && apt full-upgrade it gives me:
Calculating upgrade... Done
The following packages have been kept back:
bind9-host dnsutils gnupg-l10n gpg-wks-client gpg-wks-server libcups2 libdbus-1-3
libldap-2.4-2 lynx samba-common
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

and if I try to run: apt install bind9-host dnsutils gnupg-l10n gpg-wks-client gpg-wks-server libcups2 libdbus-1-3
libldap-2.4-2 lynx samba-common
root@pve61:~# apt install bind9-host dnsutils gnupg-l10n gpg-wks-client gpg-wks-server libcups2 libdbus-1-3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
bind9-host : Depends: bind9-libs (>= 1:9.16.33) but it is not going to be installed
dnsutils : Depends: bind9-dnsutils but it is not going to be installed
gpg-wks-client : Depends: dirmngr (= 2.2.27-2+deb11u2) but 2.2.12-1+deb10u2 is to be installed
Depends: gpg (= 2.2.27-2+deb11u2) but 2.2.12-1+deb10u2 is to be installed
Depends: gpg-agent (= 2.2.27-2+deb11u2) but 2.2.12-1+deb10u2 is to be installed
Recommends: gnupg (= 2.2.27-2+deb11u2) but it is not going to be installed
gpg-wks-server : Depends: gpg (= 2.2.27-2+deb11u2) but 2.2.12-1+deb10u2 is to be installed
Depends: gpg-agent (= 2.2.27-2+deb11u2) but 2.2.12-1+deb10u2 is to be installed
Recommends: gnupg (= 2.2.27-2+deb11u2) but it is not going to be installed
libcups2 : Depends: libgnutls30 (>= 3.7.0) but 3.6.7-4+deb10u9 is to be installed
E: Unable to correct problems, you have held broken packages.
root@pve61:~#
root@pve61:~# libldap-2.4-2 lynx samba-common
So I am stuck here in this step,
I will try also to add to sources "deb http://download.proxmox.com/debian/pve buster pve-no-subscription"
and apt update && apt full-upgrade to see how it will go.
 
Just tested, I could upgrade 6.1 (at least using no-subscription, didn't test the enterprise repo) without problems to 7.2
 
I can't do it from 6.1 to 7.2, i have to go to 6.4 and then it goes to 7.2
If they buy a subscription, is the procedure easier?
 
Yes, that's exactly what I did :)

It will work without.


Are you following the Upgrade Guide https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0 exactly?
No, I have tried to follow the guide as you have it if you see the topic and it didn't work, I wrote my own guide which works, at least from 6.4 to 7.2.
From 6.1 to 7.2 I am writing a new one and I will post it here as soon as it is done, but the guide in the link definately didn't work for me in all test cases unfortunatelly
 
What I can tell you is that I tested with a VM and the following steps and I had no issues:
install pve 6.1 apt update && apt dist-upgrade -y pve6to7 --full # replace buster with bullseye in /etc/apt/* apt update && apt dist-upgrade -y
If you can give more detailed information about your issues, I'll try to reproduce them, but so far I could not
 
Ok here are the steps I did to upgrade from 6.1 (iso installation) to 6.4 and then to 7.2
1)nano /etc/apt/sources.list.d/pve-enterprise.list and comment out the 1 repo. Save and exit
2)apt update && apt full-upgrade
3)nano /etc/apt/sources.list
edit as:
deb http://ftp.gr.debian.org/debian buster main contrib

deb http://ftp.gr.debian.org/debian buster-updates main contrib

# security updates
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
4)Save & exit
5)apt update && apt full-upgrade
6)reboot
7)nano /etc/apt/sources.list
8)add deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
9)apt update && apt full-upgrade
10)reboot
11)nano /etc/apt/sources.list
12)change buster to bullseye
13)pve6to7
14)apt update && apt full-upgrade
15)reboot
Now you should see 7.2-11 when you login

Note, I did those steps on 1 hardware machine with 6.1 iso (that I've found on torrents) and I didn't have any vms or anything else, just clean install of proxmox 6.1
 
Hi,

- You shouldn't comment out the Proxmox VE repo in step one. Instead, you can add the pve-no-subscritpion repo if you don't have a subscription [0]
- Not need to edit the sources.list to bullseye-security on the PVE 6.1. Also, after editing the `/etc/apt/sources.list.d/pve-enterprise.list` (or let him if you have a subscription) you have to do apt update && apt full-upgrade in order to upgrade the PVE to the latest version i.e. to PVE 6.4.

When your PVE server is updated to the PVE 6.4 version then you can edit the sources and do the pve6to7 script with --full flag, if everything is ok (as with our experiments and most people) then you can upgrade to PVE 7.2 "latest version".


As my colleagues mentioned before, we already tested the upgrade process multiple times on bare metal and on VMs as well. The full described should you can find in our wiki [1]



[0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_package_repositories
[1] https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
 
If I do not comment out the first step, I get error of not authorized to get the updates or something like that and it doesn't do anything after the apt update.
I will try to just add the pve-no-subscription the next time in the /etc/apt/sources.list the next time to see if I can save some time.
When I've started this topic, I did to a proxmox 6.4 (iso install) step by step the guide and it didn't work as you can read in the topic.
I don't doubt that you have tested it but frankly so do I and things aren't as in the guide, especially after a clean install. Perhaps for someone who had installed 6.4 and did a few updates maybe yes, for example from the 2 actual servers that I have to update, the 2nd one has the pve6to7 command but a fresh installation of proxmox 6.4 doesn't have it and a simple apt update && apt full-upgrade doesn't solve the issue
 
The process to upgrade a Proxmox server to a higher major version always starts with the upgrade to the latest 'old' version, here: PVE6.4-??

These 'minor' upgrades are usually rather uncomplicated but usually require a server restart when they come with a new kernel version.

The upgrade checklist program pve6to7 generally comes together with the last minor update, so it should be availiable after you have successfully done all dist-upgrades from a valid proxmox repository: either pve-enterprise or pve-no-subscription.

If you get a 'not authorized' error message when trying to upgrade (either via GUI or update && dist-upgrade on the CLI), then you have misconfigured your repositories and the system thus can't pull the latest 6.x updates. In this case you might be missing the pve6to7 program since you are not yet on the latest Proxmox 6.X version.
 
Last edited:

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!