Ubuntu

[Oneiric] Error during kernel upgrade: Could not locate dkms.conf file

Reported by Dmitry "Divius" Tantsur on 2011-08-22
246
This bug affects 52 people
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
High
Unassigned

Bug Description

Настраивается пакет linux-image-3.0.0-9-generic (3.0.0-9.12) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-9-generic /boot/vmlinuz-3.0.0-9-generic
Error! Could not locate dkms.conf file.
File: does not exist.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-9-generic /boot/vmlinuz-3.0.0-9-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-9-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-9-generic /boot/vmlinuz-3.0.0-9-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-9-generic /boot/vmlinuz-3.0.0-9-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-9-generic /boot/vmlinuz-3.0.0-9-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-9-generic
Found initrd image: /boot/initrd.img-3.0.0-9-generic
Found linux image: /boot/vmlinuz-3.0.0-8-generic
Found initrd image: /boot/initrd.img-3.0.0-8-generic
Found linux image: /boot/vmlinuz-2.6.38-10-generic
Found initrd image: /boot/initrd.img-2.6.38-10-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu Natty (development branch) (11.04) on /dev/sdb5
done

This, however, doesn't seem to be fatal.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: dkms 2.2.0.2-1
ProcVersionSignature: Ubuntu 3.0.0-8.11-generic 3.0.1
Uname: Linux 3.0.0-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon Aug 22 12:43:31 2011
InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101008.1)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: dkms
UpgradeStatus: Upgraded to oneiric on 2011-08-10 (11 days ago)

Changed in dkms (Ubuntu):
status: New → Confirmed
Vicenç Juan Tomàs (vtomasr5) wrote :

The same happens to me with linux-image-3.0.0-11-generic version.

Compizfox (compizfox) wrote :

Got the same error when installing the kernel headers for 3.0.0-12.

chrysoberyl (lnxme1) wrote :

Got the same error while upgrading linux-generic 3.0.0.12.14 to 3.0.0.13.15

Mario Limonciello (superm1) wrote :

Someone with this problem, can you please add the following details:

* dkms status
* ls /var/lib/dkms -R

It sounds like some package was not properly cleaning up, most likely not DKMS's fault directly.

Jani Uusitalo (uusijani) wrote :

Mario, here's output from the commands you asked.

Beto1917 (beto-mst) wrote :

also affects me, running 3.2.0.5.5

iwtctw (avalonofsaber) wrote :

same to me, it happens every time where building module with kernel

output of "dkms status":
blcr, 0.8.2: added
fglrx-updates, 8.911, 3.0.0-16-generic, i686: installedError! Could not locate dkms.conf file.
File: does not exist.

output of "ls /var/lib/dkms -R" is attached

Christian Assig (chrassig) wrote :

This looks like a bug in the virtualbox package you have installed.

Go to the directory /var/lib/dkms/vboxhost, and make sure to delete any directories belonging to previous versions of virtualbox that you no longer have installed.

@iwtctw (avalonofsaber): Delete /var/lib/dkms/vboxhost/4.0.8/
@Jani Uusitalo (uusijani): Delete /var/lib/dkms/vboxhost/4.1.4/

Or have a look at the following page for more details:
http://8thstring.blogspot.com/2012/01/error-could-not-locate-dkmsconf-file.html

Christian Assig (chrassig) wrote :

If you have installed virtualbox from virtualbox.org instead of the version from the official Ubuntu repositories, this upstream bug about the same topic might also be of interest for you:
https://www.virtualbox.org/ticket/7536

I have the same issue and I don't see any subdirectory belonging to older versions of VB in /var/lib/dkms/vboxhost

/var/lib/dkms/vboxhost$ ls -la
total 12
drwxr-xr-x 3 root root 4096 May 23 20:07 .
drwxr-xr-x 7 root root 4096 May 23 20:06 ..
drwxr-xr-x 4 root root 4096 May 23 20:07 4.1.14
lrwxrwxrwx 1 root root 28 May 23 20:07 kernel-3.2.0-24-generic-i686 -> 4.1.14/3.2.0-24-generic/i686

So VirtualBox developer say it's a bug in Ubuntu, and Ubuntu developers say it's a bug in VirtualBox..........

Nick Jenkins (nickpj) wrote :

You might have some other directories left over from an old version of virtualbox under /var/lib/dkms/ . For example, I had some directories left over from 3.2.6, and the fix for me was:

sudo rm -r /var/lib/dkms/vboxnetadp /var/lib/dkms/vboxdrv /var/lib/dkms/vboxnetflt

Basically you should check the timestamps of any directories under /var/lib/dkms that start with either 'vbox' or 'virtual'. If they're fairly old (e.g. > 1 year) then there's a reasonable chance that they might be cruft left over from an old version of VirtualBox. Deciding whether to delete them or not is at your discretion.

And really, there are 2 entirely separate software problems here:
1) VirtualBox should clean up after itself by removing these old directories when being uninstalled or upgraded.
2) dkms should be explicit and unambiguous about which directory it has a problem with. For example there would be a LOT less confusion all round if it said "Error in directory /var/lib/dkms/vboxdrv , belonging to package 'virtualbox' - Could not locate dkms.conf file." instead of the completely non-specific: "Error! Could not locate dkms.conf file."

Guntbert Reiter (guntbert) wrote :

@Nick Jenkins (nickpi)
That was a much needed clarification, thx - might it be a good idea to create a new bug against dkms just with your item (2) ? (and maybe the virtualbox issue as an example)

LAZA (laza74) on 2013-02-01
tags: added: precise
Tero Ratilainen (unksi) wrote :

Happens with quantal too:

run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-26-generic /boot/vmlinuz-3.5.0-26-generic
Error! Could not locate dkms.conf file.
File: does not exist.

tags: added: quantal
mrDoctorWho (mrdoctorwho) wrote :

Happens with raring (system was updated by update-manager 12.10→13.04):

run-parts: executing /etc/kernel/header_postinst.d/dkms 3.8.0-17-generic /boot/vmlinuz-3.8.0-17-generic
Error! Could not locate dkms.conf file.
File: does not exist.

jimav (james-avera) wrote :

(work around)
This cleared the error for me:

  sudo apt-get remove virtualbox-4.2
  sudo rm -rf /var/lib/dkms/vboxhost
  sudo apt-get install virtualbox-4.2

Wow! This bug was reported in 2011 and still occuring.

Ro$k0 (kroskoliy) wrote :

Yeah. And this is not "wow" at all. Same bug on 13.04 x32.

tags: added: raring

The bug is BACK!

Setting up linux-image-3.8.0-31-generic (3.8.0-31.46) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-31-generic /boot/vmlinuz-3.8.0-31-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.8.0-31-generic /boot/vmlinuz-3.8.0-31-generic
Error! Could not locate dkms.conf file.
File: does not exist.

Alejandro Arcos (arcosaf) wrote :
Download full text (16.7 KiB)

Is Back ?

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-3.11.0-13 linux-headers-3.11.0-13-generic linux-image-3.11.0-13-generic
  linux-image-extra-3.11.0-13-generic
The following packages will be upgraded:
  account-plugin-aim account-plugin-jabber account-plugin-salut account-plugin-yahoo
  at-spi2-core empathy empathy-common gir1.2-atspi-2.0 gnome-control-center
  gnome-control-center-data libatspi2.0-0 libgnome-control-center1 libkpathsea6
  liblightdm-gobject-1-0 libptexenc1 lightdm linux-generic linux-headers-generic
  linux-image-generic linux-libc-dev mcp-account-manager-uoa nautilus-sendto-empathy
  openssh-client python-cupshelpers python3-update-manager ssh-askpass-gnome
  system-config-printer-common system-config-printer-gnome system-config-printer-udev
  texlive-binaries update-manager update-manager-core
32 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 74,5 MB of archives.
After this operation, 258 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main libatspi2.0-0 amd64 2.10.1-0ubuntu0.1 [66,7 kB]
Get:2 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main lightdm amd64 1.8.4-0ubuntu1 [111 kB]
Get:3 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main linux-image-3.11.0-13-generic amd64 3.11.0-13.20 [13,9 MB]
Get:4 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main openssh-client amd64 1:6.2p2-6ubuntu0.1 [490 kB]
Get:5 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main python3-update-manager all 1:0.194.1 [34,9 kB]
Get:6 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main update-manager-core all 1:0.194.1 [5.364 B]
Get:7 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main update-manager all 1:0.194.1 [559 kB]
Get:8 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main nautilus-sendto-empathy amd64 3.8.4-1ubuntu2 [11,8 kB]
Get:9 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main mcp-account-manager-uoa amd64 3.8.4-1ubuntu2 [25,1 kB]
Get:10 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main account-plugin-yahoo amd64 3.8.4-1ubuntu2 [8.834 B]
Get:11 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main account-plugin-salut amd64 3.8.4-1ubuntu2 [8.864 B]
Get:12 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main account-plugin-jabber amd64 3.8.4-1ubuntu2 [8.840 B]
Get:13 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main account-plugin-aim amd64 3.8.4-1ubuntu2 [8.826 B]
Get:14 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main empathy amd64 3.8.4-1ubuntu2 [573 kB]
Get:15 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main empathy-common all 3.8.4-1ubuntu2 [1.519 kB]
Get:16 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main at-spi2-core amd64 2.10.1-0ubuntu0.1 [52,0 kB]
Get:17 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main gir1.2-atspi-2.0 amd64 2.10.1-0ubuntu0.1 [16,7 kB]
Get:18 http://ar.archive.ubuntu.com/ubuntu/ saucy-updates/main libgnome-control-center1 amd64 1:3.6.3-0ubuntu45.1 [80,4 k...

Le Gluon Du Net (legluondunet) wrote :

I have this bug on saucy

tags: added: saucy
Changed in dkms (Ubuntu):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.