Installing Nvidia driver in Ubuntu 22.04

  1. Remove all the nvidia packages.

sudo apt update

sudo apt-get remove ‘^nvidia’

sudo apt autoremove

  1. If you have added an Nvidia PPA to /etc/apt/sources.list remove that PPA by prefacing its line in sources.list with a # to comment it out. Run sudo apt update to refresh the list of available software.
  1. Reboot with sudo reboot
  2. Run the following commands to install the Nvidia 450 driver.

sudo apt install nvidia-driver-450

sudo reboot

After you have installed the nvidia-driver-450 graphics driver in Ubuntu 20.04 it may be updated from nvidia-driver-450 to nvidia-driver-460 by the normal software update activity.

As an alternative to step 4 you can let the ubuntu-drivers program automatically select the proprietary Nvidia packages that are most compatible with your GPU instead of guessing which Nvidia driver packages to install. This method would especially apply in 2022 and later because nvidia-driver-450 is currently a transitional package for nvidia-driver-460 in Ubuntu 20.04. To install the Nvidia proprietary driver this way run the following command instead of the commands in step 4.

sudo ubuntu-drivers install && sudo reboot

These steps are still working for nvidia-driver-470.

Similar Posts

  • Make Bootable USB Drive

    Make Bootable USB Drive with RHEL 6.3 Copy all files for image to a directory, RHEL63KS. Make the iso image file by typing the following command: mkisofs -o boot.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -V RHEL63KS -T ./RHEL63KS This will create a file called boot.iso. Rename this file, RHEL63KS.iso. Insert…

  • Installing Real VNC on RHEL

    Red Hat-compatible Linux The following instructions are valid for CentOS 5 running the GNOME desktop environment. Instructions may differ slightly fordifferent versions of CentOS, and versions of Fedora or Red Hat Enterprise, running different desktop environments, but theprinciple is the same. If in doubt, consult the operating system documentation. Downloading VNC Download a VNC for Linux…

  • Mount NTFS on RHEL

    ElRepo repository has kmod-fuse package that does not need dkms system. Since kmod installation uses module aliases (something like symlinks on filesystems), it works on all installed and future kernels without the need to recompile/install even automatic one with dkms. Get started Import the public key:rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org Detailed info on the GPG key used by the…