Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Add kernel removing instructions before installing KMD #56

Open
wangkl2 opened this issue Oct 27, 2022 · 0 comments
Open

Add kernel removing instructions before installing KMD #56

wangkl2 opened this issue Oct 27, 2022 · 0 comments

Comments

@wangkl2
Copy link

wangkl2 commented Oct 27, 2022

After installing the new OEM kernel 5.14.0-1047-oem, there might be several Linux kernels and dkms might build the KMD on each of them, not only on the boot kernel, while there exists lots of Linux kernels versions that are not supported to build on. To avoid the error of "Error! Bad return status for module build on kernel:xxx", before installing the KMD, I recommend that the kernel removing instructions should be added.

Steps:
(1) Use the following command to list all the Linux kernel packages that have been installed.
$ dpkg --get-selections |grep linux
(2) Remove all the Linux kernel packages except for the packages for OEM kernel 5.14.0-1047-oem
$ sudo apt autoremove linux-headers-xxx linux-hwe-xxx-headers-xxx linux-image-xxx linux-modules-xxx
(3) $sudo reboot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant