protonscr

Steam failed to find libGL.so.1 on Ubuntu 16.04 (cuda 10.1)

steamopen NVIDIA driversDistro Family: Ubuntu
ValveSoftware/steam-for-linux#6118 · opened 2019-03-01 by donaldsmith2060 · updated 2020-04-23 · 20 comments · github
Ddonaldsmith2060 2019-03-01 github
  • Distribution (e.g. Ubuntu): Ubuntu 16.04
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

Used the nvidia cuda deb repository to upgrade from nvidia-410 to nvidia-418. Now steam can't find 32 bit libgl, have re-installed both steam and nvidia-drivers multiple times

Running Steam on ubuntu 16.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Error: You are missing the following 32-bit libraries, and Steam may not run:
libGL.so.1
Installing breakpad exception handler for appid(steam)/version(1550534751)
Installing breakpad exception handler for appid(steam)/version(1550534751)
Installing breakpad exception handler for appid(steam)/version(1550534751)

Failed to load steamui.so - dlerror(): libGL.so.1: wrong ELF class: ELFCLASS64
Installing breakpad exception handler for appid(steam)/version(1550534751)
Installing breakpad exception handler for appid(steam)/version(1550534751)
[2019-03-01 13:25:29] Startup - updater built Feb 18 2019 22:08:53
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2019-03-01 13:25:29] Checking for update on startup
[2019-03-01 13:25:29] Checking for available updates...
[2019-03-01 13:25:29] Downloading manifest: client-download.steampowered.com/client/steam_client_ubuntu12
[2019-03-01 13:25:29] Download skipped: /client/steam_client_ubuntu12 version 1550534751, installed version 1550534751
[2019-03-01 13:25:29] Nothing to do
[2019-03-01 13:25:29] Verifying installation...
[2019-03-01 13:25:29] Performing checksum verification of executable files
[2019-03-01 13:25:29] Verification complete
[2019-03-01 13:25:35] Shutdown

Kkisak-valve maintainer 2019-03-01 github

Hello @donaldsmith2060, this issue is already being tracked at #5778.

You may have better luck with the .run installer instead of the .deb. Closing as a duplicate.

Kkisak-valve maintainer 2019-03-01 github
Kkisak-valve maintainer 2019-03-01 github

~Can you check if you have libgl1-mesa-glx:i386 with something like apt policy libgl1-mesa-glx:i386?~

Ddonaldsmith2060 2019-03-01 github

libgl1-mesa-glx:i386:
Installed: 18.0.5-0ubuntu0~16.04.1
Candidate: 18.0.5-0ubuntu0~16.04.1
Version table:
*** 18.0.5-0ubuntu0~16.04.1 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
100 /var/lib/dpkg/status
11.2.0-1ubuntu2 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages

Kkisak-valve maintainer 2019-03-01 github

Maybe give sudo update-alternatives --config i386-linux-gnu_gl_conf a try and see if it gives any useful options. (source)

Ddonaldsmith2060 2019-03-01 github

Ignore the line about the manual change, that was me trying to force
things, but here's the output (Note no lib32)

sudo update-alternatives --config i386-linux-gnu_gl_conf
update-alternatives: warning: /etc/alternatives/i386-linux-gnu_gl_conf has
been changed (manually or by a script); switching to manual updates only
There are 3 choices for the alternative i386-linux-gnu_gl_conf (providing
/etc/ld.so.conf.d/i386-linux-gnu_GL.conf).

Selection Path Priority Status

0 /usr/lib/nvidia-418/alt_ld.so.conf 8604 auto
mode
1 /usr/lib/i386-linux-gnu/mesa/ld.so.conf 500 manual
mode
2 /usr/lib/nvidia-418-prime/alt_ld.so.conf 8603 manual
mode
3 /usr/lib/nvidia-418/alt_ld.so.conf 8604 manual
mode

Press to keep the current choice[*], or type selection number: ^C

On Fri, Mar 1, 2019 at 2:47 PM kisak-valve [email protected] wrote:

Maybe give sudo update-alternatives --config i386-linux-gnu_gl_conf a try
and see if it gives any useful options. (source
https://askubuntu.com/questions/257897/error-loading-libgl-so-1)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ValveSoftware/steam-for-linux/issues/6118#issuecomment-468837816,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0WPeUjl_0duuLiXqC0p4wPfTPFyEvlks5vSa4UgaJpZM4bZ2DP
.

Xxmlyqing00 2019-03-01 github

Haha, so many people encountered this issue.

Ddonaldsmith2060 2019-03-14 github

any update on this?

WWorkingDevel 2019-03-18 github

Any update on this?
Facing the same issue with LinuxMint19 64bit and nvidia-418 (via PPA: http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu).
Version 418 seems to be necessary if you have kernel 5.x (installed via ukuu) otherwise dkms compile fails.

Kkisak-valve maintainer 2019-03-18 github

Hello @WorkingDevel, for that PPA and your system which is based on Ubuntu 18.04, check that you have libnvidia-gl-418:i386 with something like apt policy libnvidia-gl-418:i386 and install it if you don't have it to get nvidia's 32 bit userspace driver.

Ddonaldsmith2060 2019-03-25 github

upgraded to 418.40.4 and it's still an issue

WWorkingDevel 2019-03-31 github

@kisak-valve Thanks! That worked.

?ghost 2019-08-16 github

@kisak-valve thanks! that worked for me too.

Jjblasz 2019-10-22 github

Definitely doesnt work for me. It marks cuda packages as autoremovable, and consequently conflicts with existing driver.

WWilliamTambellini 2020-01-04 github

What is sure is that nvidia screwed up with 418.87 :
$ ldconfig -p | grep libGL.so
libGL.so.1 (libc6,x86-64) => /usr/lib32/nvidia-418/libGL.so.1
libGL.so.1 (libc6,x86-64) => /usr/lib32/libGL.so.1
libGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-418/libGL.so.1
libGL.so.1 (libc6,x86-64) => /lib32/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib32/nvidia-418/libGL.so
libGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so
libGL.so (libc6,x86-64) => /usr/lib/nvidia-418/libGL.so
libGL.so (libc6,x86-64) => /lib32/libGL.so
see the lib in lib32 is the 64b lib, not the 32b.

WWilliamTambellini 2020-01-04 github

After upgrading to 440 :
$ ldconfig -p | grep libGL.so
libGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-440/libGL.so.1
libGL.so.1 (libc6) => /usr/lib32/nvidia-440/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so
libGL.so (libc6,x86-64) => /usr/lib/nvidia-440/libGL.so
libGL.so (libc6) => /usr/lib32/nvidia-440/libGL.so

DDzejkop 2020-01-19 github

Recently had this on Linux Mint 18.3

with nvidia driver nvidia-430. Copying all the libs from /usr/lib32/nvidia-430/ one directory up helped.

Ggamesm 2020-04-09 github

Recently had this on Linux Mint 18.3

with nvidia driver nvidia-430. Copying all the libs from /usr/lib32/nvidia-430/ one directory up helped.

Or you can add that directory into /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf. Mine now looks like,

/usr/lib/nvidia-430
/usr/lib32/nvidia-430
/usr/lib32

Then run
sudo ldconfig

Aalexabunny 2020-04-11 github

@gamesm after reading through a ton of threads your suggestion worked for me and was incredibly simple. Thanks a bunch!

Rrobotnikthingy 2020-04-23 github

@gamesm
Thanks for posting this, after an hour of searching finally found what worked!