ubuntu 14.04 中找不到 libgtk-x11-2.0.so


如果ubuntu安裝的64位的,在其中安裝32位軟件時就會碰到缺失libgtk-x11-2.0.so的情況

比如用wine安裝qq時 啟動qq時就會報這樣的錯誤

error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

網上的解決方法

sudo apt-get install ia32-libs ia32-libs-gtk

但是又出現一下錯誤提示:

sudo apt-get install ia32-libs
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘ia32-libs’ has no installation candidate

於是又搜索,知道要添加以前版本的源,然后就行了

下面是添加源的方法:

方法1:

  

sudo gedit /etc/apt/sources.list

  然后在最后添加上: 

deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse

方法2:

    終端中輸入:

echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse"  >>  sudo gedit /etc/apt/sources.list 

還有其他添加本地源的方法,可以參考:http://hi.baidu.com/android4/item/6c0f962351a7ec102b0f1cac

添加完源之后

   sudo apt-get update

   sudo apt-get install ia32-libs ia32-libs-gtk

這樣就應該可以了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM