@Syslog.eu:

This simple addition allowed me to stop flailing and zero in on the
problem!

The "Could not locate dkms.conf file" error wasn't enough. Knowing what
it was looking for IMMEDIATELY showed me what the problem was. For
whatever reason, the version number reflected in the folder
/var/lib/dkms/nvidia/ was *not* the same as the installed driver
version. As a result, the contained symlink `source` was also pointed to
the wrong version number. Renaming the folder to the installed version
and updating the symlink allowed dkms to successfully rebuild the
driver. I can only assume the error was a fatfinger on my part as the
incorrect version doesn't exist.

I hope your simple addition makes it's way upstream so it can be useful
to others.

-- 
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:
  Error during kernel upgrade: Could not locate dkms.conf file

Status in dkms package in Ubuntu:
  Incomplete

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

Reply via email to