New-ish problems re-installing nvidia .run file "the hard way"

For years now, I have easily updated the “hard way” installed nvidia driver when zypper dup pulls in a kernel update: boot with the nomodeset 3 parameter, execute sh name-of-nvidia-run-file.run, then run dracut --regenerate-all --force. Easy, quick.

No longer. I now have to uninstall the .run file first, and the uninstall inevitably hangs, requiring a R-E-I-S-U-B. I then reboot, run dracut again, re-install the .run file from scratch. Much more time-consuming.

This has been going on for about a month, and the nvidia-uninstall.log consistently looks like the example below.

The culprit seems to be /usr/lib64/libnvidia-egl-wayland.so.1 . Should I try deleting both the file and the symbolic link before running install? Or could that make my system more ill than it is now? Any tips will be appreciated.


nvidia-installer log file '/var/log/nvidia-uninstall.log'
creation time: Mon Mar  3 19:35:27 2025
installer version: 570.124.04

PATH: /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin

nvidia-installer command line:
    ./nvidia-installer
    --uninstall

Using: nvidia-installer ncurses v6 user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> Scanning the initramfs with lsinitrd...
-> /usr/bin/lsinitrd requires a file path argument, but none was given.
-> Executing: /usr/bin/lsinitrd    /boot/initrd-6.13.5-1-default
-> If you plan to no longer use the NVIDIA driver, you should make sure that no X screens are configured to use the NVIDIA X driver in your X configuration file. If you used nvidia-xconfig to configure X, it may have created a backup of your original configuration. Would you like to run `nvidia-xconfig --restore-original-backup` to attempt restoration of the original X configuration file? (Answer: No)
-> Parsing log file:
-> done.
-> Validating previous installation:
-> Nouveau detected in initramfs
-> nvidia-drm.ko detected in initramfs
-> Initramfs scan complete.
-> done.
-> Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86_64 (1.0-57012404 (570.124.04)):
-> Unable to restore symbolic link /usr/lib64/libnvidia-egl-wayland.so.1 -> libnvidia-egl-wayland.so.1.1.17 (File exists).
WARNING: Failed to restore some backed up files/symlinks, and/or their attributes. See /var/log/nvidia-uninstall.log for details
-> done.
-> Running depmod and ldconfig:
-> done.
-> Running `/usr/bin/systemctl daemon-reload`:
-> done.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/post-uninstall'...
   rm: cannot remove '/etc/modprobe.d/nvidia.conf': No such file or directory
-> done.

@Tuner Hi, what GPU in use inxi -GXaz

The run file defaults to the open driver now, so Turing or better is needed?

I just reboot to multi-user.target (Runlevel 3) via `systemctl set-default multi-user.target), then use as follows;

NVIDIA-Linux-x86_64-RUN_VERSION.run \
    --ui=none \
    --no-questions \
    --accept-license \
    --disable-nouveau \
    --no-cc-version-check

Are you running nvidia persistence?

First, malcolm, thanks for the reply.

inxi -GXaz on my box yielded Error 22: Unsupported option: -Xaz . However, I definitely don’t have Turing, and am not running persistence.

I tried deleting the two /usr/lib64/libnvidia-egl-wayland* files, then running uninstall. It bombed out as before, again requiring R-E-I-S-U-B . This time the uninstall log reported:

-> Unable to find installed file '/usr/lib64/libnvidia-egl-wayland.so.1.1.18' (No such file or directory).
-> The previously installed symlink '/usr/lib64/libGLX_indirect.so.0' has target 'libGLX_mesa.so.0', but it was installed with target 'libGLX_nvidia.so.570.124.04'.  /usr/lib64/libGLX_indirect.so.0 will not be uninstalled.
-> The previously installed symlink '/usr/lib/libGLX_indirect.so.0' has target 'libGLX_mesa.so.0', but it was installed with target 'libGLX_nvidia.so.570.124.04'.  /usr/lib/libGLX_indirect.so.0 will not be uninstalled.

I’m not much of a gamer, so for the time being plan to live with nouveau rather than continue to fight with the .run file. Past efforts to get help from the nvidia forum haven’t turned out well.

@Tuner forcing the install of libnvidia-egl-wayland1 should help. Yes it’s inxi -GSaz my bad…