arch-linux – libx11.so.6的问题:未定义的符号:xcb_wait_for_reply64

我有一个为期一天的拱形系统的问题.我不小心将/usr/lib/libX11.so.6从/usr/lib中移出,然后把它放回去.但是现在,由于这个原因,我无法启动Android Studio:

/usr/lib / jvm / java-8-jdk / bin / java:符号查找错误:/usr/lib/libX11.so.6:未定义符号:xcb_wait_for_reply64

我试过了:

>重新安装/重新编译libxcb和libX11
>在Oracle的JDK和OpenJDK之间切换
>重新安装AS

什么都行不通.权限和所有权对我来说也很好:

me@laptop ~ % ls -ld /usr/lib/libX11*
lrwxrwxrwx 1 root root      19 Oct  5 00:24 /usr/lib/libX11-xcb.so -> libX11-xcb.so.1.0.0
lrwxrwxrwx 1 root root      19 Oct  5 00:24 /usr/lib/libX11-xcb.so.1 -> libX11-xcb.so.1.0.0
-rwxr-xr-x 1 root root    5968 Oct  5 00:24 /usr/lib/libX11-xcb.so.1.0.0
lrwxrwxrwx 1 root root      15 Oct  5 00:24 /usr/lib/libX11.so -> libX11.so.6.3.0
lrwxrwxrwx 1 root root      15 Oct  5 00:24 /usr/lib/libX11.so.6 -> libX11.so.6.3.0
-rwxr-xr-x 1 root root 1306096 Oct  5 00:24 /usr/lib/libX11.so.6.3.0 

me@laptop ~ % ls -ld /usr/lib/libx*
lrwxrwxrwx 1 root root       14 Oct  2 09:27 /usr/lib/libx264.so -> libx264.so.148
-rwxr-xr-x 1 root root  1027856 Oct  2 09:27 /usr/lib/libx264.so.148
lrwxrwxrwx 1 root root       13 Sep 29 09:09 /usr/lib/libx265.so -> libx265.so.95
-rwxr-xr-x 1 root root 14953136 Sep 29 09:09 /usr/lib/libx265.so.95
lrwxrwxrwx 1 root root       21 Oct  7 04:01 /usr/lib/libxatracker.so -> libxatracker.so.2.3.0
lrwxrwxrwx 1 root root       21 Oct  7 04:01 /usr/lib/libxatracker.so.2 -> libxatracker.so.2.3.0
-rwxr-xr-x 1 root root  3305176 Oct  7 04:01 /usr/lib/libxatracker.so.2.3.0
lrwxrwxrwx 1 root root       25 May 22 13:44 /usr/lib/libxcb-composite.so -> libxcb-composite.so.0.0.0
lrwxrwxrwx 1 root root       25 May 22 13:44 /usr/lib/libxcb-composite.so.0 -> libxcb-composite.so.0.0.0
-rwxr-xr-x 1 root root    10336 May 22 13:44 /usr/lib/libxcb-composite.so.0.0.0
lrwxrwxrwx 1 root root       22 May 22 13:44 /usr/lib/libxcb-damage.so -> libxcb-damage.so.0.0.0
lrwxrwxrwx 1 root root       22 May 22 13:44 /usr/lib/libxcb-damage.so.0 -> libxcb-damage.so.0.0.0
-rwxr-xr-x 1 root root    10336 May 22 13:44 /usr/lib/libxcb-damage.so.0.0.0

我在跑

me@laptop ~ % uname -a
Linux laptop 4.7.6-1-ARCH #1 SMP PREEMPT Fri Sep 30 19:28:42 CEST 2016 x86_64 GNU/Linux

关于如何解决这个问题的任何指针?非常感谢!

*编辑*

问题不是特定于java,因为genymotion也无法启动:

me@laptop ~ % genymotion
genymotion: symbol lookup error: /usr/lib/libX11.so.6: undefined symbol: xcb_wait_for_reply64

*第二次编辑*

关注@ n.st建议:

me@laptop ~ % ldd $(which genymotion) | grep libX11                                                                 
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fc3520d5000)
    libX11-xcb.so.1 => /opt/genymotion/libX11-xcb.so.1 (0x00007fc34e201000)
me@laptop ~ % sudo mv /opt/genymotion/libX11-xcb.so.1 .                                                             
[sudo] password for me: 
me@laptop ~ % genymotion
genymotion: symbol lookup error: /usr/lib/libX11.so.6: undefined symbol: xcb_wait_for_reply64
127 me@laptop ~ % ldd $(which genymotion) | grep libX11                                                               
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007feb0712d000)
    libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007feb03259000)
me@laptop ~ % ldd $(which genymotion) | grep libxcb
    libxcb-dri3.so.0 => /opt/genymotion/libxcb-dri3.so.0 (0x00007f5f354e1000)
    libxcb-present.so.0 => /opt/genymotion/libxcb-present.so.0 (0x00007f5f352de000)
    libxcb-sync.so.1 => /opt/genymotion/libxcb-sync.so.1 (0x00007f5f350d8000)
    libxcb.so.1 => /opt/genymotion/libxcb.so.1 (0x00007f5f34270000)
    libxcb-glx.so.0 => /opt/genymotion/libxcb-glx.so.0 (0x00007f5f34059000)
    libxcb-dri2.so.0 => /opt/genymotion/libxcb-dri2.so.0 (0x00007f5f33e54000)

解决方法:

我有genymotion这个问题.
只需导航到genymotion目录(cd / opt / genymotion)即可.

sudo mv libxcb.so.1 libxcb.so.1.back 

如果这没有解决你的问题呢

sudo mv libxcb.so.1.back libxcb.so.1
上一篇:RHSA-2018:3059-低危: X.org X11 安全和BUG修复更新


下一篇:QT 5.1 中如可让 QWebView 随窗口大小自动调节大小