[Solved] Update proxmox 6.4.x to max : error apt-hook

jprcrna

Active Member
Dec 2, 2021
34
1
28
56
France
Hello,

I'm writing this words because we have a problem and need your help please.
Sorry for my english ;)

We have two proxmox under version 6.4-12. We try to update to the last one for upgrade to version 7 after that (the documentation ask this thing).
We have make this on another site (two proxmox too) without problem.

But on this site we have an error on the 2 proxmox :

"
Do you want to continue? [Y/n]
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

System not fully up to date (found 77 new packages)"

We find differents solutions on this forum :
no folder on /usr/share/proxmox-ve/
no script pve-apt-hook in /usr/share/proxmox-ve/
bad rights on pve-apt-hook

but it's not a solution for us, we have all this one ok


we try to verify sources.list, we correct them like the wiki, no change
we try "apt -f install" nothing change
we find a solution "apt install proxmox-ve" but we don't know if it's a good thing to do


We are waiting for your help please :)
We are totaly blocked, we don't know what to do
Thank you !
 
Last edited:
thanks to take time :

root@hyp2:/# apt update && apt dist-upgrade
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://download.proxmox.com/debian/pve buster InRelease
Hit:3 http://ftp.debian.org/debian buster InRelease
Hit:4 http://ftp.debian.org/debian buster-updates InRelease
Hit:5 http://ftp.debian.org/debian buster-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
77 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
apt-transport-https ceph-fuse cifs-utils corosync criu cstream dtach ebtables faketime fonts-font-awesome fonts-glyphicons-halflings glusterfs-client glusterfs-common hdparm idn ipset javascript-common
libanyevent-http-perl libanyevent-perl libappconfig-perl libapt-pkg-perl libarchive13 libasync-interrupt-perl libauthen-pam-perl libcfg7 libclone-perl libcmap4 libcorosync-common4 libcpg4
libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libdbi1 libdevel-cycle-perl libdigest-bubblebabble-perl libev-perl libfaketime libfile-chdir-perl
libfile-readbackwards-perl libfilesys-df-perl libfuse3-3 libgnutlsxx28 libguard-perl libio-multiplex-perl libio-stringy-perl libipset11 libjs-bootstrap libjs-extjs libjs-jquery libjs-sphinxdoc
libjs-underscore libknet1 libldb1 liblinux-inotify2-perl libmime-base32-perl libnet-dbus-perl libnet-dns-perl libnet-dns-sec-perl libnet-ip-perl libnet1 libnetfilter-log1 libnvpair3linux libpadwalker-perl
libprotobuf17 libproxmox-acme-perl libproxmox-acme-plugins libpve-access-control libpve-apiclient-perl libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl libpve-guest-common-perl
libpve-http-server-perl libpve-storage-perl libpve-u2f-server-perl libpython3.7 libqb0 libqrencode4 libquorum5 librados2-perl librrd8 librrds-perl libsmbclient libstatgrab10 libtalloc2 libtdb1
libtemplate-perl libtevent0 libtie-ixhash-perl libu2f-server0 liburcu6 libuuid-perl libuutil3linux libvotequorum8 libwbclient0 libxml-twig-perl libxml-xpathengine-perl libxslt1.1 libyaml-0-2
libyaml-libyaml-perl libzfs4linux libzpool4linux linux-image-4.19.0-10-amd64 lxc-pve lxcfs novnc-pve proxmox-archive-keyring proxmox-backup-client proxmox-backup-file-restore proxmox-backup-restore-image
proxmox-mini-journalreader proxmox-widget-toolkit pve-cluster pve-container pve-docs pve-edk2-firmware pve-firewall pve-ha-manager pve-i18n pve-kernel-4.15.18-15-pve pve-kernel-4.4.134-1-pve
pve-kernel-4.4.40-1-pve pve-kernel-5.4.55-1-pve pve-kernel-helper pve-lxc-syscalld pve-manager pve-xtermjs python-configparser python-crypto python-future python-gpg python-ipaddr python-ldb python-protobuf
python-samba python-talloc python-tdb python3-jwt qemu-server qrencode rrdcached rsync samba-common samba-common-bin samba-dsdb-modules samba-libs smartmontools smbclient socat spiceterm sqlite3 uidmap
vncterm xsltproc zfs-zed zfsutils-linux zstd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
proxmox-ve pve-firmware pve-kernel-4.15 pve-kernel-5.4
The following NEW packages will be installed:
firmware-linux-free linux-image-4.19.0-18-amd64
The following packages will be upgraded:
aspell base-files bind9-host debconf debconf-i18n distro-info-data dnsutils krb5-locales libaspell15 libavcodec58 libavfilter7 libavformat58 libavutil56 libbind9-161 libdns-export1104 libdns1104
libgssapi-krb5-2 libicu63 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163 libk5crypto3 libknet1 libkrb5-3 libkrb5support0 liblwres161 libmariadb3 libnss-systemd libnss3 libntfs-3g883
libnvpair3linux libpam-systemd libpostproc55 libpve-common-perl libsmbclient libsndfile1 libssl1.1 libswresample3 libswscale5 libsystemd0 libtiff5 libudev1 libuutil3linux libwbclient0 libzfs4linux
libzpool4linux linux-image-4.19.0-17-amd64 linux-image-amd64 linux-libc-dev mariadb-common ntfs-3g openssl proxmox-backup-client proxmox-backup-file-restore psmisc pve-container pve-kernel-5.4.124-1-pve
pve-kernel-helper pve-manager python-samba python3-debconf samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient squashfs-tools systemd systemd-sysv tzdata udev zfs-zed zfsutils-linux
75 upgraded, 2 newly installed, 4 to remove and 0 not upgraded.
Need to get 0 B/212 MB of archives.
After this operation, 117 MB disk space will be freed.
Do you want to continue? [Y/n]
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
 
ok

root@hyp2:/# pveversion -v
proxmox-ve: 6.4-1 (running kernel: 5.4.124-1-pve)
pve-manager: 6.4-12 (running version: 6.4-12/8c75fb0e)
pve-kernel-5.4: 6.4-4
pve-kernel-helper: 6.4-4
pve-kernel-5.4.124-1-pve: 5.4.124-1
pve-kernel-5.4.119-1-pve: 5.4.119-1
pve-kernel-5.4.106-1-pve: 5.4.106-1
pve-kernel-5.4.55-1-pve: 5.4.55-1
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.18-15-pve: 4.15.18-40
pve-kernel-4.4.134-1-pve: 4.4.134-112
pve-kernel-4.4.40-1-pve: 4.4.40-82
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.1.2-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
libjs-extjs: 6.0.1-10
libknet1: 1.20-pve1
libproxmox-acme-perl: 1.1.0
libproxmox-backup-qemu0: 1.1.0-1
libpve-access-control: 6.4-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-3
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-3
libpve-storage-perl: 6.4-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.1.10-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.6-1
pve-cluster: 6.4-1
pve-container: 3.3-5
pve-docs: 6.4-2
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-4
pve-firmware: 3.2-4
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-6
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-2
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.4-pve1
 
ok i do this command

"
root@hyp2:~# apt purge linux-image-4.19.0-17-amd64 linux-image-amd64 linux-libc-dev
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
apt-transport-https attr augeas-lenses btrfs-progs ceph-common ceph-fuse cifs-utils corosync criu cryptsetup-bin cstream db-util
db5.3-util dconf-gsettings-backend dconf-service dtach ebtables exfat-fuse exfat-utils faketime fonts-font-awesome
fonts-glyphicons-halflings gdisk genisoimage 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 hdparm hfsplus i965-va-driver ibverbs-providers
icoutils idn intel-media-va-driver ipset javascript-common ldmtool libaa1 libaacs0 libafflib0v5 libanyevent-http-perl libanyevent-perl
libaom0 libappconfig-perl libapt-pkg-perl libarchive13 libasound2 libasound2-data libass9 libasync-interrupt-perl libasyncns0 libaugeas0
libauthen-pam-perl libavc1394-0 libavcodec58 libavfilter7 libavformat58 libavutil56 libbabeltrace1 libbdplus0 libbluray2
libboost-atomic1.67.0 libboost-program-options1.67.0 libboost-regex1.67.0 libboost-thread1.67.0 libbs2b0 libc-dev-bin libcaca0
libcairo-gobject2 libcdparanoia0 libcephfs2 libcfg7 libchromaprint1 libclone-perl libcmap4 libcodec2-0.8.1 libconfig9
libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrystalhd3
libdate-manip-perl libdbi1 libdconf1 libdevel-cycle-perl libdigest-bubblebabble-perl libdrm-amdgpu1 libdrm-common libdrm-intel1
libdrm-nouveau2 libdrm-radeon1 libdrm2 libdv4 libdw1 libev-perl libewf2 libfaketime libfftw3-double3 libfile-chdir-perl
libfile-readbackwards-perl libfilesys-df-perl libflac8 libflite1 libfuse3-3 libgfapi0 libgfchangelog0 libgfdb0 libgfrpc0 libgfxdr0
libgl1 libgl1-mesa-dri libglapi-mesa libglusterfs0 libglvnd0 libglx-mesa0 libglx0 libgme0 libgnutlsxx28 libgomp1 libgoogle-perftools4
libgsm1 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libguard-perl libgudev-1.0-0 libhfsp0 libhivex0 libibverbs1 libice6
libiec61883-0 libigdgmm5 libintl-perl libintl-xs-perl libio-multiplex-perl libio-stringy-perl libipset11 libiscsi7 libjack-jackd2-0
libjemalloc2 libjs-bootstrap libjs-extjs libjs-jquery libjs-sphinxdoc libjs-underscore libjson-glib-1.0-0 libjson-glib-1.0-common
libknet1 libldb1 libldm-1.0-0 liblilv-0-0 liblinux-inotify2-perl libllvm7 liblzo2-2 libmime-base32-perl libmp3lame0 libmpg123-0
libmysofa0 libnet-dbus-perl libnet-dns-perl libnet-dns-sec-perl libnet-ip-perl libnet1 libnetfilter-log1 libnetpbm10 libnl-3-200
libnl-route-3-200 libnorm1 libnspr4 libnss3 libntfs-3g883 libnuma1 libnvpair3linux libogg0 libopenmpt0 libopus0 liborc-0.4-0
libpadwalker-perl libpciaccess0 libpgm-5.2-0 libpostproc55 libprotobuf17 libproxmox-acme-perl libproxmox-acme-plugins
libproxmox-backup-qemu0 libproxy1v5 libpulse0 libpve-access-control libpve-apiclient-perl libpve-cluster-api-perl libpve-cluster-perl
libpve-common-perl libpve-http-server-perl libpve-u2f-server-perl libpython2.7 libpython3.7 libqb0 libqrencode4 libquorum5 librados2
librados2-perl libradosstriper1 libraw1394-11 librbd1 librdmacm1 librrd8 librrds-perl librubberband2 libsamplerate0 libsdl1.2debian
libserd-0-0 libshine3 libshout3 libsm6 libsmbclient libsnappy1v5 libsndfile1 libsodium23 libsord-0-0 libsoup2.4-1 libsoxr0 libspeex1
libspice-server1 libsratom-0-0 libssh-gcrypt-4 libstatgrab10 libstring-shellquote-perl libswresample3 libswscale5 libsys-virt-perl
libtag1v5 libtag1v5-vanilla libtalloc2 libtcmalloc-minimal4 libtdb1 libtemplate-perl libtevent0 libtheora0 libtie-ixhash-perl libtsk13
libtwolame0 libu2f-server0 libunwind8 liburcu6 libusbredirparser1 libuuid-perl libuutil3linux libv4l-0 libv4lconvert0 libva-drm2
libva-x11-2 libva2 libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvirt0 libvisual-0.4-0 libvorbis0a libvorbisenc2 libvorbisfile3
libvotequorum8 libvpx5 libwavpack1 libwbclient0 libwebpmux3 libwin-hivex-perl libx11-xcb1 libx264-155 libx265-165 libxcb-dri2-0
libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxml-twig-perl libxml-xpath-perl libxml-xpathengine-perl
libxshmfence1 libxslt1.1 libxtst6 libxv1 libxvidcore4 libxxf86vm1 libyajl2 libyaml-0-2 libyaml-libyaml-perl libyara3 libzfs4linux
libzmq5 libzpool4linux libzvbi-common libzvbi0 linux-image-4.19.0-10-amd64 lsscsi lxc-pve lxcfs lzop manpages-dev mdadm mesa-va-drivers
mesa-vdpau-drivers mtools netpbm novnc-pve ntfs-3g numactl osinfo-db proxmox-archive-keyring proxmox-backup-client
proxmox-backup-file-restore proxmox-backup-restore-image proxmox-mini-journalreader proxmox-widget-toolkit pve-cluster pve-docs
pve-edk2-firmware pve-firewall pve-i18n pve-kernel-4.15.18-15-pve pve-kernel-5.4.55-1-pve pve-kernel-helper pve-lxc-syscalld pve-xtermjs
python-cephfs python-configparser python-crypto python-future python-gpg python-ipaddr python-ldb python-prettytable python-protobuf
python-rados python-rbd python-samba python-talloc python-tdb python3-jwt python3-prettytable qrencode reiserfsprogs rrdcached rsync
samba-common samba-common-bin samba-dsdb-modules samba-libs scrub sgabios sleuthkit smartmontools smbclient socat sqlite3 squashfs-tools
supermin syslinux uidmap va-driver-all vdpau-driver-all vncterm x11-common xfsprogs xsltproc zerofree zfs-zed zfsutils-linux zstd
Veuillez utiliser « apt autoremove » pour les supprimer.
Les paquets suivants seront ENLEVÉS :
glusterfs-client* glusterfs-common* libacl1-dev* libattr1-dev* libc6-dev* libglusterfs-dev* libguestfs-hfsplus* libguestfs-perl*
libguestfs-reiserfs* libguestfs-tools* libguestfs-xfs* libguestfs0* libpve-guest-common-perl* libpve-storage-perl*
linux-image-4.19.0-17-amd64* linux-image-amd64* linux-libc-dev* proxmox-ve* pve-container* pve-ha-manager* pve-manager* pve-qemu-kvm*
qemu-server* spiceterm*
0 mis à jour, 0 nouvellement installés, 24 à enlever et 72 non mis à jour.
Après cette opération, 653 Mo d'espace disque seront libérés."


this part worry me (and my colleague)
"
Les paquets suivants seront ENLEVÉS :
glusterfs-client* glusterfs-common* libacl1-dev* libattr1-dev* libc6-dev* libglusterfs-dev* libguestfs-hfsplus* libguestfs-perl*
libguestfs-reiserfs* libguestfs-tools* libguestfs-xfs* libguestfs0* libpve-guest-common-perl* libpve-storage-perl*
linux-image-4.19.0-17-amd64* linux-image-amd64* linux-libc-dev* proxmox-ve* pve-container* pve-ha-manager* pve-manager* pve-qemu-kvm*
qemu-server* spiceterm*"

i have not valid the command yet, can we valid this without uninstall proxmox and/or lost something?
 
Last edited:
Hello

We are on site

We try apt remove linux-image-4.19*
850mo to remove
done

apt update : ok
apt dist-upgrade : ok
done
we are on 6.4-13 max
ready to upgrade on 7

Huge thank you for your help !! :)
 
  • Like
Reactions: Moayad