更新

更新

wine我按照以下步骤在 Ubuntu 14.04 LTS 中安装:

add-apt-repository ppa:ubuntu-wine/ppa 
apt-get update 
apt-get install -y wine

但是,我看到以下错误消息:

The following packages have unmet dependencies:

 unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
                        Depends: libcheese7 (>= 3.0.1) but it is not going to be installed

 wine : Depends: wine1.6 but it is not going to be installed or
                 wine1.8 but it is not going to be installed

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我检查了系统后,unity-control-center发现 已经安装好了。当我尝试安装 时,也遇到了同样的错误信息wine1.6

任何帮助将不胜感激!

谢谢!

============

更新

根据 AB 的建议,输出结果如下:

lsb_release -a

LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core- 3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty

uname -a

Linux yiliang-PORTEGE-Z930 3.19.0-43-generic #49~14.04.1-Ubuntu SMP Thu Dec 31 15:44:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

apt-get install libcheese-gtk23 libcheese7

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libcheese-gtk23 is already the newest version.
libcheese7 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

apt-get install wine1.8

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 wine1.8 : Depends: wine1.8-i386 (= 1:1.8.0-0ubuntu1)
E: Unable to correct problems, you have held broken packages.

输出

apt-cache policy wine wine1.6 wine 1.8 unity-control-center libcheese-gtk23 libcheese7

很长,可以从这里

wine:
  Installed: (none)
  Candidate: 1:1.8.0-0ubuntu1
  Version table:
     1:1.8.0-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages
     1:1.6.2-0ubuntu4 0
        500 http://sg.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

wine1.6:
  Installed: (none)
  Candidate: 1:1.6.2-0ubuntu4
  Version table:
     1:1.6.2-0ubuntu4 0
        500 http://sg.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

wine1.8:
  Installed: (none)
  Candidate: 1:1.8.0-0ubuntu1
  Version table:
     1:1.8.0-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages

unity-control-center:
  Installed: 14.04.3+14.04.20150916-0ubuntu1
  Candidate: 14.04.3+14.04.20150916-0ubuntu1
  Version table:
 *** 14.04.3+14.04.20150916-0ubuntu1 0
        500 http://sg.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     14.04.3+14.04.20140410-0ubuntu1 0
        500 http://sg.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

libcheese-gtk23:
  Installed: 3.10.2-0ubuntu2
  Candidate: 3.10.2-0ubuntu2
  Version table:
 *** 3.10.2-0ubuntu2 0
        500 http://sg.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

libcheese7:
  Installed: 3.10.2-0ubuntu2
  Candidate: 3.10.2-0ubuntu2
  Version table:
 *** 3.10.2-0ubuntu2 0
        500 http://sg.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

wine1.8-i386:
  Installed: (none)
  Candidate: (none)
  Version table:

答案1

您需要在 Ubuntu 14.04 64 位上的 apt 中启用 32 位支持才能成功安装 wine:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine

答案2

您可以先尝试以下操作:

sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade

然后,

要安装 Wine,请在桌面上按“CTRL + ALT + T”打开终端,然后在终端上逐个运行以下命令。

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.8
sudo apt-get install winetricks

答案3

打开终端并逐个执行命令:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wine

希望这个命令有用

相关内容