无论如何,Wine 都无法安装

无论如何,Wine 都无法安装

好吧,伙计们,事情是这样的。我使用的是 ubuntu 14.04 xfce 版本,在装有 crouton 的 Acer C270 Chromebook 上运行。这是 Ubuntu 的全新安装,没有从以前的版本升级,也没有安装过任何其他版本的 wine。

我正在尝试安装 Wine。这些是我使用过的命令以及我尝试过的所有解决方案,但结果始终相同。

(trusty)pineapplez13@localhost:~$ sudo add-apt-repository ppa:ubuntu-wine/ppa

成功添加 wine ppa

(trusty)pineapplez13@localhost:~$ sudo apt-get update

也成功

   (trusty)pineapplez13@localhost:~$ sudo apt-get install wine
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:
 wine : Depends: wine1.6 but it is not going to be installed or
                 wine1.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这就是问题所在。这似乎相当常见,所以我用 Google 搜索并找到了几个解决方案。仅安装 Wine1.7:

(trusty)pineapplez13@localhost:~$ sudo apt-get install wine1.7
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.7 : Depends: wine1.7-amd64 (= 1:1.7.26-0ubuntu1~ppa1) but it is not going to be installed
           Depends: wine1.7-i386 (= 1:1.7.26-0ubuntu1~ppa1)
           Recommends: cups-bsd
E: Unable to correct problems, you have held broken packages.

看起来我没有 i386 架构,对吧?所以我这样做:

(trusty)pineapplez13@localhost:~$ sudo dpkg --add-architecture i386
(trusty)pineapplez13@localhost:~$ 

这就是它输出的全部内容,所以看起来是成功的。所以我执行了 apt-get update。然而,再次安装 wine1.7 却返回了相同的结果。

(trusty)pineapplez13@localhost:~$ sudo apt-get install wine1.7
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.7 : Depends: wine1.7-amd64 (= 1:1.7.26-0ubuntu1~ppa1) but it is not going to be installed
           Depends: wine1.7-i386 (= 1:1.7.26-0ubuntu1~ppa1)
           Recommends: cups-bsd
E: Unable to correct problems, you have held broken packages.

所以我尝试安装 cups-bsd,但它却让我陷入了依赖关系的困境

(trusty)pineapplez13@localhost:~$ sudo apt-get install cups-bsd
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:
 cups-bsd : Depends: cups-client (= 1.7.2-0ubuntu1)
E: Unable to correct problems, you have held broken packages.
(trusty)pineapplez13@localhost:~$ sudo apt-get install cups-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
cups-client is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(trusty)pineapplez13@localhost:~$ 

我也尝试过同时安装 wine1.7 和 wine-i386

(trusty)pineapplez13@localhost:~$ sudo apt-get install wine1.7 wine1.7-i386
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.7 : Depends: wine1.7-amd64 (= 1:1.7.26-0ubuntu1~ppa1) but it is not going to be installed
           Recommends: cups-bsd
 wine1.7-i386:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
                     Depends: libglu1-mesa:i386 but it is not going to be installed or
                              libglu1:i386
                     Depends: libgphoto2-6:i386 (>= 2.5.2) but it is not going to be installed
                     Depends: libgphoto2-port10:i386 (>= 2.5.2) but it is not going to be installed
                     Depends: libgstreamer-plugins-base0.10-0:i386 (>= 0.10.22) but it is not going to be installed
                     Depends: libgstreamer0.10-0:i386 (>= 0.10.26) but it is not going to be installed
                     Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                     Depends: libpulse0:i386 (>= 1:0.99.1) but it is not going to be installed
                     Depends: libxml2:i386 (>= 2.9.0) but it is not going to be installed
                     Recommends: libasound2-plugins:i386 but it is not going to be installed
                     Recommends: libcups2:i386 but it is not going to be installed
                     Recommends: libdbus-1-3:i386 but it is not going to be installed
                     Recommends: libfontconfig1:i386 but it is not going to be installed or
                                 libfontconfig:i386
                     Recommends: libfreetype6:i386 but it is not going to be installed
                     Recommends: libgnutls26:i386 but it is not going to be installed
                     Recommends: libosmesa6:i386 but it is not going to be installed
                     Recommends: libsane:i386 but it is not going to be installed
                     Recommends: libtiff5:i386 but it is not going to be installed or
                                 libtiff4:i386 but it is not installable
                     Recommends: libxslt1.1:i386 but it is not going to be installed
                     Recommends: libxt6:i386 but it is not going to be installed
                     Recommends: p11-kit-modules:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这里它指向了一堆我显然没有的库,还指向了 dpkg 多架构的一个错误,所以我也尝试了这个修复:

(trusty)pineapplez13@localhost:~$ gksu gedit /etc/dpkg/dpkg.cfg.d/multiarch

创建一个打印的文本文件,foreign-architecture i386以便我安装 wine1.7-i386。成功更新 apt-get 后,我​​尝试安装 wine1.7-i386,结果显示:

(trusty)pineapplez13@localhost:~$ sudo apt-get install wine1.7-i386
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.7-i386:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
                     Depends: libglu1-mesa:i386 but it is not going to be installed or
                              libglu1:i386
                     Depends: libgphoto2-6:i386 (>= 2.5.2) but it is not going to be installed
                     Depends: libgphoto2-port10:i386 (>= 2.5.2) but it is not going to be installed
                     Depends: libgstreamer-plugins-base0.10-0:i386 (>= 0.10.22) but it is not going to be installed
                     Depends: libgstreamer0.10-0:i386 (>= 0.10.26) but it is not going to be installed
                     Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                     Depends: libpulse0:i386 (>= 1:0.99.1) but it is not going to be installed
                     Depends: libxml2:i386 (>= 2.9.0) but it is not going to be installed
                     Recommends: libasound2-plugins:i386 but it is not going to be installed
                     Recommends: libcups2:i386 but it is not going to be installed
                     Recommends: libdbus-1-3:i386 but it is not going to be installed
                     Recommends: libfontconfig1:i386 but it is not going to be installed or
                                 libfontconfig:i386
                     Recommends: libfreetype6:i386 but it is not going to be installed
                     Recommends: libgnutls26:i386 but it is not going to be installed
                     Recommends: libosmesa6:i386 but it is not going to be installed
                     Recommends: libsane:i386 but it is not going to be installed
                     Recommends: libtiff5:i386 but it is not going to be installed or
                                 libtiff4:i386 but it is not installable
                     Recommends: libxslt1.1:i386 but it is not going to be installed
                     Recommends: libxt6:i386 but it is not going to be installed
                     Recommends: p11-kit-modules:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

再次。编辑:我已经确认我确实支持 i386 架构,因为

sudo dpkg --print-foreign-architectures

返回 i386,所以这似乎不是问题,非常奇怪。

即使使用 apt-get 的 -f 命令也不会改变任何东西

(trusty)pineapplez13@localhost:~$ sudo apt-get install -f wine1.7
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.7 : Depends: wine1.7-amd64 (= 1:1.7.26-0ubuntu1~ppa1) but it is not going to be installed
           Depends: wine1.7-i386 (= 1:1.7.26-0ubuntu1~ppa1)
           Recommends: cups-bsd
E: Unable to correct problems, you have held broken packages. 

此外,使用 apt-get clean、apt-get autoclean 和 apt-get -f install 均会返回 0 个以任何方式修改的软件包。通过软件中心下载返回相同的结果。我尝试了似乎已上传的所有修复程序来解决这个问题,但都无济于事。这真的没有任何意义,我找不到问题所在。

编辑:我现在已经放弃安装 wine,所以我只是尝试在 32 位 linux 容器中构建它。如果我能让它正常工作,我会在这里发布我使用的步骤。

答案1

首先,使用以下命令清除系统:

apt-get update
apt-get -f install

然后删除 Wine:

apt-get remove wine wine1.6

然后仅安装软件包,取决于您的系统:amd64 或 i386

sudo apt-get install wine1.7

如果出现错误,请让我看看你这样做的输出。

相关内容