Ubuntu_Ubuntu 12.04下安装wine后出现问题总结

问题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相关的内容

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值