typelib:/usr/lib/libGL.so.1:安装 AMD 驱动程序后文件太短

typelib:/usr/lib/libGL.so.1:安装 AMD 驱动程序后文件太短

我在三星笔记本电脑上运行 Xubuntu 14.04。

我今天早上安装了 AMD 专有驱动程序,如下所述:

https://www.youtube.com/watch?v=evqpassbyqA

我的 AMD 显卡第一次在游戏中表现出了前所未有的表现。

问题是切换回英特尔的卡后,某些应用程序不再运行,因为当我尝试运行它们时,我收到了类似的错误/usr/lib/libGL.so.1: file too short ,但涉及不同的文件。

如果我尝试运行 Catalyst Center,我会得到这个:amdcccle:13579):

Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported

我尝试了不同线程中推荐的不同方法,但找不到解决方案。

我尝试过这个:

     sudo apt-get install --reinstall libwebkitgtk-3.0-0

我明白了:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dkms lib32gcc1 libc6-i386 libgsoap4 libvncserver0 linux-image-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 6 450 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://fr.archive.ubuntu.com/ubuntu/ trusty/main libwebkitgtk-3.0-0 amd64 2.4.0-1ubuntu2 [6 450 kB]
Fetched 6 450 kB in 4s (1 345 kB/s)             
(Reading database ... 205548 files and directories currently installed.)
Preparing to unpack .../libwebkitgtk-3.0-0_2.4.0-1ubuntu2_amd64.deb ...
Unpacking libwebkitgtk-3.0-0:amd64 (2.4.0-1ubuntu2) over (2.4.0-1ubuntu2) ...
Setting up libwebkitgtk-3.0-0:amd64 (2.4.0-1ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
/sbin/ldconfig.real: /usr/lib/i386-linux-gnu/libOpenCL.so.1 is not a symbolic link
/sbin/ldconfig.real: File /usr/lib/libGL.so is empty, not checked.
/sbin/ldconfig.real: File /usr/lib/libGL.so.1 is empty, not checked.
/sbin/ldconfig.real: File /usr/lib/libGL.so.1.2 is empty, not checked.

我将非常感激您的帮助。

谢谢。

答案1

我在使用 AMD 驱动程序的 Ubuntu 14.04 上遇到了同样的问题:

$ sudo ldconfig |grep libOpenCL.so.1
/sbin/ldconfig.real: /usr/lib/i386-linux-gnu/libOpenCL.so.1 is not a symbolic link

所以我检查了一下:

$ locate libOpenCL.so.1| xargs du -sh    
28K /usr/lib/libOpenCL.so.1    
28K /usr/lib/fglrx/libOpenCL.so.1    
32K /usr/lib/i386-linux-gnu/libOpenCL.so.1    
36K /usr/lib/i386-linux-gnu/libOpenCL.so.1.0.0    
0   /usr/lib/pxpress/lib/libOpenCL.so.1    
0   /usr/lib/x86_64-linux-gnu/libOpenCL.so.1    
36K /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0    
32K /usr/lib32/fglrx/libOpenCL.so.1     
0   /usr/lib32/pxpress/lib/libOpenCL.so.1    

并创建相同大小的符号链接:

sudo mv /usr/lib/i386-linux-gnu/libOpenCL.so.1 /usr/lib/i386-linux-gnu/libOpenCL.so.1.bak    
sudo ln -s /usr/lib32/fglrx/libOpenCL.so.1 /usr/lib/i386-linux-gnu/libOpenCL.so.1    
sudo ldconfig   

所以我不再收到此错误

相关内容