Skip to content

Instantly share code, notes, and snippets.

@theGOTOguy
Created April 9, 2023 03:50
Show Gist options
  • Save theGOTOguy/f49b1d69fd757d2a6e0a10ce38b2163c to your computer and use it in GitHub Desktop.
Save theGOTOguy/f49b1d69fd757d2a6e0a10ce38b2163c to your computer and use it in GitHub Desktop.
NVIDIA Proprietary Drivers 525 Fail to Install on Ubuntu Jammy
# Since the 525 drivers, I noticed that, e.g.:
sudo ./NVIDIA-Linux-x86_64-525.105.17.run
# Has started failing with an error indicating that I should check /var/log/nvidia-installer.log
# Looking at those logs, I see an error indicating that the version of GCC being used doesn't match.
# In particular, the default version of cc at /usr/bin/cc is gcc-11, but gcc-12 is expected.
# This is easy to fix.
which gcc-12
# indicate that I do have gcc-12 installed at /usr/bin/gcc-12
# Thus, I can simply install with:
sudo CC=/usr/bin/gcc-12 ./NVIDIA-Linux-x86_64-525.105.17.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment