snap-revision: 213
arch: x86
brand: AMD Ryzen 9 3900X 12-Core Processor
features:
- aes
- sse4_1
- sse4_2
- avx
- avx2
name: Ubuntu
version: 21.10 (Impish Indri)
snap-based: true
kernel:
version: Linux version 5.13.0-20-generic (buildd@lgw01-amd64-013) (gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.37) #20-Ubuntu SMP Fri Oct 15 14:21:35 UTC 2021
binder: false
ashmem: true
graphics:
vendor: n/a ## Should be NVIDIA
version: n/a
extensions: []
gles2:
vendor: n/a ## Should be NVIDIA
vendor: n/a
extensions: []
Please describe your problem:
I am on Ubuntu 21.10 and wanted to run Anbox after my try-out with Waydroid failed. I reverted back to my X11 session due to ongoing GBM issues with the NVIDIA drivers, but I have not removed nvidia-drm.modeset=1
from my kernel arguments yet.
However, although binder: false
is stated above, I do have:
find /dev -name "binder*"
/dev/binder-control
/dev/binderfs
/dev/binderfs/binder-control
Trying to directly launch the App Manager results in the "Starting" screen to stick around for a good minute with a message saying that the application manager hasn't started yet showing up after the application quits. After trying to find logs of it and browsing Github, I found out that people were running anbox session-manager
in a separate terminal window prior to starting an application. Well, I tried that, and found this:
~$ anbox session-manager
Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)]
[ 2021-11-06 19:56:48] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
Odd, isn't it? I looked at my libc version and sure enough, it's actually a whole version newer:
~$ dpkg -l | grep -i "gnu c library"
ii libc-bin 2.34-0ubuntu3 amd64 GNU C Library: Binaries
ii libc-dev-bin 2.34-0ubuntu3 amd64 GNU C Library: Development binaries
ii libc6:amd64 2.34-0ubuntu3 amd64 GNU C Library: Shared libraries
ii libc6:i386 2.34-0ubuntu3 i386 GNU C Library: Shared libraries
ii libc6-dbg:amd64 2.34-0ubuntu3 amd64 GNU C Library: detached debugging symbols
ii libc6-dev:amd64 2.34-0ubuntu3 amd64 GNU C Library: Development Libraries and Header Files
ii libc6-i386 2.34-0ubuntu3 amd64 GNU C Library: 32-bit shared libraries for AMD64
I am not well experienced with snap just yet, so I had no idea how I could force it to use a different library version - because maybe there is an "internal" dependency that is causing issues? It shouldn't, but who knows.
What were you expecting?:
I was expecting to see the application manager so I could play around with it.
Additional info:
None - wish I had any... I am just straight up lost and confused, really. ^^;
I have this issue too. Ubuntu 21.10, glibc 2.34, fails to open libEGL because glibc isn't 2.33
Might want to make the app look for glibc >= 2.33, rather than = 2.33
Same issue, Ubuntu 21.10 Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)] [ 2021-11-25 18:22:43] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
I'm tempted to say this has the same solution as #1943
Same issue, Ubuntu 21.10 Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)] [ 2021-11-25 18:22:43] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
I'm tempted to say this has the same solution as #1943
It's not. I tried using the command from the service file anyway, just in case.
$ EGL_PLATFORM=wayland anbox session-manager Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)] [ 2021-11-26 01:52:36] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
$ EGL_PLATFORM=x11 anbox session-manager Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)] [ 2021-11-26 01:52:43] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
It's complaining because I have a newer version of glibc, which I obviously can't downgrade or I could break my whole system.
Why do I think that's relevant? Simple. If the version that supposedly doesn't complain when 2.34 is installed is newer than the release, then of course the release is going to complain. I may not be a git expert, but it's common sense that older versions don't have features that weren't released yet.
Or if you're asking why I think that's the version that gets installed, it says so when I install it or tell it to print the version.
Never mind. It turns out the version ISN'T relevant. Just finally got the master branch to build, and it's still complaining.
Built with 2.34, it still looks for 2.33
Don't know what to tell you. I clone the latest, I run snapcraft, once I install it, session-manager is looking for specifically glibc 2.33 and won't take any newer. I try building as a non-snap, can't even get the container manager to work. I did find only one snap dependency that uses libEGL, Swiftshader, so I tried changing the version that it checks out, but if I go too new, snapcraft fails, looking for instructions for git-hooks. I take out sed -i '/git-hooks/d' .gitmodules
and then it tries to connect to the git-hooks repository, which is sealed off by Google. I try leaving in sed and adding rm -rf third_party/git-hooks
and it acts like I didn't even add rm to the script, looking for instructions for git-hooks when it runs git submodule update --init --recursive
So then I found the latest swiftshader that didn't have an entry for git-hooks, changed the checkout line, and it's still looking for 2.33
I can't find any reference to 2.33 anywhere, it just complains when it loads libEGL, which I'm starting to think is because it's pulling it from swiftshader, but if I can't get the non-snap to work, that's gonna be hard to prove.
i mean the latest is clearly not doing what it is suppose too and uh if swiftshader is the cultprit, you can disable it lol. swiftshader has nothing to do with snaps :P
hate to say PRTM but https://docs.anbox.io/userguide/advanced/software_rendering.html :P
And I know this sounds childish, but if I get the non-snap to work and it turns out swiftshader was the culprit, this is why snaps suck.
I can get the non-snap to "work" as in it launches, but the window is all messed up and mouse input doesn't work.
Same issue in 21.10.
rayray@puter:~ $ anbox system-info
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version ``GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)]
version: local-ad377ff
snap-revision: 213
arch: x86
brand: AMD Ryzen 7 3700X 8-Core Processor
features:
- aes
- sse4_1
- sse4_2
- avx
- avx2
name: Ubuntu
version: 21.10 (Impish Indri)
snap-based: true
kernel:
version: Linux version 5.13.0-25-generic (buildd@lgw01-amd64-047) (gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.37) #26-Ubuntu SMP Fri Jan 7 15:48:31 UTC 2022
binder: true
ashmem: true
graphics:
vendor: n/a
version: n/a
extensions: []
gles2:
vendor: n/a
vendor: n/a
extensions: []
I got around the "binder: false" issue with mkdir /dev/binder ; mount -t binder binder /dev/binder
rayray@puter:~ $ anbox session-manager
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)]
[ 2022-01-12 21:57:18] [daemon.cpp:61@Run] Failed to initialize OpenGL **renderer`**
I'm also getting this issue on Pop!_OS 21.10 (which is essentially Ubuntu 21.10)
Using a kernal compatible fork of the anbox modules. not sure if thats relevant.
system info
(base) jc@fharmr:~$ anbox system-info
Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)]
version: local-ad377ff
snap-revision: 213
arch: x86
brand: Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
features:
- aes
- sse4_1
- sse4_2
- avx
- avx2
name: Pop!_OS
version: 21.10
snap-based: true
kernel:
version: Linux version 5.15.11-76051511-generic ([email protected]) (gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.37) #202112220937~1640185481~21.10~b3a2c21 SMP Wed Dec 22 15:41:49 U
binder: true
ashmem: true
graphics:
vendor: n/a
version: n/a
extensions: []
gles2:
vendor: n/a
vendor: n/a
extensions: []`
Session Manager
(base) jc@fharmr:~$ anbox session-manager`
Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)]`
[ 2022-01-20 22:58:21] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
there is a workaround linked in #1260
No, this doesn't help on Ubuntu 22.04 with NVIDIA 510 drivers. anbox-session-manager
cannot launch on my computer.
Output of systemctl --user status anbox-session-manager
:
4月 30 17:06:12 Legion-5 systemd[1923]: Started Anbox Session Manager.
4月 30 17:06:12 Legion-5 systemd[1923]: anbox-session-manager.service: Main process exited, code=exited, status=1/FAILURE
4月 30 17:06:12 Legion-5 systemd[1923]: anbox-session-manager.service: Failed with result 'exit-code'.
No, this doesn't help on Ubuntu 22.04 with NVIDIA 510 drivers. anbox-session-manager
cannot launch on my computer.
Just chiming in that I have the exact same issue on Pop!_OS 22.04 after attempting the #1260 workaround.
May 01 15:14:13 turbopenguin systemd[2489]: Started Anbox Session Manager.
May 01 15:14:14 turbopenguin systemd[2489]: anbox-session-manager.service: Main process exited, code=exited, status=1/FAILURE
May 01 15:14:14 turbopenguin systemd[2489]: anbox-session-manager.service: Failed with result 'exit-code'.
I'll add that my libc6
version is 2.35-0ubuntu3
@Fuseteam Apologies for the late reply.
Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)]
[ 2022-05-05 16:15:09] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
yeowch uh yeah that won't be solved with the systemd service of mine
but for once i do see where it's coming from hmmm
the weird part is i don't have this issue on ubuntu tho 🤔
@Fuseteam I tried the same #1260 . Here's my status:
@ubuntu:~$ systemctl --user status anbox-session-manager
× anbox-session-manager.service - Anbox Session Manager
Loaded: loaded (/home/greg/.config/systemd/user/anbox-session-manager.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-05-25 11:24:48 EDT; 14min ago
Process: 5395 ExecStart=/snap/bin/anbox session-manager (code=exited, status=1/FAILURE)
Main PID: 5395 (code=exited, status=1/FAILURE)
CPU: 41ms
May 25 11:24:47 ubuntu systemd[2246]: Started Anbox Session Manager.
May 25 11:24:48 ubuntu systemd[2246]: anbox-session-manager.service: Main process exited, code=exited, status=1/FAILURE
May 25 11:24:48 ubuntu systemd[2246]: anbox-session-manager.service: Failed with result 'exit-code'.
@RustyOldMan can you run anbox session-manager
directly?
I get the same fault when I do. I forgot to mention, I am running Ubuntu 22.10.
Anbox use to work until Ubuntu updates. I think the last version that I recall was 19.04.
@RustyOldMan what do you mean "same fault"? the output of the command is important to see the cause of the failure
@ubuntu:~$ anbox session-manager
Failed to open libEGL.so.1: [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /var/lib/snapd/lib/gl/libEGL.so.1)]
[ 2022-05-26 13:17:31] [daemon.cpp:61@Run] Failed to initialize OpenGL renderer
As I stated,same fault...."cannot initialize OpenGL" even though I am using a later version of GLIBC.
Does Anbox hold to a particular version of GLIBC and not allow updated versions?
@ubuntu:~$ ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3) 2.35
@RustyOldMan version
GLIBC_2.33' not found ` this won't be solved by my service file, i must've misread when i posted the link to that workaround in this thread
i've now deleted it, i do not know, however, why you guys have this issue on Ubuntu at all. i am now on ubuntu 22.04 and anbox works just fine
for completeness:
i used the snap on the edge channel with the above referenced workaround
bingoHua, bsdz, bdagdeviren, ilia-rr, AdisonCavani, SZooo, foloinfo, eddy-geek, Uplink03, homedry, and 18 more reacted with thumbs up emoji
paulomp90, SZooo, homedry, asdhuman-dev, FindHao, leodutra, and Rc561U reacted with hooray emoji
sakurawald reacted with heart emoji
alirezadigi, rguillermo, homedry, asdhuman-dev, and leodutra reacted with rocket emoji
All reactions
I had the same issue, but I resolved it with this command:
sudo snap refresh --devmode --edge anbox
Thanks so much 😄
if you found this issue while compiling any node.js project, just update the node version to v20.x.x
will solve the problem.
@RustyOldMan can you run anbox session-manager
directly?
anbox session-manager
command output:
[ 2023-11-03 05:10:10] [session_manager.cpp:149@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded