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

版权声明:东成西就 发表于 2020-10-16 17:12:29。
转载请注明:Debian10/9 安装 Wine 5 | 云知道

暂无评论

暂无评论...