Wine:如何修复被扣留的破损包装?

Wine:如何修复被扣留的破损包装?

我关注了葡萄酒资讯网为了安装 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

然后输入:

sudo apt install --install-recommends winehq-stable

图像包

为了获得 的包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.

请问这是什么意思?

编辑:我已经尝试运行

sudo apt-get update

但它不起作用。

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

答案1

在我看来,你的问题是你正试图将宇宙源与 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

作为 Wine 的长期用户,我也有使用经验,最好的 Wine 体验来自让其他程序为您配置和使用它,例如蒸汽卢特里斯。虽然两者都是专门用于运行游戏应用程序,但我已成功将它们用于非游戏应用程序。你应该看看。

答案2

sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu/ focal-updates main universe restricted multiverse'

sudo apt-add-repository 'deb http://security.ubuntu.com/ubuntu focal-security main universe restricted multiverse'

sudo apt update

sudo apt full-upgrade

我缺少一些存储库,这个帮我修复了它

相关内容