install nvidia drivers in ubuntu 10.04

Asked by Neil

Hi
Having trouble installing nvidia drivers in 10.04. I have the 9600gt Ubuntu drop the drive and I can not install them using hardware driver in system.
I have tried this http://ubuntuguide.net/install-latest-nvidia-graphics-drivers-in-ubuntu-linux but terminal will not connect.
Have also tried the commands
CTRL-ALT-F1 then
sudo /etc.init.d/gdm stop

then tried to run the the command sudo sh '/home/goof/Desktop/NVIDIA-Linux-x86-195.36.24-pkg1.run'
it starts to install I agree the the licence. then it say that it can not find the kernel tree and stop there and then saying installation have failed.

please help

I dont have the diver installed

regards
Neil

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xserver-xorg-video-nv Edit question
Assignee:
No assignee Edit question
Solved by:
Neil
Solved:
Last query:
Last reply:
Revision history for this message
Robert Key (robertkey) said :
#1

Hi I had the same problem and this is how I fixed it.

I appended this to /etc/modprobe.d/blacklist.conf

blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

These modules will block the nvidia driver.

I download the driver from http://www.nvidia.co.uk/Download/index.aspx?lang=en-uk
and ran it from the command line as root.

you can do sudo -i
and then you will stay in root and get all the environment variables.

Hope this helps.
Robert Key

Revision history for this message
Robert Key (robertkey) said :
#2

Hi sorry you also need to install the linux-headers for your kernel

apt-get install linux-headers-`uname -r` should do this for you

Check the link /lib/modules/`uname -r`/build to see that it does point to your kernel sources in /usr/src/linux-headers-`uname -r`

You can also nvidia-xxx-xxx.run --kernel-source-path=/usr/src/linux-headers-`uname -r` --kernel-name=`uname -r` if you are running the kernel you want to install to. if not just fill in the `uname -r` with the other kernels details.

Eg `uname -r` will return 2.6.32-generic-22 if your kernel is linux-image-2.6.32-generic-22.

Cheers,
   Rob Key

Revision history for this message
Neil (goofandfroggie) said :
#3

Hi
Thanks for your help but nothing seems to work. backing up everything and going to wipe. and reinstall that will fix it (I hope lol)
Regards
Neil

Revision history for this message
Robert Key (robertkey) said :
#4

Hi Neil, sometimes a reinstall is the quickest way. I have clobbered the X server and couldn't fix it. Reinstall was the best option.

Since I reinstall quite often you can set it up so you boot off a USB hard drive with the CD image in the root directory or a link to it at least, this is much faster than using CDROM.
Cheers,
  Rob