Sub process usr share proxmox ve pve apt hook returned an error code 1

Hello all, I'm trying to upgrade my proxmox from pve 5 to 6. But this error occured 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...

  • #1

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

Moayad


  • #2

can you post output of:

Code:

cat /etc/apt/sources.list


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


pveversion -v

  • #3

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

Moayad


  • #4

Hi again,

Please post full output of:

Code:

apt update

apt full-upgrade

  • #5

Hi again,

Please post full output of:

Code:

apt update

apt full-upgrade

it’s the same error

Moayad


  • #6

but i don’t see it output of apt update

  • #7

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

Moayad


  • #8

Hi,

https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0

You are still using sources «stretch» please try to change the sources and then apt update && apt full-upgrade

Code:

echo "deb http://download.proxmox.com/debian/ceph-luminous buster main" > /etc/apt/sources.list.d/ceph.list

  • #9

Hi,

https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0

You are still using sources «stretch» please try to change the sources and then apt update && apt full-upgrade

Code:

echo "deb http://download.proxmox.com/debian/ceph-luminous buster main" > /etc/apt/sources.list.d/ceph.list

it works!!! thank you so much for your help.

Содержание

  1. [SOLVED] Upgrade PVE 5 to 6 Error E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
  2. dpsw12
  3. Moayad
  4. dpsw12
  5. Moayad
  6. dpsw12
  7. Moayad
  8. dpsw12
  9. Moayad
  10. dpsw12
  11. About
  12. Quick Navigation
  13. Get your subscription!
  14. Trying to Upgrade from 5.4-15 to 6.2 and this keeps coming up Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
  15. Lonnon Jensen
  16. Lonnon Jensen
  17. Lonnon Jensen
  18. Lonnon Jensen
  19. Lonnon Jensen
  20. [Solved] Update proxmox 6.4.x to max : error apt-hook
  21. jprcrna
  22. Moayad
  23. jprcrna
  24. Moayad
  25. jprcrna
  26. t.lamprecht
  27. jprcrna
  28. Moayad

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

dpsw12

Member

I’m trying to upgrade my proxmox from pve 5 to 6. But this error occured

Moayad

Proxmox Staff Member

can you post output of:

Best regards,
Moayad

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

dpsw12

Member

can you post output of:

Hello sir, thanks for the reply

this is your request

Moayad

Proxmox Staff Member

Please post full output of:

Best regards,
Moayad

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

dpsw12

Member

Please post full output of:

Moayad

Proxmox Staff Member

Best regards,
Moayad

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

dpsw12

Member

Moayad

Proxmox Staff Member

You are still using sources «stretch» please try to change the sources and then apt update && apt full-upgrade

Best regards,
Moayad

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

dpsw12

Member

You are still using sources «stretch» please try to change the sources and then apt update && apt full-upgrade

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!

Quick Navigation

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 your own in 60 seconds.

Источник

Trying to Upgrade from 5.4-15 to 6.2 and this keeps coming up Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)

Lonnon Jensen

Member

Lonnon Jensen

Member

Lonnon Jensen

Member

cat /etc/apt/sources.list
deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian 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

cat /etc/apt/sources.list.d/pve-enterprise.list
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

pveversion -v
proxmox-ve: 6.2-2 (running kernel: 5.4.60-1-pve)
pve-manager: 5.4-15 (running version: 5.4-15/d0ec33c6)
pve-kernel-5.4: 6.2-6
pve-kernel-helper: 6.2-6
pve-kernel-5.4.60-1-pve: 5.4.60-2
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.18-29-pve: 4.15.18-57
pve-kernel-4.15.18-28-pve: 4.15.18-56
pve-kernel-4.15.18-27-pve: 4.15.18-55
pve-kernel-4.15.18-26-pve: 4.15.18-54
pve-kernel-4.15.18-25-pve: 4.15.18-53
pve-kernel-4.15.18-24-pve: 4.15.18-52
pve-kernel-4.15.18-21-pve: 4.15.18-48
pve-kernel-4.15.18-20-pve: 4.15.18-46
pve-kernel-4.15.18-18-pve: 4.15.18-44
pve-kernel-4.15.18-16-pve: 4.15.18-41
pve-kernel-4.15.18-15-pve: 4.15.18-40
pve-kernel-4.15.18-12-pve: 4.15.18-36
pve-kernel-4.15.18-11-pve: 4.15.18-34
pve-kernel-4.15.18-10-pve: 4.15.18-32
pve-kernel-4.15.18-9-pve: 4.15.18-30
pve-kernel-4.15.18-7-pve: 4.15.18-27
pve-kernel-4.15.18-5-pve: 4.15.18-24
pve-kernel-4.15.17-1-pve: 4.15.17-9
ceph: 12.2.13-pve1

bpo9
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

bpo9+2
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-7
lxcfs: 3.0.3-pve1
novnc-pve: 1.0.0-3
openvswitch-switch: 2.7.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.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.13-pve1

Lonnon Jensen

Member

Lonnon Jensen

Member

This may help as well
pve5to6
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =

Источник

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

jprcrna

New Member

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 !

Moayad

Proxmox Staff Member

Please post the full output of apt update && apt dist-upgrade

Best regards,
Moayad

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

jprcrna

New Member

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

Moayad

Proxmox Staff Member

Best regards,
Moayad

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

jprcrna

New Member

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

t.lamprecht

Proxmox Staff Member

Can you try purging the non-pve kernels first?

apt purge linux-image-4.19.0-17-amd64 linux-image-amd64 linux-libc-dev

Best regards,
Thomas

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

jprcrna

New Member

ok i do this command

# 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?

Moayad

Proxmox Staff Member

Best regards,
Moayad

Do you already have a Commercial Support Subscription? — If not, Buy now and read the documentation

Источник

02/06/2022 11:29 am

Topic starter

INFO: status = running
INFO: Can't locate Authen/PAM.pm in @INC (you may need to install the Authen::PAM module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/PVE/Auth/PAM.pm line 8, <DATA> line 755.
INFO: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Auth/PAM.pm line 8, <DATA> line 755.
INFO: Compilation failed in require at /usr/share/perl5/PVE/AccessControl.pm line 26, <DATA> line 755.
INFO: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/AccessControl.pm line 26, <DATA> line 755.
INFO: Compilation failed in require at /usr/share/perl5/PVE/RPCEnvironment.pm line 14, <DATA> line 755.
INFO: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/RPCEnvironment.pm line 14, <DATA> line 755.
INFO: Compilation failed in require at /usr/share/perl5/PVE/CLI/qm.pm line 20, <DATA> line 755.
INFO: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/qm.pm line 20, <DATA> line 755.
INFO: Compilation failed in require at /usr/sbin/qm line 6, <DATA> line 755.
INFO: BEGIN failed--compilation aborted at /usr/sbin/qm line 6, <DATA> line 755.
ERROR: Backup of VM 105 failed - command 'qm set 105 --lock backup' failed: exit code 2
INFO: Failed at 2022-06-02 11:54:09
INFO: Backup job finished with
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
libev-perl : Depends: perlapi-5.24.1
 libfile-sync-perl : Depends: perlapi-5.24.1
 libfilesys-df-perl : Depends: perlapi-5.24.1
 libgail-common : Depends: libgtk2.0-0 (>= 2.24.32) but 2.24.31-2 is to be installed
 libgail18 : Depends: libgtk2.0-0 😊 2.24.32-3) but 2.24.31-2 is to be installed
 libhtml-parser-perl : Depends: perlapi-5.24.1
 libintl-xs-perl : Depends: perlapi-5.24.1
 libjson-xs-perl : Depends: perlapi-5.24.1
 liblinux-inotify2-perl : Depends: perlapi-5.24.1
 liblocale-gettext-perl : PreDepends: perlapi-5.24.1
 libmath-random-isaac-xs-perl : Depends: perlapi-5.24.1
 libnet-dbus-perl : Depends: perlapi-5.24.1
 libnet-ssleay-perl : Depends: perlapi-5.24.1
 libpve-u2f-server-perl : Depends: perl (>= 5.28.1-6) but 5.24.1-3+deb9u7 is to be installed
 libpython2.7 : Depends: libpython2.7-stdlib 😊 2.7.16-2+deb10u1) but 2.7.13-2+deb9u6 is to be installed
 librados2-perl : Depends: perl (>= 5.28.1-6) but 5.24.1-3+deb9u7 is to be installed
 librgw2 : Depends: libcurl4 (>= 7.28.0) but it is not going to be installed
 librrds-perl : Depends: perlapi-5.24.1
 libsocket6-perl : Depends: perlapi-5.24.1
 libtemplate-perl : Depends: perlapi-5.24.1
 libterm-readline-gnu-perl : Depends: perl (>= 5.28.1-3) but 5.24.1-3+deb9u7 is to be installed
 libtext-iconv-perl : Depends: perlapi-5.24.1
 libuuid-perl : Depends: perlapi-5.24.1
 libxml-libxml-perl : Depends: perl (>= 5.28.1-4) but 5.24.1-3+deb9u7 is to be installed
 libxml-parser-perl : Depends: perlapi-5.24.1


0

1

Обычный хост, baremetal, поставил debian 9, настроил сеть, свой обычный файрволл начал ставить пакеты proxmox согласно доке https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch Словил в конце

ipcc_send_rec[1] failed: Connection refused
ipcc_send_rec[2] failed: Connection refused
ipcc_send_rec[3] failed: Connection refused
Unable to load access control list: Connection refused
Created symlink /etc/systemd/system/multi-user.target.wants/pvedaemon.service → /lib/systemd/system/pvedaemon.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pveproxy.service → /lib/systemd/system/pveproxy.service.
Created symlink /etc/systemd/system/multi-user.target.wants/spiceproxy.service → /lib/systemd/system/spiceproxy.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pvestatd.service → /lib/systemd/system/pvestatd.service.
Created symlink /etc/systemd/system/getty.target.wants/pvebanner.service → /lib/systemd/system/pvebanner.service.
Created symlink /etc/systemd/system/timers.target.wants/pvesr.timer → /lib/systemd/system/pvesr.timer.
Created symlink /etc/systemd/system/timers.target.wants/pve-daily-update.timer → /lib/systemd/system/pve-daily-update.timer.
Created symlink /etc/systemd/system/sysinit.target.wants/pvenetcommit.service → /lib/systemd/system/pvenetcommit.service.
Created symlink /etc/systemd/system/pve-manager.service → /lib/systemd/system/pve-guests.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pve-guests.service → /lib/systemd/system/pve-guests.service.
Job for pvestatd.service failed because the control process exited with error code.
See «systemctl status pvestatd.service» and «journalctl -xe» for details.
pvestatd.service couldn't start.
dpkg: error processing package pve-manager (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on pve-manager; however:
  Package pve-manager is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.15.18-5-pve
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for rsyslog (8.24.0-1) ...
Processing triggers for pve-ha-manager (2.0-5) ...
Errors were encountered while processing:
 pve-manager
 proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

я так понимаю, что мой обычный файрволл сработал…

Короче, не получается исправить установку пакета

pve-manager

Есть предложения?

Introduction

The error message “Sub-process /usr/bin/dpkg returned an error code (1)” indicates a problem with the package installer. This can happen in Ubuntu after a failed software installation, or if the installer becomes corrupted.

The key phrase in this error is /usr/bin/dpkg. This refers to the dpkg package installer for Linux. A package installer is an application that tracks software, updates, and dependencies. If it is damaged, any new software installation will cause this error message.

We cover several possible solutions, from easily-solved and straightforward solutions to more complex processes. This guide will help you resolve the dpkg returned an error code 1 on an Ubuntu operating system.

how to fix subprocess error code

Prerequisites

  • A user account with sudo privileges
  • A terminal window/command-line (CtrlAltT)
sub-process returned an error code ubuntu update

Method 1: Reconfigure dpkg Database

If your package database has become corrupted, reconfiguring it can repair it.

Enter the following command:

sudo dpkg --configure -a

This command reconfigures packages that have been unpacked but not necessarily installed. An interruption at the wrong time can cause this database to become corrupt. This is especially helpful if you were running installation and the process was interrupted.

Method 2: Force-Install the Software

If Method 1 does not work, you can attempt to fix the dependencies in the package installer.

Enter the following:

sudo apt-get install -f

The -f option means fix-broken. It repairs any broken dependencies in your package manager. Broken dependencies occur when a download is interrupted, or there is a problem with the cached download.

Note: Dependencies are other software packages that are required by the software you are installing. A package manager helps keep track of dependencies for you.

Method 3: Remove Bad Software Package

If you know which software caused the errors on your system, you can remove it.

Enter the command and package_name with the name of the software that is causing the problem:

sudo apt-get remove --purge package_name

The --purge option directs the system to remove config files in addition to uninstalling. This helps get rid of all traces of the offending software.

Method 4: Clean Out Unused Software Packages

If an old, outdated, or unused package is causing the problem, you can solve the problem by removing unused software packages.

Enter the following command in the terminal:

sudo apt autoremove

Note: Avoid the next 2 options unless all other methods have failed.

Method 5: Remove Post Files

If you know the name of the package that is causing problems, you can delete the files manually. The installation files are usually located in the /var/lib/dpkg/info file.

Type in the following command and replace package_name with the name of the broken software.:

sudo ls -l /var/lib/dpkg/info | grep -i package_name

This will generate a list of all references to the software you installed.

You can then remove them by entering:

sudo mv /var/lib/dpkg/info/package_name.* /tmp

This command moves the files to the /tmp directory, where they cannot affect your package manager.

Next, update the package manager:

sudo apt-get update

After which you can re-install the broken software again.

Method 6: Overwrite Package File

If you know the name of the package that is causing a problem, you can force an overwrite.

Use the following command and replace full_name_of_package with the actual package name:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/full_name_of_package

Note: If you do not know the actual name of the package, you can search for it with the following command:

ls /var/cache/apt/archies/*package_name*

Replace package_name with the name of your software. This should return any instances of that package name. Note the exact filename, and type it into the previous command.

Conclusion

The dpkg error message indicates that there is a problem with the package installer, which is  commonly caused by an interrupted installation process or a corrupted database.

By following these steps, you should now have several methods to fix the dpkg error message and attain a working package installer.

Today I tried to upgrade my Ubuntu 20.04 LTS desktop and I encountered with this error — «Sub-process /usr/bin/dpkg returned an error code (1)». It is one of the common issue in Ubuntu and other DEB-based systems.

This error usually happens due to a failed application installation, or if the dpkg package installer becomes corrupted or interrupted in mid-way while installing a package.

Here are the commands that I tried to upgrade my Ubuntu desktop:

$ sudo apt update
$ sudo apt upgrade

And… here is the error message:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  eog
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
21 not fully installed or removed.
Need to get 0 B/421 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 230012 files and directories currently installed.)
Preparing to unpack .../eog_3.36.2-0ubuntu1_amd64.deb ...
Unpacking eog (3.36.2-0ubuntu1) over (3.36.1-1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/eog_3.36.2-0ubuntu1_amd64.deb (--unpack):
 cannot copy extracted data for './usr/lib/x86_64-linux-gnu/eog/libeog.so' to '/usr/lib/x86_64-linux-gnu/eog/libeog.so.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /var/cache/apt/archives/eog_3.36.2-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sub-process usr bin dpkg returned an error code 1
Sub-process usr bin dpkg returned an error code 1

Fix «Sub-process /usr/bin/dpkg returned an error code (1)» In Ubuntu

If you encountered with an error like above, worry not! Here, I have given a few workarounds to solve "Sub-process /usr/bin/dpkg returned an error code (1)" issue in Ubuntu and its variants such as Linux Mint, Pop OS.

Solution 1 — Reconfigure dpkg database

If the package installation process is stopped or interrupted in mid-way, the dpkg database might be corrupted. Reconfiguring dpkg database may solve this issue.

To reconfigure dpkg database, simply run:

$ sudo dpkg --configure -a

This command will try to fix the corrupted dpkg database and then reconfigure all broken packages. This command usually fixes the dpkg returned an error code (1) problem. If it didn’t solve the issue for any reason, follow the subsequent solutions.

Solution 2 — Force install the application

If the first method didn’t work, run the following command to perform force install:

$ sudo apt-get install -f

Or,

$ sudo apt-get install --fix-broken

Here, -f (or --fix-broken) option will attempt to correct the Ubuntu system with broken dependencies.

If these two solutions didn’t help and the issue still persists, try the next solution.

Solution 3 — Remove the problematic application .deb file from the local cache folder and reinstall it

As you see in the error message (the last two lines), the eog package is causing this error.

[...]
/var/cache/apt/archives/eog_3.36.2-0ubuntu1_amd64.deb 
E: Sub-process /usr/bin/dpkg returned an error code (1)

For those wondering, eog (short for Eye of GNOME) is the official and default image viewer for the GNOME desktop environment. So this package is problematic and doesn’t let me to upgrade my Ubuntu.

When you install a package, it will be downloaded and saved in the cache folder /var/cache/apt/archives/.

To fix this error, remove the cached package using command:

$ sudo rm /var/cache/apt/archives/eog_3.36.2-0ubuntu1_amd64.deb

Replace eog_3.36.2-0ubuntu1_amd64.deb with your package.

Clean the package cache folder:

$ sudo apt-get clean
$ sudo apt-get autoremove

Update the source lists:

$ sudo apt-get update

Upgrade your system:

$ sudo apt-get upgrade

Finally, get the fresh package from official repositories and reinstall it like below:

$ sudo apt-get install eog

This solution worked for me.

Solution 4 — Remove the problematic application

This should be your last resort. If none of the above methods help, remove the problematic package from your system like below:

$ sudo apt-get remove --purge eog
$ sudo apt-get clean && sudo apt-get autoremove

This command will remove eog with all its configuration files from the system.

And also find and remove all files associated with the broken package.

To find all files related to a package, run:

$ sudo ls -l /var/lib/dpkg/info | grep -i eog

Sample output:

-rw-r--r-- 1 root root 61926 Apr 24 13:42 eog.list
-rw-r--r-- 1 root root 5889 Mar 29 08:01 eog.md5sums

Remove them manually.

That’s it. At this stage, any one of the these four solutions should have helped you to fix «Sub-process /usr/bin/dpkg returned an error code (1)» in Ubuntu and other DEB-based systems.

Понравилась статья? Поделить с друзьями:
  • Sub process usr libexec cydia cydo returned an error code 100
  • Sv0410 fanuc ошибка excess error
  • Sub process usr bin dpkg returned an error code 1 ubuntu
  • Sv0401 fanuc ошибка
  • Sub process usr bin dpkg returned an error code 1 kali linux