Cannot update, getting errors

Gradius

New Member
Sep 28, 2023
9
1
3
root@vm:/# apt-get install linux-headers-6.5.11-7-pve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'linux-headers-6.5.11-7-pve-amd64' for regex 'linux-headers-6.5.11-7-pve'
Note, selecting 'proxmox-headers-6.5.11-7-pve' instead of 'linux-headers-6.5.11-7-pve-amd64'
proxmox-headers-6.5.11-7-pve is already the newest version (6.5.11-7).
The following package was automatically installed and is no longer required:
proxmox-kernel-6.2.16-12-pve
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up proxmox-kernel-6.5.11-7-pve-signed (6.5.11-7) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.11-7-pve /boot/vmlinuz-6.5.11-7-pve
dkms: running auto installation service for kernel 6.5.11-7-pve.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/bnx2x/99.1.713.36-0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/bnx2x/99.1.713.36-0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/bnx2x/99.1.713.36-0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/bnx2x/99.1.713.36-0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/bnx2x/99.1.713.36-0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/bnx2x/99.1.713.36-0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/realtek-r8125/9.010.01/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/realtek-r8125/9.010.01/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/realtek-r8125/9.010.01/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.5.11-7-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/bnx2x/99.1.713.36-0/source/dkms.conf)

Building module:
Cleaning build area...
make -j36 KERNELRELEASE=6.5.11-7-pve -C /lib/modules/6.5.11-7-pve/build M=/var/lib/dkms/bnx2x/99.1.713.36-0/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.5.11-7-pve (x86_64)
Consult /var/lib/dkms/bnx2x/99.1.713.36-0/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.5.11-7-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.11-7-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.11-7-pve-signed (--configure):
installed proxmox-kernel-6.5.11-7-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
proxmox-kernel-6.5 depends on proxmox-kernel-6.5.11-7-pve-signed | proxmox-kernel-6.5.11-7-pve; however:
Package proxmox-kernel-6.5.11-7-pve-signed is not configured yet.
Package proxmox-kernel-6.5.11-7-pve is not installed.
Package proxmox-kernel-6.5.11-7-pve-signed which provides proxmox-kernel-6.5.11-7-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
proxmox-default-kernel depends on proxmox-kernel-6.5; however:
Package proxmox-kernel-6.5 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
Errors were encountered while processing:
proxmox-kernel-6.5.11-7-pve-signed
proxmox-kernel-6.5
proxmox-default-kernel
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vm:/#
 
root@vm:/# cat /var/lib/dkms/bnx2x/99.1.713.36-0/build/make.log
DKMS make.log for bnx2x-99.1.713.36-0 for kernel 6.5.11-7-pve (x86_64)
Mon Jan 8 22:54:23 -03 2024
make: Entering directory '/usr/src/linux-headers-6.5.11-7-pve'
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_link.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_cmn.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_ethtool.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_stats.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_dcb.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sp.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_self_test.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_vfpf.o
CC [M] /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_sriov.o
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:305:39: error: macro "DEFINE_SEMAPHORE" requires 2 arguments, but only 1 given
305 | static DEFINE_SEMAPHORE(bnx2x_prev_sem);
| ^
In file included from ./include/linux/fs.h:25,
from ./include/linux/huge_mm.h:8,
from ./include/linux/mm.h:1007,
from ./include/linux/scatterlist.h:8,
from ./include/linux/dmapool.h:14,
from ./include/linux/pci.h:1623,
from /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:31:
./include/linux/semaphore.h:34: note: macro "DEFINE_SEMAPHORE" defined here
34 | #define DEFINE_SEMAPHORE(_name, _n) \
|
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:305:8: error: type defaults to ‘int’ in declaration of ‘DEFINE_SEMAPHORE’ [-Werror=implicit-int]
305 | static DEFINE_SEMAPHORE(bnx2x_prev_sem);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: In function ‘bnx2x_prev_path_mark_eeh’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:10576:34: error: ‘bnx2x_prev_sem’ undeclared (first use in this function); did you mean ‘bnx2x_free_mem’?
10576 | rc = down_interruptible(&bnx2x_prev_sem);
| ^~~~~~~~~~~~~~
| bnx2x_free_mem
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:10576:34: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: In function ‘bnx2x_prev_is_path_marked’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:10601:27: error: ‘bnx2x_prev_sem’ undeclared (first use in this function); did you mean ‘bnx2x_free_mem’?
10601 | if (down_trylock(&bnx2x_prev_sem))
| ^~~~~~~~~~~~~~
| bnx2x_free_mem
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: In function ‘bnx2x_port_after_undi’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:10626:15: error: ‘bnx2x_prev_sem’ undeclared (first use in this function); did you mean ‘bnx2x_free_mem’?
10626 | down(&bnx2x_prev_sem);
| ^~~~~~~~~~~~~~
| bnx2x_free_mem
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: In function ‘bnx2x_prev_mark_path’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:10641:34: error: ‘bnx2x_prev_sem’ undeclared (first use in this function); did you mean ‘bnx2x_free_mem’?
10641 | rc = down_interruptible(&bnx2x_prev_sem);
| ^~~~~~~~~~~~~~
| bnx2x_free_mem
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: In function ‘bnx2x_prev_unload’:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:10900:42: error: ‘bnx2x_prev_sem’ undeclared (first use in this function); did you mean ‘bnx2x_free_mem’?
10900 | rc = down_interruptible(&bnx2x_prev_sem);
| ^~~~~~~~~~~~~~
| bnx2x_free_mem
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c: At top level:
/var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.c:305:8: warning: ‘DEFINE_SEMAPHORE’ defined but not used [-Wunused-variable]
305 | static DEFINE_SEMAPHORE(bnx2x_prev_sem);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:251: /var/lib/dkms/bnx2x/99.1.713.36-0/build/bnx2x_main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.5.11-7-pve/Makefile:2039: /var/lib/dkms/bnx2x/99.1.713.36-0/build] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.5.11-7-pve'
root@vm:/#
 
For the record in case this helps anyone else, I ran
Code:
dkms remove bnx2x/99.1.713.36-0
and now I can successfully run apt upgrades again.

To get the version of DKMS module installed, run
Code:
dkms status
 
Fixed by deleting everything old and this:
apt auto-remove && apt clean && apt update && apt 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!

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!