** Changed in: linux (Ubuntu)
Assignee: (unassigned) => Chase (chaseb0316)
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2068107
Title:
package linux-headers-<version> <version> failed to install/upgrade:
installed linux-headers-<version> package post-installation script
subprocess returned error exit status
Status in linux package in Ubuntu:
Invalid
Bug description:
This is an umbrella bug report for DKMS problems that result in a
failure to install/upgrade a linux kernel headers package.
If you have DKMS modules installed, they are recompiled for every new
kernel that is installed. Since you can have multiple kernels
installed in parallel, a kernel upgrade is in fact an installation of
a new kernel package.
The rebuild of the DKMS modules is triggered by the installation of a
new kernel headers package. If you have unsupported DKMS modules
installed, that rebuild might fail, resulting in a kernel headers
package installation failure which will trigger the automatic bug
reporting tool (apport).
The Ubuntu kernel team makes sure that all officially supported DKMS
modules (the ones you can install from the Ubuntu archive) compile
correctly for all supported Ubuntu kernels. This means that if you see
DKMS build failures, it's most likely due to the fact, that you have
unsupported DKMS modules installed.
If you encounter a linux-headers package installation failure, you can
check the log '/var/log/dpkg.log' for something like the following:
--------------------------------------------------------------------------------
Building module:
Cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=6.5.0-35-generic TTM_NAME=amdttm SCHED_NAME=amd-sched
-C /lib/modules/6.5.0-35-generic/build
M=/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.5.0-35-generic (x86_64)
Consult /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/make.log for more
information.
dkms autoinstall on 6.5.0-35-generic/x86_64 failed for amdgpu(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.5.0-35-generic
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
--------------------------------------------------------------------------------
or:
--------------------------------------------------------------------------------
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.5.0-18-generic
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/amdgpu/6.2.4-1683386.22.04/source/dkms.conf does not
exist.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
--------------------------------------------------------------------------------
You need to remove the unsupported/broken DKMS module to be able to
install the new kernel packages:
$ dkms remove <name>/<version>
For the above examples, that would be:
$ dkms remove amdgpu/6.2.4-1683306.22.04
**IMPORTANT**
This is *not* a kernel problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2068107/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp