May 1, 2010 · General · Email This Post
Share
{lang: 'en-GB'}

If you are trying to install nVidia drivers from their website you might receive the following error

ERROR: Unable to load the kernel module ‘nvidia.ko’.  This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by this NVIDIA Linux graphics driver release.

To fix the above error message use the following procedure

1) Download Newest Nvidia drivers from here

2) Open module blacklist as admin

gksudo gedit /etc/modprobe.d/blacklist.conf

Add these lines and save:

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

3) Uninstall any previously installed Nvidia drivers:

sudo apt-get --purge remove nvidia-*

4) Reboot your computer

5) When an error message pops up saying that Ubuntu cannot load Nvidia drivers, choose Exit to terminal (Exit to console)

6) Login and cd to the directory where you saved your file

7)Install drivers

sudo sh NVIDIA-Linux-x86_64-195.36.24-pkg2.run

8)Start GDM

sudo service gdm start

Full Credit goes here

Share

Related posts

108 Comments to “Howto install nVIDIA drivers manually on Ubuntu 10.04 (Lucid Lynx)”

  1. Jim C. says:

    Does this also solve the problem with the black tty’s? Try [CTRL][ALT][F2] and see if you get a tty screen. Then do [CTRL][ALT][F7] to get back to X11.

    [Reply]

  2. naught101 says:

    Thanks, dude, this worked well. Not having all those modules blacklisted was the blocker for me.

    [Reply]

  3. Absol says:

    yay!! tnks a lot, that (together with the beta driver) was what i needed :D

    [Reply]

  4. Marian says:

    Thanks a lot! I have been trying to repair my poor Ubuntu for almost 2 hours now with no success, until I found this article! Good job! Wish I found it earlier.

    [Reply]

  5. Ramon says:

    Bravo, nvidia driver 71.86.14 installed correctly on ubuntu maverick,this time no errors but i cant update xorg.conf. any ideas thanks

    [Reply]

  6. de dims says:

    i install the latest nvidia driver properly as you describe in the method but after installing driver my desktop freezes. Why?can anyone help me

    [Reply]

  7. rayhan says:

    thanks a lot :D finally i got the driver working …. I’ve failed to stop the x server … but with removing the previous drivers every thing went smooth :) .

    [Reply]

  8. Eirik says:

    Install process went fine, but the x-server refused to start up again, so i decided to reboot, but now everthing is black . i have tried recoverymode but it’s exactly the same.

    [Reply]

  9. Nor says:

    Thanks for the post. It works great.

    [Reply]

  10. RetryUbuntu says:

    Confirmed this procedure works for my setup (10/14/2011):
    Nvidia GTS 450
    Asus P8H61-M LE/CSM MB
    Ubuntu 10.04

    I first tried to do it the “official way” - update to nvidia-current from Synaptic, no luck. Always got the “Could not load nvidia drivers” on X start, even though I had blacklisted all those drivers mentioned above. Had to get the right driver for my card from Nvidia, and follow the process outlined in the parent post. Thanks a bunch!

    [Reply]

  11. gogira says:

    after i press ctrl+alt+f2 and i login as admin and enter the command : “gksudo gedit /etc/modprobe.d/blacklist.conf”

    i recive : Gtk-WARNING **: cannot open display:

    :(

    can anyone help i`m trying to install my gpu drivers for a long time under ubuntu…

    [Reply]

  12. gogira says:

    i resolved that… i just went to terminal did all the blacklist things … restarted , but after trying to install it gives me :

    ERROR : You appear to be running an X server ; please exit X before installing. ….

    ???

    [Reply]

    miki Reply:

    Just enter in terminal

    sudo service gdm stop

    then ctrl and alt and F1

    and then cd Desktop if you driver is copied on Desktop and then
    sudo sh -driver name- and that is it…

    [Reply]

  13. Sacchidanand says:

    Thank you very much.
    Recently, I have purchased a new laptop Sony Vaio E-Series VPCEH25EN and install Ubuntu 10.04 LTS i386.
    After that i come to know that i can not able to change screen resolution.
    But, after following your guidelines i can successfully able to change my screen resolution.

    [Reply]

  14. Amin says:

    hello,it work OK
    Very Very Thanks:)

    [Reply]

  15. Some Funky Dude says:

    Add this (ppa:ubuntu-x-swat/x-updates) to your software sources. No need to black list any thing and screw your O/S up.

    [Reply]

  16. Patrick says:

    Step 6 says to login. How? What are the commands? I’ve been Googling for a while now and can’t find the answer.

    [Reply]

  17. Sol says:

    Guys/gals use this method instead, it’s faster and much more secure..

    http://www.ubuntuupdates.org/ppas/27

    [Reply]

Leave a Reply