如何在Ubuntu 18.04/Linux Mint19上安装Wine 5
时间:2020-02-23 14:38:53 来源:igfitidea点击:
本教程将带我们完成在Ubuntu 18.04/Linux Mint 19上安装Wine 5的步骤。
对于那些新的 Wine ,它是一个开源软件,允许我们在Linux上运行Windows应用程序。
在Ubuntu 18.04/Linux Mint19上安装Wine 5
由于Linux Mint19基于Ubuntu 18.04,因此在这两个分布上安装Wine 5是类似的过程。
我们的安装使用Winehq包。
我们需要删除可能已从另一个存储库安装的先前版本的 Wine ,例如WineTricks和Wine-Mono。
第1步:启用32位架构
如果我们正在运行64位系统,请支持32位应用程序的支持。
sudo dpkg --add-architecture i386
然后继续步骤2
第2步:下载并添加存储库键:
如果系统中不存在,请安装WGET。
sudo apt-get update sudo apt-get -y install software-properties-common wget
然后下载并添加存储库密钥:
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add
我们应该在输出中收到"确定"。
第3步:添加 Wine 存储库
导入密钥后,继续添加存储库。
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/bionic main'
还添加SDL2库存储库:
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
更新APT索引:
sudo apt-get update
使用 Wine OBS存储库
如果要使用Wine Obs存储库,请将其添加如下。
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | sudo apt-key add - echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list sudo apt update
第4步:在Ubuntu 18.04/Linux Mint19上安装Wine 5
最后一步是Ubuntu 18.04/Linux Mint19上的Wine 5的实际安装。
sudo apt-get update sudo apt install --install-recommends winehq-stable
安装了包后,一旦 Wine 安装完成,请检查版本:
$wine --version wine-5.0
第5步:在Debian上使用 Wine
用于 Wine 的基本使用,检查帮助页面。
$wine --help
以下示例用于在Linux上运行Notepad ++编辑器。
$cd ~/Downloads $wget https://notepad-plus-plus.org/repository/7.x/7.7/npp.7.7.Installer.exe $wine ./npp.7.7.Installer.exe