我在尝试安装 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 中的代码进行测试:
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Ubuntu 19.10:
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
sudo apt update
sudo apt install --install-recommends winehq-stable
如果出现任何错误:
sudo apt install aptitude
sudo aptitude install winehq-stable