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.
I do not have a
– Daniel Hathcock Jul 17 '18 at 01:50/usr/lib/nvidia-390
directory (though again,nvidia-driver-390
is installed and working), and the only contents of my/usr/lib/nvidia-384
directory are two more broken symlinks, neither of which match the file referenced by the answers to that post.sudo ldconfig
from a terminal? It might be able to fix any ld errors you might be getting. – Terrance Jul 17 '18 at 02:47sudo ldconfig
gives the same error – Daniel Hathcock Jul 17 '18 at 04:26nvidia-driver-396
ornvidia-driver-390
. Probably not good to have old mixed with new drivers. – Terrance Jul 17 '18 at 05:46nvidia-driver-390
... – Daniel Hathcock Jul 17 '18 at 05:47nvidia-384
. There just appears to be some residual files/links from it that maybe aren't being removed byapt purge
? I'm not sure if that is actually the issue though...nvidia-driver-390
works well (both before and after clean install), so I don't think a clean Ubuntu install should be necessary (I can just live with the warning from ldconfig...) – Daniel Hathcock Jul 17 '18 at 05:53