You are not logged in.

#1 2012-11-01 18:36:58

PL_kolek
Member
Registered: 2012-02-21
Posts: 41

[SOLVED]DKMS - could not locate dkms.conf file

Hello!
When I try to reinstall modules for new kernel, I get this:

sudo dkms autoinstall 
Error! Could not locate dkms.conf file.
File:  does not exist.

For example I cannot switch my GPU because bbswitch didn't get autoinstalled for the new kernel. I have to manually do:

sudo dkms build bbswitch/0.5

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.6.4-1-ARCH KVERSION=3.6.4-1-ARCH.....
cleaning build area....

DKMS: build completed.

And then:

sudo dkms install bbswitch/0.5

bbswitch:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/3.6.4-1-ARCH/kernel/drivers/acpi/

depmod.......

DKMS: install completed.

I guess the same follows for my nvidia-drivers? I think DKMS should do this on its own, but I'm not sure if missing dkms.conf is related.

Last edited by PL_kolek (2012-11-07 21:27:38)

Offline

#2 2012-11-04 19:56:26

PL_kolek
Member
Registered: 2012-02-21
Posts: 41

Re: [SOLVED]DKMS - could not locate dkms.conf file

BUMP
New kernel - situation recurred. Has anyone any idea what might be going on?

DKMS hasn't installed nvidia either...

Last edited by PL_kolek (2012-11-04 20:11:20)

Offline

#3 2012-11-07 12:07:06

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: [SOLVED]DKMS - could not locate dkms.conf file

Same here on one of my machines. The other 2 are fine though, still haven't figured out what's going wrong. Fresh installing seems to fix the problem though.


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#4 2012-11-07 13:23:53

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: [SOLVED]DKMS - could not locate dkms.conf file

Okay found out what was wrong, look here for the answer: http://8thstring.blogspot.fr/2012/01/er … -file.html


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#5 2012-11-07 16:40:30

PL_kolek
Member
Registered: 2012-02-21
Posts: 41

Re: [SOLVED]DKMS - could not locate dkms.conf file

Thanks for the answer. I found this post before, but ignored it, because I didn't have virtualbox installed (had to install it yesterday though). I followed the advice there and removed all directories corresponding to old version of my modules. No betterment:

sudo dkms autoinstall 
[sudo] password for mk: 
Error! Could not locate dkms.conf file.
File:  does not exist.

Offline

#6 2012-11-07 17:50:33

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: [SOLVED]DKMS - could not locate dkms.conf file

Use the following to find out your lone DKMS packages

for i in /var/lib/dkms/*/[^k]*/source; do [ -e "$i" ] || echo "$i";done

It will probably print out /var/lib/dkms/bbswitch/0.4.2/source. In that case, remove /var/lib/dkms/bbswitch/0.4.2.

There was an error in older .install scripts (due to a libalpm bug) that prevented older versions to be uninstalled first.

Offline

#7 2012-11-07 18:35:22

PL_kolek
Member
Registered: 2012-02-21
Posts: 41

Re: [SOLVED]DKMS - could not locate dkms.conf file

Sorry for not being able to check your solution, because I fixed it in my way. Dumb way. I uninstalled dmks and dkms-bbswitch, removed /var/lib/dkms and installed it again. No strange errors now.

But I removed /var/lib/dkms/bbswitch/0.4.2 before, and it didn't help. But probably I did something wrong. Thanks

Offline

Board footer

Powered by FluxBB