Skip to content

Instantly share code, notes, and snippets.

@joanbm
Created August 11, 2025 18:40
Show Gist options
  • Select an option

  • Save joanbm/31a538d9a0b3b798738bd247a74a0db6 to your computer and use it in GitHub Desktop.

Select an option

Save joanbm/31a538d9a0b3b798738bd247a74a0db6 to your computer and use it in GitHub Desktop.
Tentative fix for NVIDIA 470.256.02 driver for Linux 6.17-rc1
HTTP/1.1 301 Moved Permanently
Location: https://github.com/joanbm/nvidia-470xx-linux-mainline/blob/master/patches/nvidia-470xx-fix-linux-6.17.patch
@chcaouette
Copy link
Copy Markdown

Hi,

I'm trying to install the patched driver on Ubuntu 25.10 using your code, however I'm running into a problem with the libglvnd checker. It fails with an internal error.

libglvnd-dev is installed, so the libglvnd checker is not finding them. I looked up the script of the checker and manually checked; all the library files are present. I tried setting LD_LIBRARY_PATH with the paths of the library files mentionned in the scripts, but no luck.

I'm at a lost as to how to proceed. Linux noob, not a programmer either, but I'm not entirely useless on a computer. It might be a simple fix, something really stupid I just don't know I have to do, but if you have any pointers at all... thanks in advance!

@zakweb3
Copy link
Copy Markdown

zakweb3 commented Feb 19, 2026

Yeah I had a similar issue, went into a crazy rabbit whole, here is the solution to your problem:

  1. make sure you have the necessary packages
    sudo apt install -y pkg-config libglvnd-core-dev libglvnd-dev libegl1-mesa-dev
  2. check that you have the libglvnd.pc file
    dpkg -L libglvnd-core-dev | grep '\.pc'
  3. the critical part, make a symlink to glvnd..pc
    sudo ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/libglvnd.pc \ /usr/lib/x86_64-linux-gnu/pkgconfig/glvnd.pc
  4. now check if its working with this
    pkg-config --modversion glvnd
    should out the version
  5. you might need to export the path if the above cmd didn't work
    export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
  6. recheck with pkg-config --modversion glvnd
  7. if it working add that line to you .bashrc
    echo 'export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc
  8. now you can log out, login with console session with CTL + ALT + F3 and run the driver ./install script

@chcaouette
Copy link
Copy Markdown

@zakweb3, thanks a lot! It worked.

I actually found another problem back in February... there was a space on the folder name I was using for the driver file (Linux newbie, I swear I won't do it again!). I managed to compile the driver after fixing that, but there were still things that were not working right. One program in particular was still giving me problems (a Windows CAD software I was running using Wine).

It's my husband's computer, so I waited until he had a more serious crash before fiddling with the driver again... this happened today. So I used your fix for the glvnd library, then recompiled the driver after pulling the mods from github. And lo and behold... not only did it work, it also fixed the problem I was having with my CAD software.

So, thanks a lot for the fix!

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