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

  • Mount Windows Share on RHEL

    In CLI    mount -t cifs //ntserver/dir -o username=user,password=pass /mnt/ntserver    In /etc/fstab    //ntserver/dir   /mnt/ntserver   cifs   credentials=/root/.smbpasswd,file_mode=0777,dir_mode=0777   0   0 Then create a file /root/.smbpasswd  with permissions set to 600    username=user    password=pass In /etc/hosts add IP address of ntserver.   

  • Intel e1000e Linux Driver

    Linux* e1000e Base Driver overview and installation   Using the e1000e Base Driver for Gigabit IntelĀ® Network Connections The e1000e driver supports PCI Express* Gigabit Network Connections except the 82575, 82576, 82580, and I350. Download e1000e here Overview Building and installation Command line parameters Speed and duplex configuration Additional configurations Overview The Linux base drivers support the 2.4.x…

  • Transfer data between RHEL and Solaris

    Transfer Data between RHEL and Solaris On SUN: in /etc/dfs/dfstab file addshare -F nfs /export/homethen type:/etc/init.d/nfs.server start On RHEL: to mounttype mount host:/export/home /mnt/sundisk Or in /etc/fstab host:/export/home /home/sundisk nfs defaults 0 0 Then type mount /home/sundisk Or type mount -aTo make nfs start at boot type: chkconfig nfs on to sharein file /etc/exports add/home/vnmr1…

  • 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…