如何在Ubuntu 20.04上安装Wine 5
时间:2020-02-23 14:38:53 来源:igfitidea点击:
Wine 5是可用于安装的最新稳定的 Wine 释放,它包含大量改进,包括但不限于:PE Format中的内置模块.Multi-Monitor Support.xaudio2 ReimplementationVulkan 1.1 Support.initial支持打印票证API的支持。
over overate 32位PowerPC架构.WINE Mono引擎更新为5.1.0,使用WPFGFX库支持。
在Ubuntu 20.04上安装Wine 5
在Ubuntu 20.04上安装 Wine 5是直接的过程,因为所有包都提供 Wine 存储库。
第1步:启用32位架构
但是在安装之前,如果在64位系统上运行,我们需要启用启用32位架构。
这是通过运行下面的命令来实现的。
sudo dpkg --add-architecture i386
第2步:下载并添加存储库键:
如果系统中不存在,请安装WGET。
sudo apt update sudo apt -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/focal main'
命令执行
Get:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease [6,257 B] Get:2 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages [54.9 kB] Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease Get:4 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages [56.4 kB] Hit:5 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:7 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Fetched 118 kB in 1s (80.5 kB/s) Reading package lists... Done
第4步:在Ubuntu 20.04 Linux上安装Wine 5
随着存储库准备好,我们可以在Ubuntu 20.04 Linux机器上安装Wine 5.
sudo apt update sudo apt install --install-recommends winehq-stable
被告知将安装好的包。
如果我们有宽薄的互联网连接,这可能需要花费:
...... The following packages will be upgraded: libcurl3-gnutls 1 upgraded, 266 newly installed, 0 to remove and 6 not upgraded. Need to get 271 MB/271 MB of archives. After this operation, 1,807 MB of additional disk space will be used. Do you want to continue? [Y/n] y
安装了包后,一旦 Wine 安装完成,请检查版本:
$wine --version wine-5.11
第5步:在Ubuntu 20.04上使用 Wine 5
对于命令行,Guys可以直接在终端上调用 Wine 工具。
$wine
访问帮助页面:
$wine --help
安装测试应用程序(如Notepad ++)
wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.8.8/npp.7.8.8.Installer.exe
使用Wine安装下载的.exe应用程序。
wine npp.7.8.8.Installer.exe
同意安装Mono和Gecko Packges。
然后使用 Wine 开始应用程序安装。
安装后可以像任何其他Linux应用程序一样启动。