I did the upgrade path from 7 to 8 and saw a couple errors during the process but upon rebooting it started up fine, though when trying to do apt update / apt upgrade (or apt dist-upgrade) I get the following:
the contents of "/var/lib/dkms/kernel-mft-dkms/4.18.0/build/make.log" (listed after Building module) are as follows:
Is there an easy way to fix this?
Thanks!
Code:
apt dist-upgrade
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:
dctrl-tools g++-10 libgs9-common libidn11 libstdc++-10-dev libtiff5 libwebp6 linux-compiler-gcc-10-x86 linux-headers-5.10.0-23-amd64 linux-headers-5.10.0-23-common linux-kbuild-5.10 pve-kernel-5.15.107-2-pve
telnet
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-headers-6.1.0-9-amd64 (6.1.27-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-9-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area...(bad exit status: 2)
make -j28 KERNELRELEASE=6.1.0-9-amd64 all KPVER=6.1.0-9-amd64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-9-amd64 (x86_64)
Consult /var/lib/dkms/kernel-mft-dkms/4.18.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.1.0-9-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-9-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-9-amd64 (--configure):
installed linux-headers-6.1.0-9-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.1.0-9-amd64 (= 6.1.27-1); however:
Package linux-headers-6.1.0-9-amd64 is not configured yet.
dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-6.1.0-9-amd64
linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
the contents of "/var/lib/dkms/kernel-mft-dkms/4.18.0/build/make.log" (listed after Building module) are as follows:
Code:
DKMS make.log for kernel-mft-dkms-4.18.0 for kernel 6.1.0-9-amd64 (x86_64)
Thu Jun 22 12:57:34 PM MDT 2023
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
make -C /lib/modules/6.1.0-9-amd64/build M=/var/lib/dkms/kernel-mft-dkms/4.18.0/build CONFIG_CTF= CONFIG_CC_STACKPROTECTOR_STRONG= CC=gcc-12 modules
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-9-amd64'
/bin/sh: 1: Syntax error: Unterminated quoted string
/bin/sh: 1: [: -lt: unexpected operator
CC [M] /var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pci.o
CC [M] /var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.o
/var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.c: In function ‘close_dma’:
/var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.c:601:13: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
601 | pci_unmap_single(dev->pci_dev, dev->dma_props[i].dma_map, DMA_MBOX_SIZE, DMA_BIDIRECTIONAL);
| ^~~~~~~~~~~~~~~~
| dma_unmap_single
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-9-common/scripts/Makefile.build:255: /var/lib/dkms/kernel-mft-dkms/4.18.0/build/mst_pciconf.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-9-common/Makefile:2037: /var/lib/dkms/kernel-mft-dkms/4.18.0/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-9-amd64'
make: *** [Makefile:53: all] Error 2
Is there an easy way to fix this?
Thanks!