[SOLVED] 7 to 8 upgrade failure "You are attempting to remove the meta-package proxmox-ve"

Halfman

Active Member
Sep 24, 2018
5
1
43
31
Hi,

I'm trying to upgrade my v7 install to the v8 version. I followed the upgrade guide but sadly I'm stuck on an issue when running dist-upgrade.
Apt tries to remove the package proxmox-ve, even though I tried to remove all packages related to linux-image-*.

What I did so far to try to fix this: run apt update then apt upgrade then restart the server. And try to install proxmox-ve manually. Issue remains the same.

Content of my sources files:
Code:
/etc/apt/sources.list:deb http://ftp.fr.debian.org/debian bookworm main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ftp.fr.debian.org/debian bookworm-updates main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:# security updates
/etc/apt/sources.list:deb http://security.debian.org bookworm-security main contrib
grep: /etc/apt/sources.list.d: Is a directory
/etc/apt/sources.list.d/ceph.list:deb http://download.proxmox.com/debian/ceph-pacific bookworm main
/etc/apt/sources.list.d/pve-enterprise.list:deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
/etc/apt/sources.list.d/pve-enterprise.list.dpkg-dist:deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise

apt upgrade command:
Code:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libldb2 libpython3-stdlib libsemanage-common libsmbclient libtalloc2 libtevent0
  libwbclient0 netdata nfs-common nodejs open-iscsi passwd python3 python3-apt
  python3-cffi-backend python3-distutils python3-ldb python3-lib2to3
  python3-markupsafe python3-minimal python3-protobuf python3-pycurl python3-talloc
  python3-yaml samba-common samba-libs smbclient uidmap
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.

dist upgrade command:
Code:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  ceph-mgr-modules-core dconf-gsettings-backend dconf-service glib-networking
  glib-networking-common glib-networking-services gsettings-desktop-schemas
  gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good
  gstreamer1.0-x libaa1 libaacs0 libass9 libavc1394-0 libavcodec59 libavfilter8
  libavformat59 libavutil57 libbdplus0 libbluray2 libbs2b0 libc-ares2
  libcairo-gobject2 libcdparanoia0 libcephfs2 libchromaprint1 libcjson1
  libcodec2-1.0 libdconf1 libdrm-amdgpu1 libdrm-nouveau2 libdrm-radeon1 libdv4
  libepoxy0 libflite1 libgbm1 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin
  libgdk-pixbuf2.0-common libgfdb0 libgfortran5 libgl1 libgl1-mesa-dri
  libglapi-mesa libglusterfs-dev libglvnd0 libglx-mesa0 libglx0 libgme0 libgsm1
  libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgudev-1.0-0 libhwy1
  libiec61883-0 libjack-jackd2-0 libjaeger libjs-qrcodejs libjs-sencha-touch
  libjson-glib-1.0-0 libjson-glib-1.0-common libjxl0.7 liblapack3 liblcms2-2
  libleveldb1d liblilv-0-0 libllvm15 libmbedcrypto7 libmfx1 libmpdec3 libmysofa1
  libncurses6 libnode108 libnorm1 liboath0 libopenjp2-7 libopenmpt0 liborc-0.4-0
  libpgm-5.3-0 libplacebo208 libpocketsphinx3 libposix-strptime-perl libpostproc56
  libprotobuf23 libproxmox-backup-qemu0 libproxy1v5 libpve-cluster-api-perl
  libpython3.11 libpython3.9 libpython3.9-minimal libpython3.9-stdlib libraw1394-11
  librist4 librsvg2-2 librsvg2-common librubberband2 libsamplerate0
  libsensors-config libsensors5 libserd-0-0 libshine3 libshout3 libslirp0
  libsord-0-0 libsoup2.4-1 libsoup2.4-common libsoxr0 libspeex1 libsphinxbase3
  libspice-server1 libsqlite3-mod-ceph libsratom-0-0 libsrt1.5-gnutls
  libssh-gcrypt-4 libswresample4 libswscale6 libtag1v5 libtag1v5-vanilla libtheora0
  libtpms0 libtwolame0 libudfread0 liburing2 libv4l-0 libv4lconvert0
  libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvirglrenderer1 libvisual-0.4-0
  libvorbisfile3 libvpx7 libvulkan1 libwavpack1 libwayland-server0 libwebpmux3
  libx264-164 libxcb-dri2-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-sync1
  libxcb-xfixes0 libxdamage1 libxshmfence1 libxv1 libxvidcore4 libxxf86vm1 libz3-4
  libzimg2 libzmq5 libzvbi-common libzvbi0 mesa-vdpau-drivers mesa-vulkan-drivers
  node-acorn node-busboy node-cjs-module-lexer node-undici node-xtend nodejs
  nodejs-doc ocl-icd-libopencl1 pocketsphinx-en-us proxmox-archive-keyring
  proxmox-backup-client proxmox-backup-file-restore proxmox-backup-restore-image
  proxmox-default-kernel proxmox-kernel-helper proxmox-mail-forward
  proxmox-mini-journalreader proxmox-offline-mirror-docs
  proxmox-offline-mirror-helper proxmox-websocket-tunnel pve-lxc-syscalld
  python3-autocommand python3-bcrypt python3-bs4 python3-ceph-argparse
  python3-ceph-common python3-cheroot python3-cherrypy3 python3-dateutil
  python3-inflect python3-jaraco.classes python3-jaraco.collections
  python3-jaraco.context python3-jaraco.functools python3-jaraco.text python3-ldb
  python3-logutils python3-mako python3-markupsafe python3-more-itertools
  python3-paste python3-pastedeploy python3-pastedeploy-tpl python3-pecan
  python3-portend python3-simplegeneric python3-singledispatch python3-soupsieve
  python3-talloc python3-tempita python3-tempora python3-tz python3-waitress
  python3-webob python3-webtest python3-werkzeug python3-zc.lockfile python3.9
  python3.9-minimal qrencode sudo swtpm swtpm-libs swtpm-tools vdpau-driver-all
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  ceph ceph-base ceph-common ceph-mds ceph-mgr ceph-mon ceph-osd libnfsidmap2
  libnode72 libpve-guest-common-perl libpve-storage-perl libsemanage1
  netdata-plugins-nodejs proxmox-ve pve-container pve-ha-manager pve-manager
  pve-qemu-kvm python3-cephfs python3-rados python3-rbd python3-rgw qemu-server
  spiceterm
The following NEW packages will be installed:
  libevent-core-2.1-7 libnfsidmap1 libnode108 libprotobuf32 libpython3.11
  libpython3.11-minimal libpython3.11-stdlib libsemanage2 libsepol2 libsubid4
  node-acorn node-busboy node-cjs-module-lexer node-undici node-xtend python3.11
  python3.11-minimal
The following packages will be upgraded:
  libldb2 libpython3-stdlib libsemanage-common libsmbclient libtalloc2 libtevent0
  libwbclient0 netdata nfs-common nodejs open-iscsi passwd python3 python3-apt
  python3-cffi-backend python3-distutils python3-ldb python3-lib2to3
  python3-markupsafe python3-minimal python3-protobuf python3-pycurl python3-talloc
  python3-yaml samba-common samba-libs smbclient uidmap
28 upgraded, 17 newly installed, 24 to remove and 0 not upgraded.
Need to get 0 B/29.3 MB of archives.
After this operation, 550 MB disk space will be freed.
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

pveversion -v
Code:
proxmox-ve: 8.0.2 (running kernel: 6.2.16-10-pve)
pve-manager: 8.0.4 (running version: 8.0.4/d258a813cfa6b390)
proxmox-kernel-helper: 8.0.3
pve-kernel-5.15: 7.4-6
proxmox-kernel-6.2.16-10-pve: 6.2.16-10
proxmox-kernel-6.2: 6.2.16-10
pve-kernel-5.15.116-1-pve: 5.15.116-1
pve-kernel-5.4.166-1-pve: 5.4.166-1
pve-kernel-4.15: 5.4-16
pve-kernel-4.15.18-27-pve: 4.15.18-55
pve-kernel-4.15.18-12-pve: 4.15.18-36
ceph: 16.2.13-pve1
ceph-fuse: 16.2.13-pve1
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown: 0.8.41
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.25-pve1
libproxmox-acme-perl: 1.4.6
libproxmox-backup-qemu0: 1.4.0
libproxmox-rs-perl: 0.3.1
libpve-access-control: 8.0.5
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.0.8
libpve-guest-common-perl: 5.0.4
libpve-http-server-perl: 5.0.4
libpve-rs-perl: 0.8.5
libpve-storage-perl: 8.0.2
libqb0: 1.0.5-1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve3
novnc-pve: 1.4.0-2
proxmox-backup-client: 3.0.2-1
proxmox-backup-file-restore: 3.0.2-1
proxmox-kernel-helper: 8.0.3
proxmox-mail-forward: 0.2.0
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.2
proxmox-widget-toolkit: 4.0.6
pve-cluster: 8.0.3
pve-container: 5.0.4
pve-docs: 8.0.4
pve-edk2-firmware: 3.20230228-4
pve-firewall: 5.0.3
pve-firmware: 3.7-1
pve-ha-manager: 4.0.2
pve-i18n: 3.0.5
pve-qemu-kvm: 8.0.2-5
pve-xtermjs: 4.16.0-3
qemu-server: 8.0.7
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.1.12-pve1

Thank you for your help
 
What I did so far to try to fix this: run apt update then apt upgrade then restart the server.

Never run only: apt upgrade on Proxmox products!: [1]

Code:
/etc/apt/sources.list.d/ceph.list:deb http://download.proxmox.com/debian/ceph-pacific bookworm main

bookworm for Ceph Pacific does not exist. You should have upgraded Ceph to Quincy before the upgrade to PVE 8:
NOTE: At this point a hyper-converged Ceph cluster installed directly in Proxmox VE must run Ceph 17.2 Quincy, if not you need to upgrade Ceph first before upgrading to Proxmox VE 8 on Debian 12 Bookworm!
https://pve.proxmox.com/wiki/Upgrade_from_7_to_8#Update_the_Ceph_Package_Repository

Replace your existing Ceph repository with this: [2] (ceph-quincy bookworm no-subscription) one and run: apt update followed by: apt full-upgrade again.

If you then still encounter problems, please provide the current/recent full output in code-tags each of:
  • apt list --installed | grep linux-image
  • grep -r '' /etc/apt/sources.list*
  • apt update
  • apt full-upgrade

[1] https://forum.proxmox.com/threads/proxmox-ve-7-1-released.99847/post-463941
[2] https://pve.proxmox.com/wiki/Package_Repositories#_ceph_quincy_no_subscription_repository
 
Reactions:Neobin
Not working with me

zfsutils-linux
34 upgraded, 1 newly installed, 2 to remove and 1 not upgraded.
Need to get 0 B/284 MB of archives.
After this operation, 579 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
root@cc:~#
 
This was issue on my node PVE 7 to go on PVE 8 :
My debian went easily on bookworm but PVE gave me the "meta-package proxmox-ve" warning.

I installed Ceph in the past, then uninstall it recently (with method suggested on forums), purged a ton of things, but the repo for ceph was not in source.list anymore.

I added
Code:
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
in my sources list and it worked with apt update + apt full-upgrade.

No more issue then.

Thank you all, fixed.
 

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!