我正在使用 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
答案1
在终端中,首先尝试“sudo apt install -f”来修复损坏的软件包。
此后,以常规方式安装 wine 就可以正常工作。
答案2
我不知道为什么,但在我winetricks
通过安装后apt
,安装wine-devel
就正常了。不知道为什么它能工作,但确实如此。