Possibly-bogus error about missing dkms.conf file during autoremove

Bug #1528378 reported by jimav
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Confirmed
Medium
Unassigned
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Updating the kernel, or anything which requires rebuilding initramfs (including "apt-get autoremove") produces error messages like this:

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

But dkms seems to be working fine -- virtualbox modules get rebuilt as they should be. There might be some other package which is broken with respect to dkms.conf, but the message gives no hint about where to look.

I tried to figure out where the message is coming from, but got no hits (other than log files) from
  # find /boot /etc /lib* /bin /sbin /usr /var -type f -print0 | xargs -0 zgrep -l 'Error.*Could not locate'

I will attach /var/log/apt/term.log

ACTUAL RESULTS:
   Error saying dkms.conf is missing

EXPECTED RESULTS:
   No error, or else an error which indicates which module is broken or the path of the missing file

(If the underlying problem is not in the above postinst script, but in another module which produces the un-useful iagnostic, please redirect this bug to that package).

$ locate dkms.conf
/etc/modprobe.d/dkms.conf # this one is empty
/home/jima/flashcache/flashcache-wt/src/dkms.conf
/home/jima/flashcache/src/dkms.conf
/usr/share/virtualbox/src/vboxhost/dkms.conf
/usr/src/bbswitch-0.7/dkms.conf
/usr/src/nvidia-352-updates-352.63/dkms.conf
/var/lib/dkms/bbswitch/0.7/build/dkms.conf
/var/lib/dkms/nvidia-352-updates/352.63/build/dkms.conf
/var/lib/dkms/vboxhost/5.0.12/build/dkms.conf
/var/lib/dkms/vboxhost/5.0.9/build/dkms.conf
/var/lib/dkms_SAVE/vboxhost/4.3.10/build/dkms.conf
/var/lib/dpkg/info/dkms.conffiles # all files listed herein exist

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: linux-image-extra-4.2.0-19-generic 4.2.0-19.23
ProcVersionSignature: Ubuntu 4.2.0-22.27-generic 4.2.6
Uname: Linux 4.2.0-22-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: jima 2484 F.... pulseaudio
 /dev/snd/controlC0: jima 2484 F.... pulseaudio
CurrentDesktop: Unity
Date: Mon Dec 21 14:33:19 2015
HibernationDevice: RESUME=UUID=692a674b-d118-4d8a-906c-ecd9d1accff7
InstallationDate: Installed on 2013-08-06 (867 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
MachineType: System manufacturer System Product Name
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-22-generic root=UUID=cb77f6cf-d3da-493f-bad6-2c7bdf5f1550 ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-4.2.0-22-generic N/A
 linux-backports-modules-4.2.0-22-generic N/A
 linux-firmware 1.149.3
RfKill:

SourcePackage: linux
UpgradeStatus: Upgraded to wily on 2015-11-09 (42 days ago)
dmi.bios.date: 09/21/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1408
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P6T
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1408:bd09/21/2010:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP6T:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
jimav (james-avera) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
jimav (james-avera) wrote :

I used strace on apt-get and it attempted to access the following non-existent files:

   /var/lib/dkms/vboxhost/5.0.9/source/dkms.conf
   /var/tmp/mkinitramfs_OcRxJk/etc/modprobe.d/dkms.conf

The file /var/lib/dkms/vboxhost/5.0.9/build/dkms.conf DOES exist, but was NOT accessed.

The file /usr/share/virtualbox/src/vboxhost/dkms.conf exists and WAS accessed successfully, and
it contains the same content as /var/lib/dkms/vboxhost/5.0.9/build/dkms.conf except for PACKAGE_VERSION
(which is older in the latter, not-accessed file).

=> Can someone who know how dkms works comment on this? Where is the problem likely to be?

(I could not see into /var/tmp/mkinitramfs_OcRxJk because that temp dir was removed)

Revision history for this message
jimav (james-avera) wrote :

The error message occurs during any normal kernel update, not just during autoremove.
I can reproduce it at will with "sudo apt-get install --reinstall linux-image-4.2.0-29-generic" (or whatever the latest version is).

I changed the bug title accordingly

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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