I'm seeing this in 16.04.2 LTS. During dist-upgrade I see:
Error! Could not locate dkms.conf file. File: does not exist. I too have been having VBox issues, such as locking up my system. $ sudo apt-cache policy virtualbox dkms virtualbox: Installed: 5.0.36-dfsg-0ubuntu1.16.04.2 Candidate: 5.0.36-dfsg-0ubuntu1.16.04.2 Version table: *** 5.0.36-dfsg-0ubuntu1.16.04.2 500 500 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages 100 /var/lib/dpkg/status 5.0.18-dfsg-2build1 500 500 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages dkms: Installed: 2.2.0.3-2ubuntu11.3 Candidate: 2.2.0.3-2ubuntu11.3 Version table: *** 2.2.0.3-2ubuntu11.3 500 500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 500 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages 100 /var/lib/dpkg/status 2.2.0.3-2ubuntu11 500 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages 500 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to dkms in Ubuntu. https://bugs.launchpad.net/bugs/830915 Title: [Oneiric] Error during kernel upgrade: Could not locate dkms.conf file Status in dkms package in Ubuntu: Confirmed 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/830915/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp