Debian10/9 安装 Wine 5

 网上搜了一堆都是 4 的安装教程 5 安装都会失败.会提示下面错误

The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 5.0.1~buster)
E: Unable to correct problems, you have held broken packages.

下面是亲测可行的 wine5 的安装教程

#添加32位支持
sudo dpkg –add-architecture i386

#更新系统 安装依赖
sudo apt update
sudo apt -y install gnupg2 software-properties-common
wget -qO – https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/

Debian 10:

wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add –
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

Debian 9:

wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_9.0/Release.key | sudo apt-key add –
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_9.0 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

#安装wine 稳定版本
sudo apt update
sudo apt install –install-recommends winehq-stable

//安装其他版本
sudo apt install –install-recommends winehq-devel
sudo apt install winehq-staging

查看版本
$ wine –version
wine-5.0

查看帮助
$ wine –help

运行例子:
$ cd ~/Downloads
$ wget https://notepad-plus-plus.org/repository/7.x/7.7/npp.7.7.Installer.exe
$ wine ./npp.7.7.Installer.exe

没有评论 to “Debian10/9 安装 Wine 5”

留下评论:

昵称(必须):
邮箱地址 (不会被公开) (必须):
站点
评论 (必须)
XHTML: 您可以使用这些标记: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>