Upgrade 6.2-10 to 7.x

Guls

Member
Apr 9, 2019
7
0
21
40
Hello guys

One of our servers (backup storage) seems to have old version of Proxmox VE. It is 6.2-10.
I would like to upgrade it to latest version.
Reading the wiki got me to the fact that I have to upgrade do 6.4 first and then I can update do 7.x.

What is the easiest way to upgrade my version to 6.4?

Thank you for your assistance.
 
Thank you for your quick reply...
Unfortunately, I tried doing this but receiving an error:

After this operation, 992 MB of additional disk space will be used. Do you want to continue? [Y/n] y W: (pve-apt-hook) !! WARNING !! W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'! W: (pve-apt-hook) W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command W: (pve-apt-hook) touch '/please-remove-proxmox-ve' W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package W: (pve-apt-hook) and repeat your apt invocation. W: (pve-apt-hook) W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify W: (pve-apt-hook) - your APT repository settings W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1) E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

I tried editing sources.list and adding various buster sources but it didn't change anything.
My current sources are:

deb http://ftp.hr.debian.org/debian buster main contrib deb http://ftp.hr.debian.org/debian buster-updates main contrib # # security updates deb http://security.debian.org buster/updates main contrib # # PVE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve buster pve-no-subscription

Have you any recommendation?
 
Please post the full output of "apt update" and "apt dist-upgrade"
 
Please post the full output of "apt update" and "apt dist-upgrade"
Thank you for your time and effort.

apt-update:
Hit:1 http://ftp.hr.debian.org/debian buster InRelease Hit:2 http://ftp.hr.debian.org/debian buster-updates InRelease Hit:3 http://security.debian.org buster/updates InRelease Hit:4 http://download.proxmox.com/debian/pve buster InRelease Hit:5 http://download.proxmox.com/debian/ceph-octopus bullseye InRelease Get:6 http://download.proxmox.com/debian/pve bullseye InRelease [3,053 B] Fetched 3,053 B in 1s (4,009 B/s) Reading package lists... Done Building dependency tree Reading state information... Done 159 packages can be upgraded. Run 'apt list --upgradable' to see them.

apt-dist-upgrade:
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: proxmox-ve pve-container pve-ha-manager pve-manager qemu-server zfs-initramfs The following NEW packages will be installed: idn libnetaddr-ip-perl libproxmox-acme-plugins libsocket6-perl libyaml-0-2 libyaml-libyaml-perl pve-kernel-5.13.19-1-pve pve-kernel-5.4.143-1-pve The following packages have been kept back: libnvpair1linux libpve-access-control libpve-guest-common-perl libpve-http-server-perl libpve-storage-perl libuutil1linux libzfs2linux libzpool2linux zfs-zed zfsutils-linux The following packages will be upgraded: apt apt-utils base-files bind9-host ca-certificates curl debconf debconf-i18n debian-archive-keyring dnsutils file groff-base ifupdown iproute2 iputils-ping isc-dhcp-client isc-dhcp-common klibc-utils krb5-locales ksm-control-daemon libapt-inst2.0 libapt-pkg5.0 libavahi-client3 libavahi-common-data libavahi-common3 libbind9-161 libbsd0 libcairo2 libcorosync-common4 libcups2 libcurl3-gnutls libcurl4 libdns-export1104 libdns1104 libefiboot1 libefivar1 libfreetype6 libgcrypt20 libglib2.0-0 libgnutls-openssl27 libgnutls30 libgnutlsxx28 libgssapi-krb5-2 libgstreamer-plugins-base1.0-0 libhogweed4 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163 libjpeg62-turbo libjs-extjs libjs-jquery libjs-underscore libk5crypto3 libklibc libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libldb1 liblwres161 liblz4-1 libmagic-mgc libmagic1 libnettle6 libnss-systemd libp11-kit0 libpam-systemd libproxmox-acme-perl libpve-apiclient-perl libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl libpython3.7 libpython3.7-minimal libpython3.7-stdlib libsndfile1 libsqlite3-0 libssl1.1 libsystemd0 libudev1 libx11-6 libx11-data libx11-xcb1 libxml2 libzstd1 linux-libc-dev lynx lynx-common nmap nmap-common novnc-pve openssl proxmox-mini-journalreader proxmox-widget-toolkit psmisc pve-docs pve-edk2-firmware pve-firewall pve-firmware pve-i18n pve-kernel-5.4 pve-kernel-helper python-apt-common python3-apt python3-debconf python3.7 python3.7-minimal smartmontools spiceterm spl sqlite3 systemd systemd-sysv tcpdump tzdata udev zstd 119 upgraded, 8 newly installed, 6 to remove and 10 not upgraded. Need to get 0 B/269 MB of archives. After this operation, 992 MB of additional disk space will be used. Do you want to continue? [Y/n]

And after confirming with Y I get this:
W: (pve-apt-hook) !! WARNING !! W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'! W: (pve-apt-hook) W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command W: (pve-apt-hook) touch '/please-remove-proxmox-ve' W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package W: (pve-apt-hook) and repeat your apt invocation. W: (pve-apt-hook) W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify W: (pve-apt-hook) - your APT repository settings W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1) E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

Deos this actually means that I need to run in following order:
1. touch '/please-remove-proxmox-ve'
2. apt purge proxmox-ve
3. apt-dist upgrade

Will I lose all of my VM data if I do this?
 
Last edited:
Hit:1 http://ftp.hr.debian.org/debian buster InRelease Hit:2 http://ftp.hr.debian.org/debian buster-updates InRelease Hit:3 http://security.debian.org buster/updates InRelease Hit:4 http://download.proxmox.com/debian/pve buster InRelease Hit:5 http://download.proxmox.com/debian/ceph-octopus bullseye InRelease Get:6 http://download.proxmox.com/debian/pve bullseye InRelease [3,053 B]

You mixed Bullseye and Buster in your sources list. Read again the upgrade guide exactly.
 
  • Like
Reactions: Guls
You mixed Bullseye and Buster in your sources list. Read again the upgrade guide exactly.
Yes, you are right, I added Bullseye to sources.list.d\pve-no-sub
Sorry for bothering you with such a begginers mistake.