[SOLVED] Upgrade PVE 5 to 6 Error E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)

dpsw12

Member
Dec 5, 2019
25
0
6
34
Hello all,

I'm trying to upgrade my proxmox from pve 5 to 6. But this error occured
Code:
root@pve:~# apt dist-upgrade
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:
  ceph-fuse corosync cpp-6 ebtables fonts-font-awesome genisoimage libappconfig-perl libbind9-140 libboost-filesystem1.62.0 libcfg7 libcmap4
  libcorosync-common4 libcpg4 libdns-export162 libdns162 libfdt1 libgmime-2.6-0 libicu57 libisc-export160 libisc160 libisccc140 libisccfg140 libknet1
  liblttng-ust-ctl2 liblwres141 libnotmuch4 libperl5.24 libprocps6 libprotobuf10 libpve-apiclient-perl libpve-http-server-perl libpve-u2f-server-perl
  libpython3.5-minimal libpython3.5-stdlib libquorum5 libstatgrab10 libtemplate-perl libu2f-server0 libunistring0 liburcu4 libvotequorum8
  proxmox-mini-journalreader proxmox-widget-toolkit pve-edk2-firmware pve-i18n pve-xtermjs python-pyasn1 python3.5 python3.5-minimal
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libpve-access-control libpve-guest-common-perl libpve-storage-perl librados2-perl libtirpc1 proxmox-ve pve-cluster pve-container pve-firewall
  pve-ha-manager pve-libspice-server1 pve-manager qemu-server
The following NEW packages will be installed:
  dbus-user-session 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 i965-va-driver intel-media-va-driver javascript-common libaa1
  libaacs0 libaom0 libass9 libavc1394-0 libavcodec58 libavfilter7 libavformat58 libavutil56 libbdplus0 libbluray2 libbs2b0 libcairo-gobject2 libcdparanoia0
  libchromaprint1 libcodec2-0.8.1 libcrystalhd3 libdconf1 libdigest-bubblebabble-perl libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2
  libdrm-radeon1 libdrm2 libdv4 libevent-2.1-6 libfftw3-double3 libflite1 libfuse3-3 libgdbm-compat4 libgfapi0 libgfchangelog0 libgfdb0 libgfrpc0 libgfxdr0
  libgl1 libgl1-mesa-dri libglapi-mesa libglusterfs-dev libglusterfs0 libglvnd0 libglx-mesa0 libglx0 libgme0 libgomp1 libgsm1 libgstreamer-plugins-base1.0-0
  libgstreamer1.0-0 libgudev-1.0-0 libiec61883-0 libigdgmm5 libjack-jackd2-0 libjemalloc2 libjs-sphinxdoc libjs-underscore liblilv-0-0 libllvm7 libmp3lame0
  libmpg123-0 libmysofa0 libnet-dns-sec-perl libnet-libidn-perl libnorm1 libopenjp2-7 libopenmpt0 liborc-0.4-0 libpciaccess0 libperl5.28 libpgm-5.2-0
  libpostproc55 libproxmox-backup-qemu0 libproxy1v5 libpython3.7 libraw1394-11 librubberband2 libsamplerate0 libsensors-config libsensors5 libserd-0-0
  libshine3 libshout3 libsodium23 libsord-0-0 libsoup2.4-1 libsoxr0 libspeex1 libspice-server1 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5
  libtag1v5 libtag1v5-vanilla libtheora0 libtirpc-common libtirpc3 libtwolame0 libv4l-0 libv4lconvert0 libva-drm2 libva-x11-2 libva2 libvdpau-va-gl1
  libvdpau1 libvidstab1.1 libvisual-0.4-0 libvorbisfile3 libvpx5 libwavpack1 libwebpmux3 libx264-155 libx265-165 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxshmfence1 libxv1 libxvidcore4 libxxf86vm1 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers
  mesa-vdpau-drivers perl-modules-5.28 pve-kernel-5.4 pve-kernel-5.4.44-2-pve pve-kernel-helper python-configparser python-future python3-jwt
  python3-prettytable va-driver-all vdpau-driver-all zfs-zed
The following packages have been kept back:
  curl libpve-common-perl libpve-http-server-perl
The following packages will be upgraded:
  corosync criu dmeventd dmsetup glusterfs-client glusterfs-common grub-common grub-efi-amd64-bin grub-efi-ia32-bin grub-pc grub-pc-bin grub2-common
  ifupdown ksm-control-daemon libanyevent-perl libapparmor-perl libapt-pkg-perl libauthen-pam-perl libcfg7 libclone-perl libcmap4 libcommon-sense-perl
  libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl
  libdevmapper-event1.02.1 libdevmapper1.02.1 libev-perl libfile-sync-perl libfilesys-df-perl libhtml-parser-perl libintl-xs-perl libio-socket-ssl-perl
  libjs-extjs libjson-xs-perl libknet1 liblinux-inotify2-perl liblocale-gettext-perl liblvm2cmd2.03 libmath-random-isaac-xs-perl libnet-dbus-perl
  libnet-dns-perl libnet-ssleay-perl libnvpair1linux libpve-apiclient-perl libpve-u2f-server-perl libquorum5 librrds-perl libsocket6-perl libtemplate-perl
  libterm-readline-gnu-perl libtext-charwidth-perl libtext-iconv-perl libuuid-perl libuutil1linux libvotequorum8 libxml-libxml-perl libxml-parser-perl
  libzfs2linux libzpool2linux lvm2 lxc-pve lxcfs nfs-common novnc-pve omping perl perl-base proxmox-mini-journalreader proxmox-widget-toolkit pve-docs
  pve-edk2-firmware pve-firmware pve-i18n pve-qemu-kvm pve-xtermjs rpcbind smartmontools spiceterm spl texinfo vncterm zfs-initramfs zfsutils-linux
87 upgraded, 153 newly installed, 13 to remove and 3 not upgraded.
Need to get 0 B/272 MB of archives.
After this operation, 1,016 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'm stuck, please help.
Thank you
 
can you post output of:

Code:
cat /etc/apt/sources.list


cat /etc/apt/sources.list.d/pve-enterprise.list


pveversion -v
 
can you post output of:

Code:
cat /etc/apt/sources.list


cat /etc/apt/sources.list.d/pve-enterprise.list


pveversion -v
Hello sir, thanks for the reply

this is your request
Code:
root@pve:~# cat /etc/apt/sources.list
deb http://ftp.debian.org/debian buster 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

# security updates
deb http://security.debian.org buster/updates main contrib
root@pve:~# cat /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
root@pve:~# pveversion -v
proxmox-ve: 5.4-2 (running kernel: 4.15.18-24-pve)
pve-manager: 5.4-15 (running version: 5.4-15/d0ec33c6)
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.18-26-pve: 4.15.18-54
pve-kernel-4.15.18-24-pve: 4.15.18-52
pve-kernel-4.15.18-23-pve: 4.15.18-51
pve-kernel-4.4.35-1-pve: 4.4.35-77
corosync: 3.0.4-pve1~bpo9
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-12
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-56
libpve-guest-common-perl: 2.0-20
libpve-http-server-perl: 2.0-14
libpve-storage-perl: 5.0-44
libqb0: 1.0.5-1
lvm2: 2.03.02-3
lxc-pve: 3.1.0-7
lxcfs: 3.0.3-pve1
novnc-pve: 1.0.0-3
proxmox-widget-toolkit: 1.0-28
pve-cluster: 5.0-38
pve-container: 2.0-42
pve-docs: 5.4-2
pve-edk2-firmware: 1.20190312-1
pve-firewall: 3.0-22
pve-firmware: 2.0-7
pve-ha-manager: 2.0-9
pve-i18n: 1.1-4
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: 3.0.1-4
pve-xtermjs: 3.12.0-1
qemu-server: 5.0-56
smartmontools: 6.6-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.13-pve1~bpo2
 
but i don't see it output of apt update

oke here is the output
Code:
root@pve:~# apt update
Hit:1 http://ftp.debian.org/debian buster InRelease
Get:2 http://security.debian.org buster/updates InRelease [65.4 kB]
Hit:3 http://download.proxmox.com/debian/pve buster InRelease
Get:4 http://security.debian.org buster/updates/main amd64 Packages [218 kB]
Hit:5 http://download.proxmox.com/debian/ceph-luminous stretch InRelease
Hit:6 http://download.proxmox.com/debian/corosync-3 stretch InRelease
Get:7 http://security.debian.org buster/updates/main Translation-en [118 kB]
Fetched 402 kB in 2s (219 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
101 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 packages were automatically installed and are no longer required:
  ceph-fuse corosync cpp-6 ebtables fonts-font-awesome genisoimage libappconfig-perl libbind9-140 libboost-filesystem1.62.0 libcfg7 libcmap4
  libcorosync-common4 libcpg4 libdns-export162 libdns162 libfdt1 libgmime-2.6-0 libicu57 libisc-export160 libisc160 libisccc140 libisccfg140 libknet1
  liblttng-ust-ctl2 liblwres141 libnotmuch4 libperl5.24 libprocps6 libprotobuf10 libpve-apiclient-perl libpve-http-server-perl libpve-u2f-server-perl
  libpython3.5-minimal libpython3.5-stdlib libquorum5 libstatgrab10 libtemplate-perl libu2f-server0 libunistring0 liburcu4 libvotequorum8
  proxmox-mini-journalreader proxmox-widget-toolkit pve-edk2-firmware pve-i18n pve-xtermjs python-pyasn1 python3.5 python3.5-minimal
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libpve-access-control libpve-guest-common-perl libpve-storage-perl librados2-perl libtirpc1 proxmox-ve pve-cluster pve-container pve-firewall pve-ha-manager
  pve-libspice-server1 pve-manager qemu-server
The following NEW packages will be installed:
  dbus-user-session 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 i965-va-driver intel-media-va-driver javascript-common libaa1 libaacs0
  libaom0 libass9 libavc1394-0 libavcodec58 libavfilter7 libavformat58 libavutil56 libbdplus0 libbluray2 libbs2b0 libcairo-gobject2 libcdparanoia0
  libchromaprint1 libcodec2-0.8.1 libcrystalhd3 libdconf1 libdigest-bubblebabble-perl libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
  libdrm2 libdv4 libevent-2.1-6 libfftw3-double3 libflite1 libfuse3-3 libgdbm-compat4 libgfapi0 libgfchangelog0 libgfdb0 libgfrpc0 libgfxdr0 libgl1
  libgl1-mesa-dri libglapi-mesa libglusterfs-dev libglusterfs0 libglvnd0 libglx-mesa0 libglx0 libgme0 libgomp1 libgsm1 libgstreamer-plugins-base1.0-0
  libgstreamer1.0-0 libgudev-1.0-0 libiec61883-0 libigdgmm5 libjack-jackd2-0 libjemalloc2 libjs-sphinxdoc libjs-underscore liblilv-0-0 libllvm7 libmp3lame0
  libmpg123-0 libmysofa0 libnet-dns-sec-perl libnet-libidn-perl libnorm1 libopenjp2-7 libopenmpt0 liborc-0.4-0 libpciaccess0 libperl5.28 libpgm-5.2-0
  libpostproc55 libproxmox-backup-qemu0 libproxy1v5 libpython3.7 libraw1394-11 librubberband2 libsamplerate0 libsensors-config libsensors5 libserd-0-0
  libshine3 libshout3 libsodium23 libsord-0-0 libsoup2.4-1 libsoxr0 libspeex1 libspice-server1 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5
  libtag1v5 libtag1v5-vanilla libtheora0 libtirpc-common libtirpc3 libtwolame0 libv4l-0 libv4lconvert0 libva-drm2 libva-x11-2 libva2 libvdpau-va-gl1 libvdpau1
  libvidstab1.1 libvisual-0.4-0 libvorbisfile3 libvpx5 libwavpack1 libwebpmux3 libx264-155 libx265-165 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
  libxcb-sync1 libxcb-xfixes0 libxshmfence1 libxv1 libxvidcore4 libxxf86vm1 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers
  perl-modules-5.28 pve-kernel-5.4 pve-kernel-5.4.44-2-pve pve-kernel-helper python-configparser python-future python3-jwt python3-prettytable va-driver-all
  vdpau-driver-all zfs-zed
The following packages have been kept back:
  curl libpve-common-perl libpve-http-server-perl
The following packages will be upgraded:
  corosync criu dmeventd dmsetup glusterfs-client glusterfs-common grub-common grub-efi-amd64-bin grub-efi-ia32-bin grub-pc grub-pc-bin grub2-common ifupdown
  ksm-control-daemon libanyevent-perl libapparmor-perl libapt-pkg-perl libauthen-pam-perl libcfg7 libclone-perl libcmap4 libcommon-sense-perl
  libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl libdevmapper-event1.02.1
  libdevmapper1.02.1 libev-perl libfile-sync-perl libfilesys-df-perl libhtml-parser-perl libintl-xs-perl libio-socket-ssl-perl libjs-extjs libjson-xs-perl
  libknet1 liblinux-inotify2-perl liblocale-gettext-perl liblvm2cmd2.03 libmath-random-isaac-xs-perl libnet-dbus-perl libnet-dns-perl libnet-ssleay-perl
  libnvpair1linux libpve-apiclient-perl libpve-u2f-server-perl libquorum5 librrds-perl libsocket6-perl libtemplate-perl libterm-readline-gnu-perl
  libtext-charwidth-perl libtext-iconv-perl libuuid-perl libuutil1linux libvotequorum8 libxml-libxml-perl libxml-parser-perl libzfs2linux libzpool2linux lvm2
  lxc-pve lxcfs nfs-common novnc-pve omping perl perl-base proxmox-mini-journalreader proxmox-widget-toolkit pve-docs pve-edk2-firmware pve-firmware pve-i18n
  pve-qemu-kvm pve-xtermjs rpcbind smartmontools spiceterm spl texinfo vncterm zfs-initramfs zfsutils-linux
87 upgraded, 153 newly installed, 13 to remove and 3 not upgraded.
Need to get 0 B/272 MB of archives.
After this operation, 1,016 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