6

I am a Ubuntu user for over 15 years now and love it except for the difficultly in installing display drivers sometimes. This year I have been unable to install one on my Desktop successfully which has a Nvidia Geforce 9800GT card. I can get it to install without errors but every time I reboot it will not boot to the desktop and stops at starting x. It looks like its trying as the screen flashes and some graphical characters flash up and then it tries all over again getting stuck in a continuous loop. I have tried booting to a shell and removing and purging the Nvidia driver but it refuses saying filesystem is read only. It's impossible to get out off unless I do a re-install. I've tried every tutorial online and tried both of the drivers offered by Nvidia & Ubuntu. I always end up having to use the nouveau driver which refuses to play videos without being very jerky.

Any help to get it working?

13
  • You can uninstall the Nvidia driver from recovery mode, that way you don't need to reinstall Jul 3, 2017 at 17:02
  • what kernel do you have? and are you using secure boot? kernels 4.4 and newer will not use unsigned kernel modules if secure boot is on
    – ravery
    Jul 3, 2017 at 17:03
  • @ravery I think almost all kernel modules have been signed for a very long time. The exceptions being the ones I make and can't figure out how to sign so "force" them to load :D Jul 3, 2017 at 17:08
  • @WinEunUUchs2Unix -- OP said he's installing his own. as far as signing efitools has a tools for creating your own key and adding it to MOK. then you can sign you own modules using sbsigntool. With theese tools you can even sign your own booter and kernels
    – ravery
    Jul 3, 2017 at 17:13
  • reinstall ubuntu and do what I answered Jul 3, 2017 at 17:56

2 Answers 2

6

I will recommend you to do the most and eficient secure recommended method since you just finished installing Ubuntu from the Live CD.

First update your new system

sudo apt-get update
sudo apt-get dist-upgrade

Read carefully the packages you will install and update the linux-headers if prompt, now
For making sure what graphics driver your system needs.

ubuntu-drivers devices

That command will tell you what packages you will need for using graphics drivers.
Then just make sure to install first the intel driver and then the NVIDIA one.

sudo apt-get install intel-microcode
sudo apt-get install nvidia-xxx

And that's all, note that I told you nvidia-xxx because you must enter the recommended driver version displayed in ubuntu-drivers devices and I must warn you. Updating the kernel may cause you problems, so once you installed that NVIDIA driver, please don't upgrade with this commands (sudo apt dist-upgrade or sudo apt upgrade and sudo apt-get dist-upgrade), please use sudo apt-get upgrade that command will hold new kernel releases.

2
  • The intel-microcode step is a good idea for all Intel users not just those using nvidia. It's something we often forget to do and should arguably be first step in problem solving. +1 for that alone. Jul 3, 2017 at 18:00
  • This ^^^ and, again, askubuntu.com/questions/944575/…
    – user692175
    Nov 17, 2017 at 4:56
1

Recommended by this gist, the following steps will install NVIDIA drivers on your system:

For ubuntu 14.04.5 LTS, the latest version is 352. To install the driver, excute sudo apt-get install nvidia-352 nvidia-modprobe, and then reboot the machine.

For ubuntu 16.04.3 LTS, the latest version is 375. To install the driver, excute sudo apt-get install nvidia-375 nvidia-modprobe, and then reboot the machine.

The nvidia-modprobe utility is used to load NVIDIA kernel modules and create NVIDIA character device files automatically everytime your machine boots up.

1
  • nvidia-modprobe is already included in the nvidia-xxx package May 4, 2018 at 4:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .