DEV Community

Cover image for Ubuntu with kernel 5.8 and nVidia legacy drivers
Adam Mateusz Brożyński
Adam Mateusz Brożyński

Posted on • Edited on

Ubuntu with kernel 5.8 and nVidia legacy drivers

Problem:

  • Cannot install drivers from nVidia website on Ubuntu with kernel >= 5.8 (nVidia has dropped support for legacy drivers!)

Solution:

$ sudo apt install build-esssential gcc make libc6-dev
Enter fullscreen mode Exit fullscreen mode
  • Create /etc/modprobe.d/blacklist-nvidia.conf with following content:
blacklist rivafb
blacklist rivatv
blacklist nvidiafb
blacklist nouveau
Enter fullscreen mode Exit fullscreen mode
  • Update initramfs
$ update-initramfs -u
Enter fullscreen mode Exit fullscreen mode
  • Reboot and log in to console (ALT+F3)
$ sudo reboot
Enter fullscreen mode Exit fullscreen mode
  • Stop X server
$ sudo service gdm stop # replace gdm with your manager if different
Enter fullscreen mode Exit fullscreen mode
  • Run installer
$ chmod +x ./*.run
$ sudo https://nvidia.if-not-true-then-false.com/NVIDIA-Linux-x86_64-XXX.XXX-patched-kernel-5.8.run
Enter fullscreen mode Exit fullscreen mode
  • Install additional packages
$ sudo apt install vdpauinfo libva-glx2 libva-drm2
Enter fullscreen mode Exit fullscreen mode
  • Reboot and enjoy
  • Remember that you need to install nvidia module after every kernel update

For newer kernels (up to 5.11) see If-not-true-then-false website.

Top comments (0)