![无法安装 wine 和 playonlinux](https://linux22.com/image/66711/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20wine%20%E5%92%8C%20playonlinux.png)
我在基本操作系统 Freya。
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
E: Unable to correct problems, you have held broken packages.
和:
sudo apt-get install playonlinux
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:
playonlinux : Depends: wine or
wine-unstable but it is not installable
E: Unable to correct problems, you have held broken packages.
虽然所有 PPA 均已禁用且 Ubuntu 存储库已启用:
否则,包没有任何问题:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
按照以下指示后阿库本图,
sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
所以,这里没有失败。
但最初的错误仍然存在于终端中。
Synaptic 中发生的事情是不同的!当尝试安装playonlinux
要删除的软件包时,可以说包括我的所有系统。那会彻底破坏系统。列表太长,无法在此发布。
尝试安装时wine
,似乎可以
但这与上面发布的终端输出相矛盾sudo apt-get install wine
,所有这些对我来说看起来都很可疑。
更新
尝试wine
在 Synaptic 中安装,实际上不起作用:一旦选择安装,软件包wine
就会被标记为损坏,并且一些未提及的软件包会被标记为损坏。
如何识别破损包裹?它们是否有可能被表示为损坏是一个错误?
答案1
主要思想是使用aptitude
及其更大的选项。
答案如下这个在 ubuntu 论坛上。
/etc/apt/sources.list
通过将 [arch=amd64,i386] 添加到 deb 行来支持多架构:
deb [arch=amd64,i386] http://fr.archive.ubuntu.com/ubuntu/ trusty universe
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo dpkg --add-architecture i386
sudo apt-get update
数据库更新现在显示要加载单独的 amd64 和 i386 存储库。
接下来我切换到aptitude
,因为有更复杂的依赖解算器:
sudo apt-get install aptitude
sudo aptitude --full-resolver -f install wine1.7
完整详细信息:http://pastebin.com/Z9Ww11SU
简而言之,我做了什么:
- aptitude建议了一个不会安装wine1.7的解决方案,首先选择的是(
20
) - 这个解决方案被拒绝了
r 20
——对我来说这有点复杂,我只是复制了其他答案中的命令:首先选择20
而不是 YES 或 NO;然后r 20
(拒绝删除 Wine 1.7); - 然后
n
(似乎除非你选择Y
YES,否则aptitude --full-resolver
每次决定后都会给你新的选择;我想在这种情况下是 NO,因为它说 Wine 的“依赖关系未解决”); - 下一步提供了很好的解决方案:安装 Wine 并降级 14 个软件包:
ibasn1-8-heimdal libgphoto2-6 libgphoto2-port10 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal liblcms2-2 libroken18-heimdal libsane libsane-common libwind0-heimdal
所以,最后一项是
Y
YES,Wine 1.7 已安装。之后,安装
playonlinux
就没有问题了:
The following NEW packages will be installed: libwxgtk-media2.8-0{a} mesa-utils{a} playonlinux python-wxgtk2.8{a} python-wxversion{a} 0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.