Wine:如何修复持有的破损包裹?

Ced*_*Ced 5 wine software-installation 18.04

我按照WineHQ Wiki来安装 WINE,所以我输入了以下所有行:

sudo dpkg --add-architecture i386 
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main' 
sudo apt update
Run Code Online (Sandbox Code Playgroud)

然后在键入时:

sudo apt install --install-recommends winehq-stable
Run Code Online (Sandbox Code Playgroud)

图像包

为了获得Stable branch. 我有以下输出:

sudo apt install --install-recommends winehq-stable
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-stable : Depends: wine-stable (= 4.0~trusty)
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

请问是什么意思?

编辑:我已经尝试运行

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

但它不起作用。

编辑:添加软件源:
软件来源

tat*_*tsu 5

在我看来,你的问题是你正在尝试将 Cosmic 源与 Bionic 一起使用: https: //wiki.ubuntu.com/Releases

跑步 :

sudo apt-add-repository --remove 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
sudo apt update
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt update
sudo apt install --install-recommends winehq-stable
Run Code Online (Sandbox Code Playgroud)

同样,作为具有使用经验的 wine 的长期用户,最好的 wine 体验来自于让其他程序为您配置和使用它,例如 EG SteamLutris。虽然两者都旨在用于运行专门的游戏应用程序,但我已经成功地将它们用于非游戏应用程序。你也许应该看一下。

  • 好奇,我仍然有同样的错误:“E:无法纠正问题,您持有损坏的包裹。” (6认同)