安装 wine 稳定版本时出错

安装 wine 稳定版本时出错

我在尝试安装 wine 时收到以下错误:

sudo apt-get 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 (= 3.0.0~xenial)
E: Unable to correct problems, you have held broken packages.

任何想法 ?

答案1

您可以使用 cli 中的代码进行测试:

  1. sudo dpkg --add-architecture i386
  2. wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

    Ubuntu 19.10:

  3. sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/eoan main'

    Ubuntu 18.04:

    sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/bionic main'

sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

  1. sudo apt update

  2. sudo apt install --install-recommends winehq-stable

如果出现任何错误:

  1. sudo apt install aptitude

  2. sudo aptitude install winehq-stable

相关内容