![Anbox 无法在 Ubuntu 18.04 上运行 - 找不到 libgtk3-nocsd.so.0](https://linux22.com/image/1158585/Anbox%20%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2018.04%20%E4%B8%8A%E8%BF%90%E8%A1%8C%20-%20%E6%89%BE%E4%B8%8D%E5%88%B0%20libgtk3-nocsd.so.0.png)
我已经安装了 Anbox,但是当我使用时anbox.appmgr
收到此消息
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded
(failed to map segment from shared object): ignored.
[ 2018-07-10 12:38:58] [daemon.cpp:59@Run] Application manager service is not running yet
我发现了一个我认为网络上的解决方案但这也不起作用,因为当我把这个命令放到我的终端时
ls -l /usr/lib/x86_64-linux-gnu/ |grep libgtk3
它返回
-rwSr--r-- 1 root root 26616 Mar 3 08:46 libgtk3-nocsd.so.0
如果我这样做
$ wl libgtk3-nocsd.so.0
我得到:
bin: /usr/bin
bin: /usr/sbin
bin: /lib/x86_64-linux-gnu
bin: /usr/lib/x86_64-linux-gnu
bin: /usr/lib
bin: /bin
bin: /sbin
bin: /etc
bin: /lib
bin: /lib64
bin: /usr/games
bin: /usr/local/bin
bin: /usr/local/sbin
bin: /usr/local/etc
bin: /usr/local/lib
bin: /usr/local/games
bin: /usr/include
bin: /usr/local
bin: /usr/share
bin: /opt/wine-stable/bin
bin: /snap/bin
man: /usr/share/man/vi
man: /usr/share/man/fr.ISO8859-1
man: /usr/share/man/pl.UTF-8
man: /usr/share/man/pl
man: /usr/share/man/ru
man: /usr/share/man/de.UTF-8
man: /usr/share/man/fi
man: /usr/share/man/sr
man: /usr/share/man/man8
man: /usr/share/man/id
man: /usr/share/man/nl
man: /usr/share/man/zh_CN
man: /usr/share/man/it
man: /usr/share/man/ko
man: /usr/share/man/es
man: /usr/share/man/fr.UTF-8
man: /usr/share/man/man1
man: /usr/share/man/tr
man: /usr/share/man/zh_TW
man: /usr/share/man/ja
man: /usr/share/man/hu
man: /usr/share/man/man7
man: /usr/share/man/man5
man: /usr/share/man/fr
man: /usr/share/man/sv
man: /usr/share/man/pt
man: /usr/share/man/pt_BR
man: /usr/share/man/man4
man: /usr/share/man/de
man: /usr/share/man/cs
man: /usr/share/man/man6
man: /usr/share/man/man3
man: /usr/share/man/da
man: /usr/share/man/man2
man: /usr/share/man/sl
man: /usr/share/info
src: /usr/src/linux-headers-4.15.0-20-generic
src: /usr/src/linux-headers-4.4.0-62
src: /usr/src/googletest
src: /usr/src/linux-headers-4.17.0-041700
src: /usr/src/anbox-1
src: /usr/src/googletest/googlemock
src: /usr/src/googletest/googletest
src: /usr/src/virtualbox-5.2.10
src: /usr/src/linux-headers-4.15.0-20
src: /usr/src/linux-headers-4.4.0-62-generic
src: /usr/src/linux-headers-4.17.0-041700-generic
libgtk3-nocsd.so: /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
或者
$ wl anbox
bin: /usr/bin
bin: /usr/sbin
bin: /lib/x86_64-linux-gnu
bin: /usr/lib/x86_64-linux-gnu
bin: /usr/lib
bin: /bin
bin: /sbin
bin: /etc
bin: /lib
bin: /lib64
bin: /usr/games
bin: /usr/local/bin
bin: /usr/local/sbin
bin: /usr/local/etc
bin: /usr/local/lib
bin: /usr/local/games
bin: /usr/include
bin: /usr/local
bin: /usr/share
bin: /opt/wine-stable/bin
bin: /snap/bin
man: /usr/share/man/vi
man: /usr/share/man/fr.ISO8859-1
man: /usr/share/man/pl.UTF-8
man: /usr/share/man/pl
man: /usr/share/man/ru
man: /usr/share/man/de.UTF-8
man: /usr/share/man/fi
man: /usr/share/man/sr
man: /usr/share/man/man8
man: /usr/share/man/id
man: /usr/share/man/nl
man: /usr/share/man/zh_CN
man: /usr/share/man/it
man: /usr/share/man/ko
man: /usr/share/man/es
man: /usr/share/man/fr.UTF-8
man: /usr/share/man/man1
man: /usr/share/man/tr
man: /usr/share/man/zh_TW
man: /usr/share/man/ja
man: /usr/share/man/hu
man: /usr/share/man/man7
man: /usr/share/man/man5
man: /usr/share/man/fr
man: /usr/share/man/sv
man: /usr/share/man/pt
man: /usr/share/man/pt_BR
man: /usr/share/man/man4
man: /usr/share/man/de
man: /usr/share/man/cs
man: /usr/share/man/man6
man: /usr/share/man/man3
man: /usr/share/man/da
man: /usr/share/man/man2
man: /usr/share/man/sl
man: /usr/share/info
src: /usr/src/linux-headers-4.15.0-20-generic
src: /usr/src/linux-headers-4.4.0-62
src: /usr/src/googletest
src: /usr/src/linux-headers-4.17.0-041700
src: /usr/src/anbox-1
src: /usr/src/googletest/googlemock
src: /usr/src/googletest/googletest
src: /usr/src/virtualbox-5.2.10
src: /usr/src/linux-headers-4.15.0-20
src: /usr/src/linux-headers-4.4.0-62-generic
src: /usr/src/linux-headers-4.17.0-041700-generic
anbox: /snap/bin/anbox.collect-bug-info /snap/bin/anbox.android-settings /snap/bin/anbox.appmgr /snap/bin/anbox
简而言之,当 Anbox 在我的系统中显示时,它似乎无法定位libgtk3-nocsd.so.0
并工作。
答案1
anbox.appmgr 没有运行的原因与以下消息无关libgtk3-nocsd.so.0。
相反,你需要确保:
必要的内核驱动程序已安装。您可以通过运行以下命令进行测试:
ls -1 /dev/{ashmem,binder}
如果缺少这些,请按照以下说明执行内核模块安装过程https://docs.anbox.io/userguide/install_kernel_modules.html
必要的 snap 容器正在运行。你可以运行以下命令进行测试:
snap services
而如果anbox.container-manager被列为非活动状态,通过以下方式启动它:
sudo snap start anbox.container-manager