Upgrade 7.4.15 to 8 (Solved)

Nollimox

Member
Mar 9, 2023
271
22
18
After I ran this command: apt dist-upgrade, I got this:
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

How to resolve this? I tried this: apt remove linux-image-amd64 but got this:
Package 'linux-image-amd64' is not installed, so not removed
The following package was automatically installed and is no longer required:
pve-kernel-5.15.107-1-pve
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 525 not upgraded.

Upgrading should be easier, indeed.
 
After I ran this command: apt dist-upgrade, I got this:
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

How to resolve this? I tried this: apt remove linux-image-amd64 but got this:
Package 'linux-image-amd64' is not installed, so not removed
The following package was automatically installed and is no longer required:
pve-kernel-5.15.107-1-pve
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 525 not upgraded.

Upgrading should be easier, indeed.
Hi,
did you run the
Bash:
pve7to8 --full
script first? Please provide the full-output of apt update && apt full-upgrade
 
Hi,
did you run the
Bash:
pve7to8 --full
script first? Please provide the full-output of apt update && apt full-upgrade
Not yet...since I got that warning, I did not pursue...let me do that and report back.
 
So, I ran the command: pve7to8 --full
Got a similar out as this image below, except my warning was 1.
Screenshot 2023-07-04 at 9.51.53 AM.png
rebooted, then It showing not upgraded...see image below:
Screenshot 2023-07-04 at 9.48.32 AM.png
 
apt update && apt full-upgrade
root@nollicomm:~# apt update && apt full-upgrade

Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://ftp.debian.org/debian bookworm InRelease
Get:3 http://ftp.debian.org/debian bookworm-updates InRelease [52.1 kB]
Hit:4 http://download.proxmox.com/debian/pve bullseye InRelease
Fetched 52.1 kB in 6s (8,112 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
525 packages can be upgraded. Run 'apt list --upgradable' to see them.
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:
libjs-sencha-touch pve-kernel-5.15.107-1-pve telnet
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
libgnutlsxx28 libnfsidmap2 libproxmox-acme-perl libproxmox-rs-perl libpve-access-control libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl
libpve-guest-common-perl libpve-http-server-perl libpve-rs-perl libpve-storage-perl libpve-u2f-server-perl librados2-perl libsemanage1 lxc-pve proxmox-ve
pve-cluster pve-container pve-firewall pve-ha-manager pve-manager qemu-server
The following NEW packages will be installed:
cron-daemon-common dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common dbus-user-session gcc-12-base i965-va-driver inetutils-telnet
intel-media-va-driver libboost-context1.74.0 libboost-filesystem1.74.0 libboost-iostreams1.74.0 libboost-program-options1.74.0 libboost-thread1.74.0
libbpf1 libcbor0.8 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libevent-core-2.1-7 libffi8 libfile-find-rule-perl libflac12 libfmt9
libgprofng0 libicu72 libigdgmm12 libjemalloc2 libldap-2.5-0 libldap-common libllvm15 libmp3lame0 libmpg123-0 libnet-libidn2-perl libnfsidmap1
libnumber-compare-perl libpciaccess0 libperl5.36 libproc2-0 libprotobuf32 libpython3.11 libpython3.11-minimal libpython3.11-stdlib libregexp-ipv6-perl
libsemanage2 libsepol2 libssl3 libsubid4 libsystemd-shared libtext-glob-perl liburcu8 libva-drm2 libva2 libvulkan1 libwayland-client0 libx11-xcb1
libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-randr0 libxcb-sync1 libxcb-xfixes0 libxshmfence1 libz3-4 mesa-va-drivers mesa-vulkan-drivers
perl-modules-5.36 python3-charset-normalizer python3-distutils python3-lib2to3 python3-pyparsing python3-wcwidth python3.11 python3.11-minimal sgml-base
usrmerge util-linux-extra va-driver-all
The following packages will be upgraded:
adduser apparmor apt apt-utils attr base-files base-passwd bash bash-completion bc bind9-dnsutils bind9-host bind9-libs binutils binutils-common
binutils-x86-64-linux-gnu bridge-utils bsd-mailx bsdextrautils bsdutils btrfs-progs busybox bzip2 ca-certificates ceph-common ceph-fuse chrony cifs-utils
console-setup console-setup-linux coreutils cpio criu cron cstream curl dash dbus debconf debconf-i18n debian-archive-keyring debian-faq debianutils
diffutils dirmngr distro-info-data dmeventd dmidecode dmsetup doc-debian dpkg e2fsprogs ebtables efibootmgr eject faketime fdisk fdutils file findutils
fontconfig fontconfig-config fonts-dejavu-core fonts-glyphicons-halflings fuse gdisk genisoimage gettext-base glusterfs-client glusterfs-common gnupg
gnupg-l10n gnupg-utils gnutls-bin gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common grub-efi-amd64-bin grub-pc
grub-pc-bin grub2-common gzip hdparm hostname init init-system-helpers initramfs-tools initramfs-tools-core iproute2 ipset iptables iputils-ping
isc-dhcp-client isc-dhcp-common iso-codes kbd keyboard-configuration keyutils klibc-utils kmod krb5-locales less libacl1 libaio1 libanyevent-http-perl
libanyevent-perl libapparmor1 libappconfig-perl libapt-pkg-perl libapt-pkg6.0 libarchive13 libargon2-1 libasound2 libasound2-data libassuan0 libasyncns0
libattr1 libaudit-common libaudit1 libauthen-pam-perl libavahi-client3 libavahi-common-data libavahi-common3 libbabeltrace1 libbinutils libblas3 libblkid1
libbrotli1 libbsd0 libbytes-random-secure-perl libbz2-1.0 libc-bin libc-l10n libc6 libcairo2 libcap-ng0 libcap2 libcap2-bin libcephfs2 libclone-perl
libcom-err2 libcommon-sense-perl libconvert-asn1-perl libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl
libcrypt-random-seed-perl libcrypt-ssleay-perl libcrypt1 libcryptsetup12 libctf-nobfd0 libctf0 libcups2 libcurl3-gnutls libcurl4 libdatrie1 libdb5.3
libdbus-1-3 libdebconfclient0 libdevel-cycle-perl libdevmapper-event1.02.1 libdevmapper1.02.1 libdigest-hmac-perl libdrm-common libdrm2 libdw1 libedit2
libelf1 libencode-locale-perl libepoxy0 libestr0 libevent-2.1-7 libexpat1 libext2fs2 libfaketime libfastjson4 libfdisk1 libfdt1 libfido2-1
libfile-listing-perl libfile-readbackwards-perl libfilesys-df-perl libfontconfig1 libfreetype6 libfribidi0 libfstrm0 libfuse2 libfuse3-3 libgbm1 libgcc-s1
libgcrypt20 libgdbm-compat4 libgdbm6 libgfapi0 libgfchangelog0 libgfrpc0 libgfxdr0 libglib2.0-0 libglusterd0 libglusterfs0 libgmp10 libgnutls-dane0
libgnutls30 libgoogle-perftools4 libgpg-error0 libgpm2 libgssapi-krb5-2 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libharfbuzz0b libhogweed6
libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libibverbs1
libidn2-0 libinih1 libio-html-perl libio-multiplex-perl libio-socket-ssl-perl libip4tc2 libip6tc2 libipset13 libisns0 libjansson4 libjpeg62-turbo
libjs-bootstrap libjs-jquery libjson-c5 libjson-glib-1.0-0 libjson-glib-1.0-common libjson-perl libjson-xs-perl libk5crypto3 libkeyutils1 libklibc
libkmod2 libknet1 libkrb5-3 libkrb5support0 libksba8 libldb2 libleveldb1d liblinux-inotify2-perl liblocale-gettext-perl liblognorm5 liblua5.3-0
liblvm2cmd2.03 liblwp-mediatypes-perl liblz4-1 liblzma5 libmagic-mgc libmagic1 libmath-random-isaac-perl libmaxminddb0 libmd0 libmime-base32-perl
libmount1 libncurses6 libncursesw6 libnet-dbus-perl libnet-dns-perl libnet-http-perl libnet-ip-perl libnet-ssleay-perl libnet1 libnetaddr-ip-perl
libnetfilter-conntrack3 libnetfilter-log1 libnettle8 libnewt0.52 libnfnetlink0 libnftables1 libnftnl11 libnghttp2-14 libnl-3-200 libnl-route-3-200
libnozzle1 libnspr4 libnss-systemd libnss3 libnuma1 liboath0 libogg0 libopeniscsiusr libopts25 libopus0 liborc-0.4-0 libp11-kit0 libpam-modules
libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpcap0.8 libpci3 libpcre2-8-0 libpcre3
libpipeline1 libpixman-1-0 libpng16-16 libpopt0 libposix-strptime-perl libprotobuf-c1 libpsl5 libpulse0 libpython3-stdlib libqb100 librabbitmq4 librados2
libradosstriper1 librbd1 librdkafka1 librdmacm1 libreadline8 librgw2 librrd8 librrds-perl libsasl2-2 libsasl2-modules-db libseccomp2 libselinux1
libsemanage-common libslang2 libslirp0 libsmartcols1 libsmbclient libsnappy1v5 libsndfile1 libspice-server1 libsqlite3-0 libss2 libssh2-1 libstatgrab10
libstdc++6 libstring-shellquote-perl libsystemd0 libtalloc2 libtasn1-6 libtcmalloc-minimal4 libtdb1 libtemplate-perl libterm-readline-gnu-perl libtevent0
libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libthai-data libthai0 libtinfo6 libtirpc-common libtirpc3 libtry-tiny-perl libu2f-server0
libudev1 libunbound8 libunistring2 libunwind8 liburi-perl libusb-1.0-0 libusbredirparser1 libuuid-perl libuuid1 libuv1 libvirglrenderer1
libwayland-server0 libwbclient0 libwrap0 libwww-perl libx11-6 libx11-data libxcb-render0 libxcb-shm0 libxcb1 libxext6 libxml-libxml-perl
libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-perl libxml-twig-perl libxml2 libxrender1 libxslt1.1 libxtables12
libxxhash0 libyaml-0-2 libyaml-libyaml-perl libzstd1 linux-base locales login logrotate logsave lsb-base lsof lua-lpeg lvm2 mailcap man-db manpages mawk
mc mc-data media-types memtest86+ mount nano ncurses-base ncurses-bin ncurses-term netbase netcat-traditional nfs-common nftables nmap nmap-common
open-iscsi openssh-client openssh-server openssh-sftp-server openssl passwd pci.ids pciutils perl perl-base perl-openssl-defaults pinentry-curses postfix
procmail procps psmisc python-apt-common python3 python3-apt python3-ceph-argparse python3-ceph-common python3-cephfs python3-certifi python3-chardet
python3-debconf python3-debian python3-debianbts python3-httplib2 python3-idna python3-jwt python3-ldb python3-minimal python3-pkg-resources
python3-prettytable python3-protobuf python3-pycurl python3-pysimplesoap python3-rados python3-rbd python3-reportbug python3-requests python3-rgw
python3-six python3-talloc python3-urllib3 python3-yaml readline-common reportbug rpcbind rrdcached rsync rsyslog runit-helper samba-common samba-libs sed
sensible-utils smartmontools smbclient socat sqlite3 ssh ssl-cert strace systemd systemd-sysv sysvinit-utils tar tasksel tasksel-data tcpdump telnet
thin-provisioning-tools time traceroute tzdata ucf udev uidmap unzip usbutils util-linux vim-common vim-tiny wamerican wget whiptail xfsprogs xkb-data
xsltproc xxd xz-utils zlib1g zstd
525 upgraded, 80 newly installed, 23 to remove and 0 not upgraded.
Need to get 0 B/289 MB of archives.
After this operation, 320 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@nollicomm:~#
 
@Nollimox Check the file /etc/apt/sources.list or maybe in the directory /etc/apt/sources.list.d/ is another file. You could also edit the files directly with vim/nano/...
 
@Nollimox Check the file /etc/apt/sources.list or maybe in the directory /etc/apt/sources.list.d/ is another file. You could also edit the files directly with vim/nano/...
root@nollicomm:~# /etc/apt/sources.list
-bash: /etc/apt/sources.list: Permission denied
root@nollicomm:~# /etc/apt/sources.list.d/
-bash: /etc/apt/sources.list.d/: Is a directory
root@nollicomm:~# ls /etc/apt/sources.list.d/
pve-enterprise.list pve-install-repo.list pvetest-for-beta.list
root@nollicomm:~# ls /etc/apt/sources.list
/etc/apt/sources.list
root@nollicomm:~#

Screenshot 2023-07-04 at 12.15.53 PM.png
What a waste of valuable time...a simple upgrade is now taking two F........ hours....
 
pve-enterprise.list pve-install-repo.list pvetest-for-beta.list
You have those 3 additional list files located at /etc/apt/sources.list.d/ which might contain the wrongly configured bullseye repo. The output of pve7to8 --full, which you unfortunately cut off warns you exactly about this including which file and which line contains the misconfiguration, you only show the warnings in the summary.

You will have to make sure all repos are configured for bookworm before you can upgrade.
 
Last edited:
You have those 3 additional list files located at /etc/apt/sources.list.d/ which might contain the wrongly configured bullseye repo. The output of pve7to8 --full, which you unfortunately cut off warns you exactly about this including which file and which line contains the misconfiguration, you only show the warnings in the summary.

You will have to make sure all repos are configured for bookworm befor ande you can upgrade.
This is the twenty-first century...this repositories BS is turning off people from using and engaging with the software. If I click upgrade from the GUI, it MUST automatically pull all that's needed...people's time is valuable...don't create an open source with hiccups and humbug...

Now, to the task at hand:

INFO: Checking bootloader configuration...
WARN: proxmox-boot-tool is used for bootloader configuration in uefi modebut the separate systemd-boot package, existing in Debian Bookworm is not installedinitializing new ESPs will not work until the package is installed

= SUMMARY =

TOTAL: 27
PASSED: 22
SKIPPED: 2
WARNINGS: 3
FAILURES: 0

ATTENTION: Please check the output for detailed information!
root@nollicomm:~#

WHAT now?
I am now getting bpfilter: read failed 0 running on the screen...why?
 
Last edited:
WARN: proxmox-boot-tool is used for bootloader configuration in uefi modebut the separate systemd-boot package, existing in Debian Bookworm is not installedinitializing new ESPs will not work until the package is installed
This warning tells you to install systemd-boot, which has been split into its own package in Debian bookworm. Without the package installed you will not be able to initialize new ESPs.

So you should run apt install systemd-boot.
 
  • Like
Reactions: Nollimox

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!