2) Install a good and a bad DKMS (one that builds correctly and one that doesn't):
2.1) Install evdi-dkms (good DKMS)
2.2) Install rtl8821ce-dkms 5.5.2.1-0ubuntu10 from Jammy (bad DKMS)
2) Reinstall the kernel headers, this triggers a build of all DKMS modules. One of the modules fails to build and the kernel header installation fails as a result of that.
$ sudo apt install --reinstall linux-headers-6.2.0-27-generic
...
Setting up linux-headers-6.2.0-27-generic (6.2.0-27.28) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.0-27-generic
...
Error! Bad return status for module build on kernel: 6.2.0-27-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/5.5.2.1/build/make.log for more information.
...
Errors were encountered while processing:
linux-headers-6.2.0-27-generic
rtl8821ce-dkms
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
OK, confirmed that header installation with a broken DKMS is place fails.
Clean up the testbed and install dkms from proposed:
1) Remove rtl8821ce-dkms
2) Reinstall kernel headers
3) Install dkms 3.0.10-7ubuntu2.1 from proposed
4) Reinstall rtl8821ce-dkms 5.5.2.1-0ubuntu10 from Jammy. Build still fails.
5) Unbuild evdi dkms:
$ sudo dkms unbuild evdi/1.12.0+dfsg --all
$ dmks status
evdi/1.12.0+dfsg: added
rtl8821ce/5.5.2.1: added
Verify correct behavior of dkms from proposed:
1) Reinstall kernel headers (mimick do-release-upgrade):
$ RELEASE_UPGRADE_IN_PROGRESS=1 apt install --reinstall linux-headers-6.2.0-27-generic
...
etting up linux-headers-6.2.0-27-generic (6.2.0-27.28) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.0-27-generic
...
Error! Bad return status for module build on kernel: 6.2.0-27-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/5.5.2.1/build/make.log for more information.
dkms autoinstall on 6.2.0-27-generic/x86_64 succeeded for evdi
dkms autoinstall on 6.2.0-27-generic/x86_64 failed for rtl8821ce(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: ignore autoinstall errors for dkms modules
* dkms: autoinstall for kernel 6.2.0-27-generic
...done.
...
$ echo $?
0
See above output. Build of rtl8821ce/5.5.2.1 failed but error is ignored and kernel headers are installed successfully.
Tested DKMS from proposed
Testbed preparation:
1) Install Lunar
2) Install a good and a bad DKMS (one that builds correctly and one that doesn't):
2.1) Install evdi-dkms (good DKMS)
2.2) Install rtl8821ce-dkms 5.5.2.1-0ubuntu10 from Jammy (bad DKMS)
3) Verify DKMS build status: 1.12.0+ dfsg, 6.2.0-27-generic, x86_64: installed 5.5.2.1: added
$ dkms status
evdi/
rtl8821ce/
During the above, the build of rtl8821ce failed.
Verify current brokenness:
1) Unbuild evdi dkms: 1.12.0+ dfsg: added 5.5.2.1: added
$ sudo dkms unbuild evdi/1.12.0+dfsg --all
$ dmks status
evdi/
rtl8821ce/
2) Reinstall the kernel headers, this triggers a build of all DKMS modules. One of the modules fails to build and the kernel header installation fails as a result of that. 6.2.0-27- generic 6.2.0-27- generic (6.2.0-27.28) ... header_ postinst. d/dkms: dkms/rtl8821ce/ 5.5.2.1/ build/make. log for more information. headers- 6.2.0-27- generic
$ sudo apt install --reinstall linux-headers-
...
Setting up linux-headers-
/etc/kernel/
* dkms: running auto installation service for kernel 6.2.0-27-generic
...
Error! Bad return status for module build on kernel: 6.2.0-27-generic (x86_64)
Consult /var/lib/
...
Errors were encountered while processing:
linux-
rtl8821ce-dkms
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
OK, confirmed that header installation with a broken DKMS is place fails.
Clean up the testbed and install dkms from proposed:
1) Remove rtl8821ce-dkms 1.12.0+ dfsg: added 5.5.2.1: added
2) Reinstall kernel headers
3) Install dkms 3.0.10-7ubuntu2.1 from proposed
4) Reinstall rtl8821ce-dkms 5.5.2.1-0ubuntu10 from Jammy. Build still fails.
5) Unbuild evdi dkms:
$ sudo dkms unbuild evdi/1.12.0+dfsg --all
$ dmks status
evdi/
rtl8821ce/
Verify correct behavior of dkms from proposed:
1) Reinstall kernel headers (mimick do-release- upgrade) : UPGRADE_ IN_PROGRESS= 1 apt install --reinstall linux-headers- 6.2.0-27- generic 6.2.0-27- generic (6.2.0-27.28) ... header_ postinst. d/dkms: dkms/rtl8821ce/ 5.5.2.1/ build/make. log for more information. generic/ x86_64 succeeded for evdi generic/ x86_64 failed for rtl8821ce(10)
$ RELEASE_
...
etting up linux-headers-
/etc/kernel/
* dkms: running auto installation service for kernel 6.2.0-27-generic
...
Error! Bad return status for module build on kernel: 6.2.0-27-generic (x86_64)
Consult /var/lib/
dkms autoinstall on 6.2.0-27-
dkms autoinstall on 6.2.0-27-
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: ignore autoinstall errors for dkms modules
* dkms: autoinstall for kernel 6.2.0-27-generic
...done.
...
$ echo $?
0
See above output. Build of rtl8821ce/5.5.2.1 failed but error is ignored and kernel headers are installed successfully.