Topic: Problem installing nvidia drivers.

Hi guys, i just installed #! and i'm fascinated by the speed and flexibility. There is one problem, when i try to install the nvidia driver (execute the .run file) it spits out an error:

Please make sure you have installed the kernel source files for your
       kernel and that they are properly configured; on Red Hat Linux systems,
       for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
       installed.  If you know the correct kernel source files are installed,
       you may specify the kernel source path with the '--kernel-source-path'

I looked up the error and found out (by typing uname -r) that my kernel is 2.6.28-13-generic, but in my /usr/src i have linux-headers-2.6.28-18  linux-headers-2.6.28-18-generic (and also (i dont know if it is relevant) nvidia-173.14.16) So what do i have to specify with the --kernel-source-path, must i recompile my kernel? I ran a apt-get upgrade and dist-upgrade, but i still have the 2.6.28.13 kernel. This is the first time i have an problem installing nvidia drivers, so I'm feeling kinda silly.  I don't know what else to try, i also tried to install it by the GUI thingy that comes with #!.
Regards Rejoin

Re: Problem installing nvidia drivers.

Did you try using the GUI to install the Nvidia drivers?

Openbox menu > System > Restricted Device Manager.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Problem installing nvidia drivers.

Yep, i have tried from there too, the installation goes to 100% but after that it still says that the driver is not activated. The strange thing is that when i booted up today the resolution was 800x600 (yesterday was the normal size 1440x900) and i can't change it to nothing higher (i can select 640x480, 400x300 and 320x240)  . This is the first time i've ever had problems with video on linux, very strange.

Re: Problem installing nvidia drivers.

Install linux-headers-generic, then try installing the nvidia driver again.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Problem installing nvidia drivers.

root@me#apt-get install  linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-generic is already the newest version.
linux-headers-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I ran the ./nvidia.run script again today it got trough the installation, but in the end there was another error, i'm pretty sure the problem is in the kernel ( judging by this thing from another forum 

The kernel development files you built against do not match the running kernel. Please make sure you have the correct set of kernel development files installed.

)
I don't know what to do, to run the newest kernel.
Edit:here is the /var/log/nvidia-installer.log
http://crunchbanglinux.org/pastebin/523

Last edited by ReJoiN (2010-03-19 19:15:09)

Re: Problem installing nvidia drivers.

Make sure your system is up-to-date:

sudo apt-get update
sudo apt-get dist-upgrade
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Problem installing nvidia drivers.

I ran a apt-get upgrade and dist-upgrade, but i still have the 2.6.28.13 kernel.

(from my first post)
Ok now it's really weird, yesterday i rebooted 5 times, and the resolution was 800x600, and today it's 1440x900, i really have no idea what's going on with my pc...

Re: Problem installing nvidia drivers.

I had to do the system update before it would even recognize that there were nvidia drivers I could install.  I ran system-update found in the openbox menu of Crunchbang: system -> System Update.

Re: Problem installing nvidia drivers.

I have tried that too, i think it's the same as apt-get update && apt-get upgrade. I'll install the statler today, and see if there are any problems with it.

Re: Problem installing nvidia drivers.

Ok i reinstalled it and it works fine now, no idea what was the problem. Thanks for the attention guys smile