Ubuntu_Ubuntu 12.04下安裝wine後出現問題總結

來源:互聯網
上載者:User

問題1終端執行如下命令:
sudo apt-get install --reinstall compiz-plugins-default compiz-gnome compiz unity-2d-shell unity-2d-common libunity-2d-private0 zenity zenity-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 compiz : Depends: compiz-core (>= 1:0.9.7.12-0ubuntu2) but 1:0.9.7.2-0ubuntu4 is to be installed
 compiz-gnome : Depends: libdecoration0 (>= 1:0.9.7.8-0ubuntu1.3) but 1:0.9.7.2-0ubuntu4 is to be installed
 compiz-plugins-default : Depends: compiz-core (= 1:0.9.7.12-0ubuntu2) but 1:0.9.7.2-0ubuntu4 is to be installed
                          Depends: libdecoration0 (= 1:0.9.7.12-0ubuntu2) but 1:0.9.7.2-0ubuntu4 is to be installed
 libunity-2d-private0 : Depends: libgeis1 (>= 1.0.8) but it is not going to be installed
 unity-2d-panel : Depends: libunity-2d-private0 (= 5.8.0-0ubuntu1) but 5.14.0-0ubuntu1 is to be installed
                  Depends: unity-2d-common (= 5.8.0-0ubuntu1) but 5.14.0-0ubuntu1 is to be installed
 unity-2d-spread : Depends: libunity-2d-private0 (= 5.8.0-0ubuntu1) but 5.14.0-0ubuntu1 is to be installed
                   Depends: unity-2d-common (= 5.8.0-0ubuntu1) but 5.14.0-0ubuntu1 is to be installed
 wine1.5 : Depends: wine1.5-i386 (= 1.5.21-0ubuntu1)
           Recommends: ttf-mscorefonts-installer but it is not going to be installed
           Recommends: ttf-umefont but it is not going to be installed
           Recommends: ttf-unfonts-core but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

解決方案:
終端執行命令: sudo gedit /var/lib/dpkg/status 直接刪除跟wine相關的package
問題2:
sudo: dpkg: command not found
問題3:
執行命令: sudo apt-cache policy wine
出現結果如下:
wine:
  Installed: (none)
  Candidate: 1.6-0ubuntu1~ppa1
  Version table:
     1.6-0ubuntu1~ppa1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ precise/main i386 Packages
     1.4-0ubuntu4.1 0
        500 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe i386 Packages
     1.4-0ubuntu4 0
        500 http://cn.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
問題4:
終端執行ls -la /usr/bin/dpkg
執行結果:ls: cannot access /usr/bin/dpkg: No such file or directory
解決方案: 下載dpkg,然後安裝
問題5:
出錯提示: Items cannot be installed or removed until the package catalog is repaired.Do you want to repair it now?
解決方案:
  a)Try running the command which apt is suggesting i.e. 'apt-get -f install'.
   Try enabling multiverse and universe repositories from /etc/apt/sources.list(Its a good idea to backup the file first).
   Then run "sudo rm -rf /var/lib/apt/lists/*" , "sudo apt-get update" and then "sudo apt-get upgrade".
  b) t seems your actual package catalog is fine, so I'm assuming the Software Center app-install cache is corrupted. Try deleting it with the following command:

   rm -r ~/.cache/software-center

問題5:

Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)

解決方案:

a)

mkdir /tmp/dpkg
cd /tmp/dpkg
wget http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.15.5.6ubuntu4_i386.deb
ar x dpkg*.deb data.tar.gz
tar xfvz data.tar.gz ./usr/bin/dpkg
sudo cp ./usr/bin/dpkg /usr/bin/
sudo apt-get update
sudo apt-get install --reinstall dpkg

b) 終端執行命令: sudo gedit /var/lib/dpkg/status 直接刪除package: dpkg

出現package損壞卻無法修複的問題,請開啟終端解決方案:執行命令: sudo gedit /var/lib/dpkg/status 然後刪除跟損壞的package相關的內容

然後執行sudo apt-get update ,sudo apt-get upgrade安裝缺少的包

問題6:

dpkg: parse error, in file '/var/lib/dpkg/status' near line 25062 package 'grub-pc':
 duplicate value for user-defined field `Homepage'
E: Sub-process /usr/bin/dpkg returned an error code (2)
解決方案:開啟終端執行命令: sudo gedit /var/lib/dpkg/status 然後刪除grub-pc的package相關的內容

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.