我试图获取 wine,但每次我这样做时都会出现此错误
sudo apt-get install winehq-staging
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-staging : Depends: wine-staging (= 6.17~focal-1)
E: Unable to correct problems, you have held broken packages.
我在使用 Kubuntu 20.04!
答案1
这实际上是由于 wine ppa 没有新版本的 libvkd3d 造成的。答案是只需等待一段时间,他们最终会修复它。您可以同时使用 winehq-stable。
编辑:似乎他们已经意识到了这个问题https://forum.winehq.org/viewtopic.php?f=8&t=35655 编辑 2:他们似乎现在正在更新 ppa!
编辑 3:运行 apt clean 和 apt update 并重试,它有效!
答案2
您需要添加葡萄酒储藏室:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt update
sudo apt install --install-recommends winehq-staging