Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  36] [ 0]  / answers: 1 / hits: 61528  / 3 Years ago, sat, october 16, 2021, 2:39:45

During a recent apt-get dist-upgrade of 12.10 I received the following error:



Setting up linux-headers-3.5.0-19-generic (3.5.0-19.30) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.0-19-generic /boot/vmlinuz-3.5.0-19-generic
Error! Could not locate dkms.conf file.
File: does not exist.


Any ideas?


More From » dkms

 Answers
7

I've been getting that on kernel upgrades for a while, with the result that not all of my dkms drivers get updated on kernel-upgrades.



Firstly I was able to workaround the problem by reconfiguring any packages that used dkms to force them to be recompiled for the current kernel - eg it was my AMD video drivers that failed (package == fglrx):



sudo dpkg-reconfigure fglrx


That would at least get the drivers configured for the current version.



Finally I found this bug, which includes some steps you can use to diagnose: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/830915



dkms status
ls -R /var/lib/dkms


Basically what they're doing is looking around for anything that is surprising, or unexpected - eg packages you have uninstalled - or software you have manually installed on an earlier ubuntu version and may not work with the newer version. Particularly check the date-stamp on the directories which might show you particularly old packages could be from manually installed packages.



ls -l /var/lib/dkms


In my case I had an old version of the fglrx install I had used to diagnose some problems a year ago and had simply re-named it. Deleting this old cruft made the problem go away.



If there's junk delete it (or move it out of that directory) - if there's a manually installed package there, consider updating it, or uninstalling it and using the maintained version.


[#33778] Sunday, October 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
weamp

Total Points: 197
Total Questions: 115
Total Answers: 92

Location: Mauritania
Member since Sun, May 7, 2023
1 Year ago
;