我正在使用 Ubuntu 18.04 .. 尝试安装 apt 时使用 apt 和 synaptic 说我已经损坏了软件包,而 synaptic 想要卸载我用来安装 wine 的程序,这是安装 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:
winehq-devel : Depends: wine-devel (= 4.2~bionic)
E: Unable to correct problems, you have held broken packages.
问题来了,因为我需要卸载然后重新安装 wine 用于其他目的,这不是无法纠正问题的重复,因为我没有更新 Ubuntu ,所以你持有损坏的软件包。它本身的问题来自必须重新安装wine而不是更新ubuntu
在终端中,首先尝试“sudo apt install -f”来修复损坏的软件包。
之后,以常规方式安装 wine 应该可以正常工作。
我不知道为什么,但是在我
winetricks
通过apt
安装之后安装wine-devel
就好了。不知道为什么它有效,但它确实有效。