2

I recently upgraded my computer from 17.10 to 18.04. This involved an upgrade of the nvidia graphics driver from nvidia-384 to nvidia-driver-390. However, I noticed that nvidia-384 was still installed after the upgrade, and strangely seems to depend on nvidia-driver-390.

The problem:

Whenever I run apt upgrade, I get errors that look like

/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf: No such file or directory

When I look for /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf, I can see that it is a broken symlink to /etc/alternatives/i386-linux-gnu_egl_conf, which itself is a broken symlink to /usr/lib/nvidia-384-prime/alt_ld.so.conf. The entire directory /usr/lib/nvidia-384-prime does not even exist.

What I have already tried:

I tried purging all nvidia packages using:

sudo apt purge --autoremove nvidia*

I then rebooted (and checked that nouveau drivers were loaded), reinstalled nvidia-driver-390, and rebooted again.

Now I no longer have the nvidia-384 package (only nvidia-driver-390 which seems to be working normally), but the broken symlinks and error messages are still there. Moreover, there is a directory /usr/lib/nvidia-384, but I assume that should be gone since I do not have nvidia-384.

My question:

Can/should I just remove the broken symlinks to stop these error messages? Or is there some other (cleaner) way which would remove these, as well as any other extraneous files/directories/links that may be on my computer (like the /usr/lib/nvidia-384 directory)?

Thanks in advance!

EDIT: I just tried renaming /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf to /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf.bak to "remove" it (in the eyes of ldconfig)...it seems to "resolve" the issue in that I no longer get ldconfig errors. But I still have the extraneous nvidia-384 directory which I do not know what to do with...again not sure if there is a clean way to remove all of the unnecessary files related to this.

1 Answers1

2

Had more or less the same problem after an update (ldconfig error). The following command deleted all invalid links:

sudo update-alternatives --config i386-linux-gnu_egl_conf
nspo
  • 151