after 17.10->18.4 upgrade, the system did not start due to missing libGL.so.1 and libGLESv2.so.2 files

Bug #1769137 reported by yaroslav
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

laptop: Dell XPS12
More or less a standard Ubuntu 17.10 was upgraded to 18.4
gnome-session-bin 3.28.1-0ubuntu2 could not find some libs.

After the upgrade, the system did not start with the following error and blinking screen:

May 4 14:21:02 Dell gnome-session[7085]: /usr/lib/gnome-session/gnome-session-check-accelerated-gl-helper: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
May 4 14:21:02 Dell gnome-session[7085]: gnome-session-check-accelerated: GL Helper exited with code 32512
May 4 14:21:02 Dell gnome-session[7085]: /usr/lib/gnome-session/gnome-session-check-accelerated-gles-helper: error while loading shared libraries: libGLESv2.so.2: cannot open shared object file: No such file or directory
May 4 14:21:02 Dell gnome-session[7085]: gnome-session-check-accelerated: GLES Helper exited with code 32512
May 4 14:21:02 Dell at-spi-bus-launcher[3520]: dbus-daemon[3525]: Successfully activated service 'org.a11y.atspi.Registry'

To fix the issue, I had to SSH to this laptop (I was brought to the load screen from other TTYs every 2 seconds) and make symlinks:

root@Dell:~# #ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so.1
root@Yarik-Dell:~# #ln -s /usr/lib/x86_64-linux-gnu/mesa/libGLESv2.so.2 /usr/lib/x86_64-linux-gnu/libGLESv2.so.2

missing dependency?

other info from the laptop:

root@Yarik-Dell:~# lspci | grep -i VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)

root@Dell:~# ldd /usr/lib/gnome-session/gnome-session-check-accelerated-gl-helper | egrep "libGL.so.1|libGLESv2.so.2"
 libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007ffac7ca8000)

root@Dell:~# apt-file search /usr/lib/x86_64-linux-gnu/libGL.so.1
libgl1: /usr/lib/x86_64-linux-gnu/libGL.so.1
libgl1: /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
nvidia-340: /usr/lib/x86_64-linux-gnu/libGL.so.1
root@Dell:~# apt-cache policy nvidia-340
nvidia-340:
  Installed: (none)
  Candidate: 340.106-0ubuntu3
  Version table:
     340.106-0ubuntu3 500
        500 http://at.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages
root@Dell:~# apt-cache policy libgl1
libgl1:
  Installed: (none)
  Candidate: 1.0.0-2ubuntu2
  Version table:
     1.0.0-2ubuntu2 500
        500 http://at.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-session-bin 3.28.1-0ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri May 4 14:51:33 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-06-15 (323 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: gnome-session
UpgradeStatus: Upgraded to bionic on 2018-05-04 (0 days ago)

Revision history for this message
yaroslav (fedorina) wrote :
Revision history for this message
yaroslav (fedorina) wrote :

I am not sure if this a bug and if yes, then in which package. Better to discuss first.

Changed in gnome-session (Ubuntu):
status: New → Invalid
Revision history for this message
yaroslav (fedorina) wrote :

returning to bug discussion as suggested

Revision history for this message
Engelbert Eric (ricky-ason) wrote :

I have just upgraded from 16.04, and I'm experiencing the same thing. checked the log, same error message (libGLESv2 and libGL)

Revision history for this message
Danny van den Berg (dvandenberg) wrote :

I had the same issue when upgrading from 16.04.5 to 18.04.1 LTS on a Intel NUC NUC8i3BEH model.

I used the fix that yaroslav used and it works also in my case:
ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so.1

Revision history for this message
sanyaade (sanyaade) wrote :

Yes! Same issue for my days and hair strands up

Solution: (same like Yaroslav and Danny) but my machine was a Dell 2950 server upgraded to 18.04 with Ubuntu desktop with --no-install-recommends => this was working on 16.04 before upgrade to 18.04

sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so.1

sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/libGLESv2.so.2 /usr/lib/x86_64-linux-gnu/libGLESv2.so.2

 lspci | grep -i VGA
0f:0d.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] ES1000 (rev 02)

Hope this help!

God blesses!!!

Best regards,
Sanyaade

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.