Hello again,
After filing this bug, I tried to remove an unecessary firmware "firmware-atheros", and it happened to invoke DKMS to remove the module from installed kernel versions... and it failed with xtrx on 6.3.0-1-amd64.
Here is the standard output:
```
apt purge firmware-atheros Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: fonts-fork-awesome gcc-10-base:i386 gcc-12-base:i386 golang-1.19-go golang-1.19-src libdmapsharing-3.0-2 libexecs0 libfilezilla34 libgdal32 libgeos3.11.1 libixml10 liblc3-0 libmongocrypt0 libmujs2 libosp5 libostyle1c2 libre2-9 libsdl-image1.2 libstd-rust-1.63 libupnp13 libyara9 linux-headers-6.1.0-8-amd64 linux-headers-6.1.0-8-common openjade python3-enrich python3-tenacity texlive-formats-extra texlive-games texlive-humanities texlive-music texlive-publishers Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: firmware-atheros* 0 upgraded, 0 newly installed, 1 to remove and 42 not upgraded. 4 not fully installed or removed. After this operation, 60.4 MB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 883659 files and directories currently installed.) Removing firmware-atheros (20230515-2) ... Setting up linux-headers-6.3.0-1-amd64 (6.3.7-1) ... /etc/kernel/header_postinst.d/dkms: dkms: running auto installation service for kernel 6.3.0-1-amd64. Sign command: /usr/lib/linux-kbuild-6.3/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub
Building module: Cleaning build area... make -j16 KERNELRELEASE=6.3.0-1-amd64 -C /lib/modules/6.3.0-1-amd64/build M=/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e -3.2/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.3.0-1-amd64 (x86_64) Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/make.log for more information. dkms autoinstall on 6.3.0-1-amd64/x86_64 succeeded for nvidia-current v4l2loopback dkms autoinstall on 6.3.0-1-amd64/x86_64 failed for xtrx(10) Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. dkms: autoinstall for kernel: 6.3.0-1-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.3.0-1-amd64.postinst line 11. dpkg: error processing package linux-headers-6.3.0-1-amd64 (--configure): installed linux-headers-6.3.0-1-amd64 package post-installation script subprocess returned error exit status 1 Setting up linux-image-6.3.0-1-amd64 (6.3.7-1) ... /etc/kernel/postinst.d/dkms: dkms: running auto installation service for kernel 6.3.0-1-amd64. Sign command: /usr/lib/linux-kbuild-6.3/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub
Building module: Cleaning build area... make -j16 KERNELRELEASE=6.3.0-1-amd64 -C /lib/modules/6.3.0-1-amd64/build M=/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e -3.2/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.3.0-1-amd64 (x86_64) Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/make.log for more information. dkms autoinstall on 6.3.0-1-amd64/x86_64 succeeded for nvidia-current v4l2loopback dkms autoinstall on 6.3.0-1-amd64/x86_64 failed for xtrx(10) Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. dkms: autoinstall for kernel: 6.3.0-1-amd64 failed! run-parts: /etc/kernel/postinst.d/dkms exited with return code 11 dpkg: error processing package linux-image-6.3.0-1-amd64 (--configure): installed linux-image-6.3.0-1-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.3.0-1-amd64 (= 6.3.7-1); however: Package linux-headers-6.3.0-1-amd64 is not configured yet.
dpkg: error processing package linux-headers-amd64 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-6.3.0-1-amd64 (= 6.3.7-1); however: Package linux-image-6.3.0-1-amd64 is not configured yet.
dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: linux-headers-6.3.0-1-amd64 linux-image-6.3.0-1-amd64 linux-headers-amd64 linux-image-amd64
```
Output of xtrx module building log in /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/make.log:
$ cat /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/make.log
``` DKMS make.log for xtrx-0.0.1+git20190320.5ae3a3e-3.2 for kernel 6.3.0-1-amd64 (x86_64) Mon 3 Jul 12:16:24 CEST 2023 make: Entering directory '/usr/src/linux-headers-6.3.0-1-amd64' CC [M] /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/xtrx.o /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/xtrx.c: In function ‘xtrxfd_mmap’: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/xtrx.c:1075:31: error: assignment of read-only member ‘vm_flags’ 1075 | vma->vm_flags |= VM_LOCKED; | ^~ /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/xtrx.c:1090:31: error: assignment of read-only member ‘vm_flags’ 1090 | vma->vm_flags |= VM_IO; | ^~ /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/xtrx.c:1115:31: error: assignment of read-only member ‘vm_flags’ 1115 | vma->vm_flags |= VM_LOCKED; | ^~ make[1]: *** [/usr/src/linux-headers-6.3.0-1-common/scripts/Makefile.build:257: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/xtrx.o] Error 1 make: *** [/usr/src/linux-headers-6.3.0-1-common/Makefile:2050: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build] Error 2 make: Leaving directory '/usr/src/linux-headers-6.3.0-1-amd64'
```
Kinda confused at this point ; if this is unrelated, I can submit another bug report against the proper package.
Hope this helps,
JB
|