Unable to update from 6.4 to 7.2

AliG

New Member
Oct 13, 2022
20
2
3
Hi, I am planning to upgrade 2 live installations of Proxmox 6.4 to 7.2 but before I do, I have setup a local machine, clean install the 6.4 iso and I am having problems to upgrade it to 7.2. If i can't do that successfully here, I won't be able to do it on the live servers.
I am running
apt update
apt dist-upgrade
and I get:
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 have read some other topics with the same error but they all had access to the pve6to7 command
in my case, (remember fresh installed) i get
root@pve:~# pve6to7
-bash: pve6to7: command not found
Am I missing something?

Thanks in advance
 
There is a comprehensive upgrade guide on the wiki, if you haven't noticed already [1] . According to the wiki the package
linux-image-amd64 can cause the problems you are experiencing. You would need to remove the package before the dist-upgrade like so:

Code:
apt remove linux-image-amd64

Then the update to the newest 6.x packages should run just fine. I assume that you do not have pve6to7 installed, because it is not included in the 6.4 installer and can only be fetched via updating to the newest 6.x packages. You should be able to update to the newest 6.x packages with the above steps.

[1] https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
 
Thanks for the info, I have read those before posting. If it worked I wouldn't have posted :D
root@pve:~# apt remove linux-image-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'linux-image-amd64' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 556 not upgraded.
this is the output for this command
 
Thanks for the info, I have read those before posting. If it worked I wouldn't have posted :D

this is the output for this command
Would have been too easy, wouldn't it? :D

Did you already add the new repositories for 7.x? What is the full output of apt update && apt full-upgrade and what is the content of your /etc/apt/sources.list ?
 
I like difficult thingies :P
root@pve07:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
bsdmainutils
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
criu libldb1 libpve-access-control libpve-cluster-api-perl
libpve-guest-common-perl libpve-storage-perl libpve-u2f-server-perl
libpython-stdlib librados2-perl lxc-pve proxmox-ve pve-cluster pve-container
pve-firewall pve-ha-manager pve-manager python python-cephfs python-certifi
python-chardet python-configparser python-future python-idna python-ipaddr
python-minimal python-prettytable python-protobuf python-rados python-rbd
python-requests python-talloc python-urllib3 python3.7 qemu-server
The following NEW packages will be installed:
alsa-topology-conf alsa-ucm-conf bind9-dnsutils bind9-libs bsdextrautils
distro-info-data gcc-10-base idn libapt-pkg6.0 libboost-context1.74.0
libboost-coroutine1.74.0 libboost-iostreams1.74.0 libboost-program-options1.74.0
libboost-thread1.74.0 libbpf0 libbrotli1 libc-devtools libcbor0 libcrypt-dev
libcrypt1 libdeflate0 libdns-export1110 libdns1110 libevent-2.1-7 libffi7
libfido2-1 libgcc-s1 libgd3 libglusterd0 libhogweed6 libicu67 libinih1 libip4tc2
libip6tc2 libipset13 libisc-export1105 libisc1105 libjbig0 libjson-c5 libldb2
libleveldb1d liblinear4 libmaxminddb0 libmd0 libmpdec3 libnettle8 libnsl-dev
libnsl2 libnss-nis libnss-nisplus liboath0 libopeniscsiusr libperl4-corelibs-perl
libperl5.32 libprocps8 libproxmox-acme-plugins libpython3.9 libpython3.9-minimal
libpython3.9-stdlib librabbitmq4 libreadline8 libtiff5 libtirpc-dev libuv1
libwebp6 libxpm4 libxxhash0 logsave lua-lpeg mailcap manpages-dev media-types
ncal pci.ids perl-modules-5.32 pve-kernel-5.4.203-1-pve python3-ceph-argparse
python3-cephfs python3-ldb python3-rados python3-rbd python3-talloc python3.9
python3.9-minimal runit-helper systemd-timesyncd
The following packages will be upgraded:
apparmor apt apt-listchanges apt-utils attr base-files base-passwd bash
bash-completion bc bind9-host bridge-utils bsd-mailx bsdmainutils bsdutils
btrfs-progs busybox bzip2 ca-certificates ceph-common ceph-fuse cifs-utils
console-setup console-setup-linux coreutils corosync cpio cron curl dash dbus
debconf debconf-i18n debian-archive-keyring debian-faq debianutils diffutils
dirmngr dmeventd dmidecode dmsetup dnsutils doc-debian dosfstools dpkg dtach
e2fsprogs ebtables efibootmgr eject faketime fdisk fdutils file findutils
fontconfig fontconfig-config fonts-dejavu-core fonts-font-awesome
fonts-glyphicons-halflings fuse gdbm-l10n gdisk genisoimage gettext-base
glusterfs-client glusterfs-common gnupg gnupg-l10n gnupg-utils gpg gpg-agent
gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common
grub-efi-amd64-bin grub-efi-ia32-bin grub-pc grub-pc-bin grub2-common gzip hdparm
hostname ifenslave ifupdown init init-system-helpers initramfs-tools
initramfs-tools-core iproute2 ipset iptables iputils-ping isc-dhcp-client
isc-dhcp-common iso-codes kbd keyboard-configuration keyutils klibc-utils kmod
krb5-locales less libacl1 libacl1-dev libaio1 libanyevent-http-perl
libanyevent-perl libapparmor1 libappconfig-perl libapt-pkg-perl libarchive13
libasound2 libasound2-data libassuan0 libasyncns0 libattr1 libattr1-dev
libaudit-common libaudit1 libauthen-pam-perl libavahi-client3
libavahi-common-data libavahi-common3 libbabeltrace1 libbind9-161 libblas3
libblkid1 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev
libcaca0 libcairo2 libcap-ng0 libcap2 libcap2-bin libcephfs2 libcfg7
libclone-perl libcmap4 libcom-err2 libcommon-sense-perl libconvert-asn1-perl
libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl
libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-random-seed-perl
libcrypt-ssleay-perl libcryptsetup12 libcups2 libcurl3-gnutls libcurl4 libdatrie1
libdb5.3 libdbi1 libdbus-1-3 libdebconfclient0 libdevmapper-event1.02.1
libdevmapper1.02.1 libdigest-hmac-perl libdw1 libedit2 libefiboot1 libefivar1
libelf1 libencode-locale-perl libestr0 libev4 libexpat1 libext2fs2 libfaketime
libfastjson4 libfdisk1 libfile-chdir-perl libfile-listing-perl libfilesys-df-perl
libflac8 libfontconfig1 libfreetype6 libfribidi0 libfstrm0 libfuse2 libfuse3-3
libgcrypt20 libgdbm-compat4 libgdbm6 libgeoip1 libgfapi0 libgfchangelog0
libgfortran5 libgfrpc0 libgfxdr0 libglib2.0-0 libglusterfs-dev libglusterfs0
libgmp10 libgnutls30 libgnutlsxx28 libgoogle-perftools4 libgpg-error0
libgraphite2-3 libgssapi-krb5-2 libgssrpc4 libgstreamer-plugins-base1.0-0
libgstreamer1.0-0 libharfbuzz0b libhtml-parser-perl libhtml-tagset-perl
libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libibverbs1 libice6 libidn11 libidn2-0 libio-html-perl libio-multiplex-perl
libio-socket-ssl-perl libiptc0 libirs161 libisccc161 libisccfg163 libiscsi7
libisns0 libjansson4 libjemalloc2 libjpeg62-turbo libjs-bootstrap libjs-jquery
libjs-sphinxdoc libjs-underscore libjson-perl libjson-xs-perl libk5crypto3
libkeyutils1 libklibc libkmod2 libknet1 libkrad0 libkrb5-3 libkrb5support0
libksba8 libldap-2.4-2 libldap-common liblinux-inotify2-perl liblmdb0
liblocale-gettext-perl liblockfile-bin liblockfile1 liblognorm5 liblua5.3-0
liblvm2cmd2.03 liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres161
liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmath-random-isaac-perl
libmime-base32-perl libmnl0 libmount1 libncurses6 libncursesw6 libnet-dbus-perl
libnet-dns-perl libnet-http-perl libnet-ldap-perl libnet-ssleay-perl
libnetfilter-conntrack3 libnetfilter-log1 libnewt0.52 libnfsidmap2 libnftnl11
libnghttp2-14 libnl-3-200 libnl-route-3-200 libnpth0 libnspr4 libnss-systemd
libnss3 libnuma1 libnvpair3linux libogg0 libopus0 liborc-0.4-0 libp11-kit0
libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpcap0.8 libpci3
libpcre2-8-0 libpcre3 libpipeline1 libpixman-1-0 libpng16-16 libpopt0
libprotobuf-c1 libproxmox-acme-perl libproxmox-backup-qemu0 libpsl5 libpulse0
libpve-common-perl libpve-http-server-perl libpython2-stdlib libpython2.7
libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libqrencode4
libquadmath0 libquorum5 librados2 libradosstriper1 librbd1 librdmacm1 librrd8
librrds-perl librtmp1 libsasl2-2 libsasl2-modules-db libsdl1.2debian libseccomp2
libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2 libsmartcols1
libsmbclient libsnappy1v5 libsndfile1 libspice-server1 libsqlite3-0 libss2
libssh2-1 libssl1.1 libstatgrab10 libstdc++6 libsystemd0 libtalloc2 libtasn1-6
libtcmalloc-minimal4 libtdb1 libtemplate-perl libterm-readline-gnu-perl
libtevent0 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
libthai-data libthai0 libtimedate-perl libtinfo6 libtirpc-common libtirpc3
libtypes-serialiser-perl libu2f-server0 libuchardet0 libudev1 libunistring2
libunwind8 liburcu6 liburi-perl libusb-1.0-0 libusbredirparser1 libuuid-perl
libuuid1 libuutil3linux libverto-libev1 libverto1 libvorbis0a libvorbisenc2
libvotequorum8 libwbclient0 libwrap0 libwww-perl libx11-6 libx11-data libx11-xcb1
libxau6 libxcb-render0 libxcb-shm0 libxcb1 libxext6 libxi6 libxml-libxml-perl
libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl
libxml-sax-perl libxml-twig-perl libxml2 libxslt1.1 libxtables12 libyaml-0-2
libyaml-libyaml-perl libzfs4linux libzpool4linux libzstd1 linux-libc-dev locales
login logrotate lsb-base lsof lvm2 lxcfs lynx lynx-common lzop man-db manpages
mawk memtest86+ mime-support mount nano ncurses-base ncurses-bin ncurses-term
netbase netcat-traditional nfs-common nmap nmap-common numactl open-iscsi
openssh-client openssh-server openssh-sftp-server openssl os-prober passwd patch
pciutils perl perl-base perl-openssl-defaults pinentry-curses postfix procmail
procps proxmox-backup-client proxmox-backup-file-restore
proxmox-backup-restore-image proxmox-widget-toolkit psmisc pve-docs pve-firmware
pve-kernel-5.4 pve-kernel-helper pve-qemu-kvm python-apt-common
python-pkg-resources python-six python2 python2-minimal python2.7
python2.7-minimal python3 python3-apt python3-certifi python3-chardet
python3-debconf python3-debian python3-debianbts python3-httplib2 python3-idna
python3-jwt python3-minimal python3-pkg-resources python3-prettytable
python3-pycurl python3-pysimplesoap python3-reportbug python3-requests
python3-six python3-urllib3 qrencode readline-common reportbug rpcbind rrdcached
rsync rsyslog samba-common samba-libs sensible-utils smbclient socat spl sqlite3
ssh ssl-cert strace systemd systemd-sysv sysvinit-utils tar tasksel tasksel-data
tcpdump telnet thin-provisioning-tools time traceroute tzdata ucf udev uidmap
usb.ids usbutils util-linux vim-common vim-tiny wamerican wget whiptail
x11-common xfsprogs xkb-data xsltproc xxd xz-utils zfs-initramfs zfs-zed
zfsutils-linux zlib1g zstd
550 upgraded, 86 newly installed, 34 to remove and 0 not upgraded.
Need to get 0 B/442 MB of archives.
After this operation, 493 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

and
deb http://ftp.gr.debian.org/debian bullseye main contrib

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

# security updates
deb http://security.debian.org bullseye-security main contrib
the defaults that come after clean install
 
and one more question, for myself i have the 7.2 installed and planning to get a license since I am very happy with proxmox.
When I do apt update && apt dist-upgrade and it has a kernel update, do I have to reboot for the new kernel to be activated or is it working similar to live kernels in ubuntu server?
Thanks as well for that
 
Last edited:
I like difficult thingies :p


and

the defaults that come after clean install
I just setup a 6.4 instance on my machine and one thing I noticed is that after 6.4 clean install I have the buster repositories, not bullseye.

Did you change those repositories (Debian as well as proxmox) to bullseye already? If yes, did you do an apt update && apt full-upgrade before changing the repositories to bullseye?
 
Yes, after clean install i did apt update && apt full-upgrade and then reboot and went for 2nd time and I get this error.
It has the correct repo right?
Myself I didn't change any repo or setting, I just did the apt update && apt full-upgrade and reboot, if it has changed repo, it was automatically
 
Last edited:
Yes, after clean install i did apt update && apt full-upgrade and then reboot and went for 2nd time and I get this error.
It has the correct repo right?
Did you configure the correct repository for proxmox? As a default after installation the enterprise repository is configured in /etc/apt/sources.list.d/pve-enterprise.list, you would need to change that to the no-subscription repository (for buster) and then run apt update && apt full-upgrade. After that you should have pve6to7 available.
 
Something like this?
i get on apt full-upgrade
root@pve:~# apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.gr.debian.org/debian bullseye InRelease
Hit:3 http://download.proxmox.com/debian/pve buster InRelease
Hit:4 http://ftp.gr.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
556 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pve:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
bsdmainutils
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
criu libldb1 libpve-access-control libpve-cluster-api-perl
libpve-guest-common-perl libpve-storage-perl libpve-u2f-server-perl
libpython-stdlib librados2-perl lxc-pve proxmox-ve pve-cluster pve-container
pve-firewall pve-ha-manager pve-manager python python-cephfs python-certifi
python-chardet python-configparser python-future python-idna python-ipaddr
python-minimal python-prettytable python-protobuf python-rados python-rbd
python-requests python-talloc python-urllib3 python3.7 qemu-server
The following NEW packages will be installed:
alsa-topology-conf alsa-ucm-conf bind9-dnsutils bind9-libs bsdextrautils
distro-info-data gcc-10-base idn libapt-pkg6.0 libboost-context1.74.0
libboost-coroutine1.74.0 libboost-iostreams1.74.0 libboost-program-options1.74.0
libboost-thread1.74.0 libbpf0 libbrotli1 libc-devtools libcbor0 libcrypt-dev
libcrypt1 libdeflate0 libdns-export1110 libdns1110 libevent-2.1-7 libffi7
libfido2-1 libgcc-s1 libgd3 libglusterd0 libhogweed6 libicu67 libinih1 libip4tc2
libip6tc2 libipset13 libisc-export1105 libisc1105 libjbig0 libjson-c5 libldb2
libleveldb1d liblinear4 libmaxminddb0 libmd0 libmpdec3 libnettle8 libnsl-dev
libnsl2 libnss-nis libnss-nisplus liboath0 libopeniscsiusr libperl4-corelibs-perl
libperl5.32 libprocps8 libproxmox-acme-plugins libpython3.9 libpython3.9-minimal
libpython3.9-stdlib librabbitmq4 libreadline8 libtiff5 libtirpc-dev libuv1
libwebp6 libxpm4 libxxhash0 logsave lua-lpeg mailcap manpages-dev media-types
ncal pci.ids perl-modules-5.32 pve-kernel-5.4.203-1-pve python3-ceph-argparse
python3-cephfs python3-ldb python3-rados python3-rbd python3-talloc python3.9
python3.9-minimal runit-helper systemd-timesyncd
The following packages will be upgraded:
apparmor apt apt-listchanges apt-utils attr base-files base-passwd bash
bash-completion bc bind9-host bridge-utils bsd-mailx bsdmainutils bsdutils
btrfs-progs busybox bzip2 ca-certificates ceph-common ceph-fuse cifs-utils
console-setup console-setup-linux coreutils corosync cpio cron curl dash dbus
debconf debconf-i18n debian-archive-keyring debian-faq debianutils diffutils
dirmngr dmeventd dmidecode dmsetup dnsutils doc-debian dosfstools dpkg dtach
e2fsprogs ebtables efibootmgr eject faketime fdisk fdutils file findutils
fontconfig fontconfig-config fonts-dejavu-core fonts-font-awesome
fonts-glyphicons-halflings fuse gdbm-l10n gdisk genisoimage gettext-base
glusterfs-client glusterfs-common gnupg gnupg-l10n gnupg-utils gpg gpg-agent
gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common
grub-efi-amd64-bin grub-efi-ia32-bin grub-pc grub-pc-bin grub2-common gzip hdparm
hostname ifenslave ifupdown init init-system-helpers initramfs-tools
initramfs-tools-core iproute2 ipset iptables iputils-ping isc-dhcp-client
isc-dhcp-common iso-codes kbd keyboard-configuration keyutils klibc-utils kmod
krb5-locales less libacl1 libacl1-dev libaio1 libanyevent-http-perl
libanyevent-perl libapparmor1 libappconfig-perl libapt-pkg-perl libarchive13
libasound2 libasound2-data libassuan0 libasyncns0 libattr1 libattr1-dev
libaudit-common libaudit1 libauthen-pam-perl libavahi-client3
libavahi-common-data libavahi-common3 libbabeltrace1 libbind9-161 libblas3
libblkid1 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev
libcaca0 libcairo2 libcap-ng0 libcap2 libcap2-bin libcephfs2 libcfg7
libclone-perl libcmap4 libcom-err2 libcommon-sense-perl libconvert-asn1-perl
libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl
libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-random-seed-perl
libcrypt-ssleay-perl libcryptsetup12 libcups2 libcurl3-gnutls libcurl4 libdatrie1
libdb5.3 libdbi1 libdbus-1-3 libdebconfclient0 libdevmapper-event1.02.1
libdevmapper1.02.1 libdigest-hmac-perl libdw1 libedit2 libefiboot1 libefivar1
libelf1 libencode-locale-perl libestr0 libev4 libexpat1 libext2fs2 libfaketime
libfastjson4 libfdisk1 libfile-chdir-perl libfile-listing-perl libfilesys-df-perl
libflac8 libfontconfig1 libfreetype6 libfribidi0 libfstrm0 libfuse2 libfuse3-3
libgcrypt20 libgdbm-compat4 libgdbm6 libgeoip1 libgfapi0 libgfchangelog0
libgfortran5 libgfrpc0 libgfxdr0 libglib2.0-0 libglusterfs-dev libglusterfs0
libgmp10 libgnutls30 libgnutlsxx28 libgoogle-perftools4 libgpg-error0
libgraphite2-3 libgssapi-krb5-2 libgssrpc4 libgstreamer-plugins-base1.0-0
libgstreamer1.0-0 libharfbuzz0b libhtml-parser-perl libhtml-tagset-perl
libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libibverbs1 libice6 libidn11 libidn2-0 libio-html-perl libio-multiplex-perl
libio-socket-ssl-perl libiptc0 libirs161 libisccc161 libisccfg163 libiscsi7
libisns0 libjansson4 libjemalloc2 libjpeg62-turbo libjs-bootstrap libjs-jquery
libjs-sphinxdoc libjs-underscore libjson-perl libjson-xs-perl libk5crypto3
libkeyutils1 libklibc libkmod2 libknet1 libkrad0 libkrb5-3 libkrb5support0
libksba8 libldap-2.4-2 libldap-common liblinux-inotify2-perl liblmdb0
liblocale-gettext-perl liblockfile-bin liblockfile1 liblognorm5 liblua5.3-0
liblvm2cmd2.03 liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres161
liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmath-random-isaac-perl
libmime-base32-perl libmnl0 libmount1 libncurses6 libncursesw6 libnet-dbus-perl
libnet-dns-perl libnet-http-perl libnet-ldap-perl libnet-ssleay-perl
libnetfilter-conntrack3 libnetfilter-log1 libnewt0.52 libnfsidmap2 libnftnl11
libnghttp2-14 libnl-3-200 libnl-route-3-200 libnpth0 libnspr4 libnss-systemd
libnss3 libnuma1 libnvpair3linux libogg0 libopus0 liborc-0.4-0 libp11-kit0
libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpcap0.8 libpci3
libpcre2-8-0 libpcre3 libpipeline1 libpixman-1-0 libpng16-16 libpopt0
libprotobuf-c1 libproxmox-acme-perl libproxmox-backup-qemu0 libpsl5 libpulse0
libpve-common-perl libpve-http-server-perl libpython2-stdlib libpython2.7
libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libqrencode4
libquadmath0 libquorum5 librados2 libradosstriper1 librbd1 librdmacm1 librrd8
librrds-perl librtmp1 libsasl2-2 libsasl2-modules-db libsdl1.2debian libseccomp2
libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2 libsmartcols1
libsmbclient libsnappy1v5 libsndfile1 libspice-server1 libsqlite3-0 libss2
libssh2-1 libssl1.1 libstatgrab10 libstdc++6 libsystemd0 libtalloc2 libtasn1-6
libtcmalloc-minimal4 libtdb1 libtemplate-perl libterm-readline-gnu-perl
libtevent0 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
libthai-data libthai0 libtimedate-perl libtinfo6 libtirpc-common libtirpc3
libtypes-serialiser-perl libu2f-server0 libuchardet0 libudev1 libunistring2
libunwind8 liburcu6 liburi-perl libusb-1.0-0 libusbredirparser1 libuuid-perl
libuuid1 libuutil3linux libverto-libev1 libverto1 libvorbis0a libvorbisenc2
libvotequorum8 libwbclient0 libwrap0 libwww-perl libx11-6 libx11-data libx11-xcb1
libxau6 libxcb-render0 libxcb-shm0 libxcb1 libxext6 libxi6 libxml-libxml-perl
libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl
libxml-sax-perl libxml-twig-perl libxml2 libxslt1.1 libxtables12 libyaml-0-2
libyaml-libyaml-perl libzfs4linux libzpool4linux libzstd1 linux-libc-dev locales
login logrotate lsb-base lsof lvm2 lxcfs lynx lynx-common lzop man-db manpages
mawk memtest86+ mime-support mount nano ncurses-base ncurses-bin ncurses-term
netbase netcat-traditional nfs-common nmap nmap-common numactl open-iscsi
openssh-client openssh-server openssh-sftp-server openssl os-prober passwd patch
pciutils perl perl-base perl-openssl-defaults pinentry-curses postfix procmail
procps proxmox-backup-client proxmox-backup-file-restore
proxmox-backup-restore-image proxmox-widget-toolkit psmisc pve-docs pve-firmware
pve-kernel-5.4 pve-kernel-helper pve-qemu-kvm python-apt-common
python-pkg-resources python-six python2 python2-minimal python2.7
python2.7-minimal python3 python3-apt python3-certifi python3-chardet
python3-debconf python3-debian python3-debianbts python3-httplib2 python3-idna
python3-jwt python3-minimal python3-pkg-resources python3-prettytable
python3-pycurl python3-pysimplesoap python3-reportbug python3-requests
python3-six python3-urllib3 qrencode readline-common reportbug rpcbind rrdcached
rsync rsyslog samba-common samba-libs sensible-utils smbclient socat spl sqlite3
ssh ssl-cert strace systemd systemd-sysv sysvinit-utils tar tasksel tasksel-data
tcpdump telnet thin-provisioning-tools time traceroute tzdata ucf udev uidmap
usb.ids usbutils util-linux vim-common vim-tiny wamerican wget whiptail
x11-common xfsprogs xkb-data xsltproc xxd xz-utils zfs-initramfs zfs-zed
zfsutils-linux zlib1g zstd
550 upgraded, 86 newly installed, 34 to remove and 0 not upgraded.
Need to get 0 B/442 MB of archives.
After this operation, 493 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
 
Yea, what I think should work in your case:
  • Change the configured repositories for debian back to buster (in the sources.list)
  • Configure the buster repositories for proxmox (what you already did from what I can tell)
  • Run apt update && apt full-upgrade in order to upgrade to the newest 6.x packages
  • Check if you now have pve6to7 available
  • Change debian repos to bullseye (check wiki)
  • Change proxmox repo to bullseye (check wiki)
  • Run apt update && apt full-upgrade again
edit: my sources.list after a fresh 6.4 install looks like this, this might help you:

Code:
deb http://ftp.at.debian.org/debian buster main contrib

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

# security updates
deb http://security.debian.org buster/updates main contrib
 
Last edited:
Ok changing back to buster seems to be working, so far installing some updates -will post update when it is done-
does it come by default with buster repo the 6.4? if yes, how did it change to bullseye?
 
Ok changing back to buster seems to be working, so far installing some updates -will post update when it is done-
does it come by default with buster repo the 6.4? if yes, how did it change to bullseye?
Ever major version of Proxmox is based on a Debian release, so 6 is based on buster and 7 is based on bullseye. This is why you need the buster repositories to be able to upgrade to the newest 6.x packages.

Maybe you already ran the command sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list from the upgrade guide, which would update your sources.list to the bullseye repos?

edit: Also be aware that the line for the security updates changed slightly, so it is not just sufficient to substitute buster with bullseye for the security updates, which is why I included my sources.list so you can just copy it from there.
 
Last edited:
  • Like
Reactions: AliG
I will tell you this, yesterday I did it as you say but I had to use that pc for another purpose and today i did all over again from scratch.
Today in this installation, I didn't do the "sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list"
i just did the apt update && apt dist-upgrade and reboot.
I guess I need to do that 2 times?
 
I will tell you this, yesterday I did it as you say but I had to use that pc for another purpose and today i did all over again from scratch.
Today in this installation, I didn't do the "sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list"
i just did the apt update && apt dist-upgrade and reboot.
I guess I need to do that 2 times?
Yes you usually need to run apt update && apt dist-upgrade before changing anything related to repositories, so you get the newest packages for your current version, since the installation ISOs do not contain the newest version of all packages.

Afterwards you need to update the configuration for debian/proxmox repos and upgrade everything again in order to upgrade from 6 to 7.

This is also why I thought it was really strange that you already have bullseye repos configured, since this should never be the case for 6.x installations, because they are based on buster.
 
thanks for the help Stefan :)
Now I have to check on the productive machines how it goes.

and one more question, for myself i have the 7.2 installed and planning to get a license since I am very happy with proxmox.
When I do apt update && apt dist-upgrade and it has a kernel update, do I have to reboot for the new kernel to be activated or is it working similar to live kernels in ubuntu server?
Thanks as well for that
Do you know about this question as well?
 
thanks for the help Stefan :)
Now I have to check on the productive machines how it goes.


Do you know about this question as well?

Yes, you need to reboot the server in order for the kernel upgrade to be applied.
 
  • Like
Reactions: AliG
It has finished installing the updates successfully, I did another reboot and it is now on "6.4-15" and has the pve6to7 command which gives

root@pve:~# pve6to7
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =

Checking for package updates..
PASS: all packages uptodate

Checking proxmox-ve package version..
PASS: proxmox-ve package has version >= 6.4-1

Checking running kernel version..
PASS: expected running kernel '5.4.203-1-pve'.

= CHECKING CLUSTER HEALTH/SETTINGS =

SKIP: standalone node.

= CHECKING HYPER-CONVERGED CEPH STATUS =

SKIP: no hyper-converged ceph setup detected!

= CHECKING CONFIGURED STORAGES =

PASS: storage 'local' enabled and active.
PASS: storage 'local-lvm' enabled and active.

= MISCELLANEOUS CHECKS =

INFO: Checking common daemon services..
PASS: systemd unit 'pveproxy.service' is in state 'active'
PASS: systemd unit 'pvedaemon.service' is in state 'active'
PASS: systemd unit 'pvestatd.service' is in state 'active'
INFO: Checking for running guests..
PASS: no running guest detected.
INFO: Checking if the local node's hostname 'pve07' is resolvable..
INFO: Checking if resolved IP is configured on local node..
PASS: Resolved node IP '192.168.100.233' configured and active on single interface.
INFO: Checking backup retention settings..
INFO: storage 'local' - no backup retention settings defined - by default, PVE 7.x will no longer keep only the last backup, but all backups
PASS: no problems found.
INFO: checking CIFS credential location..
PASS: no CIFS credentials at outdated location found.
INFO: Checking custom roles for pool permissions..
INFO: Checking node and guest description/note legnth..
PASS: All node config descriptions fit in the new limit of 64 KiB
PASS: All guest config descriptions fit in the new limit of 8 KiB
INFO: Checking container configs for deprecated lxc.cgroup entries
PASS: No legacy 'lxc.cgroup' keys found.
INFO: Checking storage content type configuration..
PASS: no problems found
INFO: Checking if the suite for the Debian security repository is correct..
INFO: Make sure to change the suite of the Debian security repository from 'buster/updates' to 'bullseye-security' - in /etc/apt/sources.list:6
SKIP: NOTE: Expensive checks, like CT cgroupv2 compat, not performed without '--full' parameter

= SUMMARY =

TOTAL: 19
PASSED: 16
SKIPPED: 3
WARNINGS: 0
FAILURES: 0
Now the next step is to do and then apt update && apt full-upgrade?
sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list
 
Yes, but you also need to update the proxmox repository to the bullseye version. After that you should be good to for a full-upgrade.
 
When I did the apt update && apt full-upgrade i got again the same errors
i saw on the pve6to7 log that I needed to change "bullseye-security" which I did only to that, and run again "apt update && apt full-upgrade"
It found lots of updates and now I am installing them
 
  • Like
Reactions: shanreich

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!