54

After the installation of any programs I get the following error

Processing triggers for libc-bin (2.23-0ubuntu7) ...
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link

What is this error and how can I solve it?

2

4 Answers 4

48

This is an issue which has affected many users and is reported as a bug at Launchpad.

There appears to be a conflict between different versions of libEGL.

To get rid of these warning, create the following symlinks (but first read the warning bellow):

sudo mv /usr/lib/nvidia-375/libEGL.so.1 /usr/lib/nvidia-375/libEGL.so.1.org
sudo mv /usr/lib32/nvidia-375/libEGL.so.1 /usr/lib32/nvidia-375/libEGL.so.1.org
sudo ln -s /usr/lib/nvidia-375/libEGL.so.375.39 /usr/lib/nvidia-375/libEGL.so.1
sudo ln -s /usr/lib32/nvidia-375/libEGL.so.375.39 /usr/lib32/nvidia-375/libEGL.so.1

Warning: There is no need to change your system. If after reboot you can not start the graphical interface you can solve by:
1. Login into a terminal;
2. Run sudo dpkg-reconfigure nvidia*

7
  • 3
    As Noisy_Botnet mentioned (sorry, can't comment underneath there due to rep points) or as discussed here the problem could be resolved TEMPORARILY. But now that the driver version upgraded from 375.39 to 375.51, you may have to repeat it with '39's replaced with '51's this time... And for future, you may have to check the versions (when 375.51 is upgraded) and the link I gave for updates on the issue... P.S: Read until the end before actually typing the commands on the link; some of the command l
    – hekimgil
    Apr 6, 2017 at 23:40
  • 4
    any word on a real fix for this?
    – Goddard
    Apr 17, 2017 at 18:22
  • 1
    Does this solution need to be repeated on every version upgrade? Apr 23, 2017 at 7:41
  • 1
    I seem to find myself doing this more than once per system and as mentioned in an earlier comment, I needed to change the numbers.
    – sage
    Jun 21, 2017 at 17:03
  • I think this is what bricked my system forcing a nuke-n-pave. Prior to that I had upgraded from 15.10 and KDE sddm-greeter kept crashing with a segfault in the same EGL library, so also did gdm. When I reverted to Nouveau, it worked but it was incredibly low FPS (we're talking video circa 1990 slow). This is a significant issue, I've already lost 10 hours today over this.
    – Coder Guy
    Jul 28, 2017 at 3:56
11

The following is an easy-to-use version of Noisy_Botnet's solution. It facilitates repeating the process for any update.

#! /bin/sh
#
# find the file in /usr/lib
LIBEGL=`find /usr/lib/nvidia* -name libEGL.so.\* | egrep "[0-9][0-9]*\.[0-9][0-9]*$"`
LIBEGL_LINK=`echo $LIBEGL | sed 's/[0-9][0-9]*\.[0-9][0-9]*$/1/'`
printf "\n\nThe following commands will be executed:\n+++++++++++++++++++++++++++++++++++++++\n"
printf "mv $LIBEGL_LINK ${LIBEGL_LINK}.orig\nln -s $LIBEGL $LIBEGL_LINK\n\n"
while true; do
    read -p "Do you wish to perform these commands?  " yn
    case $yn in
        [Yy]* ) mv $LIBEGL_LINK ${LIBEGL_LINK}.orig; ln -s $LIBEGL $LIBEGL_LINK ; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done

# find the file in /usr/lib32
LIBEGL=`find /usr/lib32/nvidia* -name libEGL.so.\* | egrep "[0-9][0-9]*\.[0-9][0-9]*$"`
LIBEGL_LINK=`echo $LIBEGL | sed 's/[0-9][0-9]*\.[0-9][0-9]*$/1/'`
printf "\n\nThe following commands will be executed:\n+++++++++++++++++++++++++++++++++++++++\n"
printf "mv $LIBEGL_LINK ${LIBEGL_LINK}.orig\nln -s $LIBEGL $LIBEGL_LINK\n\n"
while true; do
    read -p "Do you wish to perform these commands?  " yn
    case $yn in
        [Yy]* ) mv $LIBEGL_LINK ${LIBEGL_LINK}.orig; ln -s $LIBEGL $LIBEGL_LINK ; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done
0
1

did you upgrade without update first? I had the same message, I updated, upgraded and the message was gone

sudo apt-get update
sudo apt-get upgrade
7
  • I ran sudo apt-get update, sudo apt-get upgrade, sudo apt-get dist-upgrade, sudo apt-get install nvidia-375 and then installed my apps.
    – Dante
    Apr 6, 2017 at 16:06
  • @Dante and it worked? The error disappeared? Apr 23, 2017 at 7:39
  • @AlikElzin-kilaka After a fresh installation of Ubuntu 16.04.2, the first thing I did was upgrading my system from the main repository. After that I installed nvidia-375 driver and finally I installed any other applications I needed. But after the installation of each application I get the error mentioned in my question. So the error didn't disappear. On the contrary, it started to happen after upgrading.
    – Dante
    Apr 30, 2017 at 11:14
  • update+upgrade didn't solve the issue for me either :( May 8, 2017 at 13:30
  • It did work for me (installing sketch). So I removed sketch, did an update+upgrade, and reinstall sketch Jun 28, 2017 at 9:04
0

I had the same issue and ended up getting through it; it had worked before. I have Cuda 8.0 and Tensorflow 1.3 on Ubuntu 16.04.

This is how I resolved the issue. First,

sudo apt-get update

sudo apt-get upgrade

Then,

sudo ldconfig /usr/local/cuda/lib64

It works now. The execution order matters.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .