upgrade from 8.4.11 to 9.0.5 failes

PmUserZFS

Well-Known Member
Feb 2, 2018
115
5
58
Setting up proxmox-ve (9.0.0) ...
Processing triggers for debianutils (5.23.2) ...
Processing triggers for libc-bin (2.41-12) ...
Processing triggers for systemd (257.7-1) ...
Processing triggers for sgml-base (1.31+nmu1) ...
Setting up polkitd (126-2) ...
Setting up packagekit (1.3.1-1) ...
Installing new version of config file /etc/apt/apt.conf.d/20packagekit ...
Setting up packagekit-tools (1.3.1-1) ...
Processing triggers for proxmox-backup-file-restore (4.0.14-1) ...
Updating file-restore initramfs...
13536 blocks
Processing triggers for ca-certificates (20250419) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for initramfs-tools (0.148.3) ...
update-initramfs: Generating /boot/initrd.img-6.14.8-2-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/0571-DECB
Copying kernel and creating boot-entry for 6.14.8-2-pve
Copying kernel and creating boot-entry for 6.8.12-11-pve
Copying kernel and creating boot-entry for 6.8.12-13-pve
Copying and configuring kernels on /dev/disk/by-uuid/0572-F170
Copying kernel and creating boot-entry for 6.14.8-2-pve
Copying kernel and creating boot-entry for 6.8.12-11-pve
Copying kernel and creating boot-entry for 6.8.12-13-pve
Processing triggers for postfix (3.10.3-2) ...
Restarting postfix
Processing triggers for pve-ha-manager (5.0.4) ...
Processing triggers for shim-signed:amd64 (1.47+pmx1+15.8-1+pmx1) ...
Can't locate AptPkg/Config.pm in @INC (you may need to install the AptPkg::Config module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/lib/x86_64-linux-gnu/perl5/5.36/AptPkg/hash.pm line 20, <DATA> line 960.
BEGIN failed--compilation aborted, <DATA> line 960.
Connection to 10.60.5.33 closed.


need some input on the above error message.
 
I've the same error with the missing files /usr/lib/x86_64-linux-gnu/perl5/5.40/
 
I've the same error with the missing files /usr/lib/x86_64-linux-gnu/perl5/5.40/
as @LnxBil said - it would help a lot to know which commands you ran to get in that situation?
(and to provide /var/log/apt/term.log and history.log from that upgrade)

a very blind guess: did you maybe run `apt upgrade` instead of `apt dist-upgrade`?
 
  • Like
Reactions: Johannes S
Hello,
I have the same error while updating my Proxmox, the only thing that I could see is that the upgrade process is trying to search for the perl5/5.36 while I see when I restart after the update that I have perl5/5.40, and it seems that the problem could come from that. Do you have any information about that ?
In my case, I have used apt dist-upgrade.
If you need, I can provide the files term.log and history.log I just need to redo the update (it is in test so no problem with that).
Thank you
 
Hi,
If you need, I can provide the files term.log and history.log I just need to redo the update (it is in test so no problem with that).
yes, please share these files. It'd be even better to share them before re-doing the update. If you already did, please check if the relevant log has already been rotated, e.g. to term.log.1.gz
 
I have the same issue. I hit the Upgrade button in the UI.

The UI shows v9, but it didn't install cleanly.

I tried doing apt dist-upgrade again, and I get:
Setting up proxmox-kernel-6.14.11-2-pve-signed (6.14.11-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.14.11-2-pve /boot/vmlinuz-6.14.11-2-pve
Sign command: /lib/modules/6.14.11-2-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module gasket/1.0 for kernel 6.14.11-2-pve (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.14.11-2-pve -C /lib/modules/6.14.11-2-pve/build M=/var/lib/dkms/gasket/1.0/build

Error! Bad return status for module build on kernel: 6.14.11-2-pve (x86_64)
Consult /var/lib/dkms/gasket/1.0/build/make.log for more information.

Autoinstall on 6.14.11-2-pve succeeded for module(s) nvidia.
Autoinstall on 6.14.11-2-pve failed for module(s) gasket(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.14.11-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.14.11-2-pve-signed (--configure):
installed proxmox-kernel-6.14.11-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.14:
proxmox-kernel-6.14 depends on proxmox-kernel-6.14.11-2-pve-signed | proxmox-kernel-6.14.11-2-pve; however:
Package proxmox-kernel-6.14.11-2-pve-signed is not configured yet.
Package proxmox-kernel-6.14.11-2-pve is not installed.
Package proxmox-kernel-6.14.11-2-pve-signed which provides proxmox-kernel-6.14.11-2-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.14 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
proxmox-default-kernel depends on proxmox-kernel-6.14; however:
Package proxmox-kernel-6.14 is not configured yet.

dpkg: error processing package proxmox-default-kernel (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on proxmox-default-kernel; however:
Package proxmox-default-kernel is not configured yet.

dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-backup:
proxmox-backup depends on proxmox-default-kernel; however:
Package proxmox-default-kernel is not configured yet.

dpkg: error processing package proxmox-backup (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
proxmox-kernel-6.14.11-2-pve-signed
proxmox-kernel-6.14
proxmox-default-kernel
proxmox-ve
proxmox-backup
Error: Sub-process /usr/bin/dpkg returned an error code (1)

I assume it's because I had nvidia and gasket drivers installed with dkms.

And how I'm stuck, have no idea how to get out of this...
 
I managed to get out of this somehow. Deleted the gasket module. Then ran apt dist-upgrade. It passed this time. Then cleaned up the old kernel. And finally reinstalled gasked with the new instructions from here
 
  • Like
Reactions: fiona
It's not the same issue, there is no error about Perl modules for you.

I did have that same error with perl modules, before the gasket stuff. That is how I found this topic in the first place. I accidentally failed to copy everything

Update: I found the original error that I had:
Errors were encountered while processing: proxmox-kernel-6.14.11-2-pve-signed proxmox-kernel-6.14 proxmox-default-kernel proxmox-ve proxmox-backupE: Sub-process /usr/bin/dpkg returned an error code (1)Can't locate AptPkg/Config.pm in @INC (you may need to install the AptPkg::Config module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/lib/x86_64-linux-gnu/perl5/5.36/AptPkg/hash.pm line 20, <DATA> line 960.BEGIN failed--compilation aborted, <DATA> line 960.

After that I think I just tried apt dist-upgrade again, and saw the dmks error.
Then I removed the dkms package with dpkg --remove --force-remove-reinstreq gasket-dkms, and did apt dist-upgrade again, and it passed.

Maybe it's not related, I don't know. But that worked for me.
 
Last edited:
  • Like
Reactions: fiona
Hi,

yes, please share these files. It'd be even better to share them before re-doing the update. If you already did, please check if the relevant log has already been rotated, e.g. to term.log.1.gz

Before re-doing the update, I have the version 5.36 on the proxmox (version 8.4.14 of proxmox and all up to date). The installation was a standard one (done just for that)

1759145476294.png
After that when I launch the apt dist-upgrade I have the error, here are the log just after the dist-upgrade. Just to let you know, after the reboot all seems to work, but I still don't know why we have this error.
Thank you for your help
 

Attachments