软件包依赖问题,存在损坏的软件包,但没有列出需要修复的软件包

软件包依赖问题,存在损坏的软件包,但没有列出需要修复的软件包

我正在尝试在 Ubuntu 15.04 上安装 wine,我之前曾使用它,但我认为 32 位或 64 位安装出了问题,所以我尝试将其删除以重新启动。

现在我尝试再次安装它,但运行apt-get install wine

root@pc-ubuntu:/home/dav# 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`

所以我尝试修复损坏的软件包apt-get install -f

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.`

我尝试过删除和添加 PPA,也尝试过这里答案中指出的许多其他命令添加 PPA 后如何解决未满足的依赖关系? 但它们都不起作用。我被困住了,请提出任何建议来解决这个问题,因为我想在尝试从源代码构建最新的 wine 1.8 之前对其进行排序。谢谢

答案1

您的软件包均未损坏。wine 依赖项相互冲突。卸载现有版本的 wine(如果存在)然后安装 wine1.7(wine1.7 不会出现此类问题)

更新: 要在你的机箱上安装 wine 1.7,请在你的终端中输入以下命令:

sudo apt-add-repository ppa:ubuntu-wine/ppa

sudo apt-get update

sudo apt-get install wine1.7

相关内容