ubuntu qq

如果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

這樣就應該可以了


常遇到QQ圖標不能點擊,執行下面腳本重啓後可修復:

ps -ef | grep tm2013 | awk '{print $2}' | xargs kill -9
nohup tm2013 >/dev/null 2>&1 &



發佈了45 篇原創文章 · 獲贊 20 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章