Skip to content

Instantly share code, notes, and snippets.

@hkaraoguz
Last active May 13, 2023 15:12
Show Gist options
  • Save hkaraoguz/a5184e453b8e4a44647f67141708f82d to your computer and use it in GitHub Desktop.
Save hkaraoguz/a5184e453b8e4a44647f67141708f82d to your computer and use it in GitHub Desktop.
How to install Nvidia 470.57.02 Drivers for Ubuntu 20.04 using a run file
## Install necessary libraries
sudo apt update &&
sudo apt install build-essential libglvnd-dev pkg-config
## Download the drivers
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/470.57.02/NVIDIA-Linux-x86_64-470.57.02.run
## Remove the existing Nvidia drivers, utils, libs etc.
sudo apt purge nvidia*
sudo apt purge nvidia-driver*
sudo apt autoremove
## Blacklist nouveau drivers
sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf" &&
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
## Check that the blacklist file is correct
cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf
## Reboot
sudo reboot
## Boot in recovery mode (select `Advanced options for Ubuntu in GRUB menu`)
## When recovery menu appears select `root` and drop to root shell
## Allow downloaded .run file to be executed
chmod +x /path/to/Nvidia_driver_run_file.run
## Execute the run file
./path/to/Nvidia_driver_run_file
## When prompted Select No for building 32-bit compatibility libraries
## When prompted Select No for changing X11 configuration
## Reboot when installation is completed and allow computer to boot normally
reboot
@hkaraoguz
Copy link
Author

I understand. Thank you for the comments. To be honest I don't think saying yes and no to 32-bit libraries would make a difference for the hibernation/startup issues. However, I was so overwhelmed with these problems so I wanted to install the driver as basic as possible. I don't really know what they are used for either.

@czuba
Copy link

czuba commented Dec 17, 2021

🙌

Done & done, back to work! Thanks for the straightforward fix!!

...nvidia-linux driver issues are nightmare fuel for productivity, but without functional system suspend my machine heats up the whole office when left on overnight (...even when ongoing analyses have long since finished)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment