上一篇 下一篇 分享链接 返回 返回顶部

如何在Debian10服务器上安装Wine

发布人:Minchunlin 发布时间:2021-01-26 21:26 阅读量:1860

在本教程中,我们将向您展示如何在Debian 10服务器上安装Wine。Wine是一个免费和开源的使用,它允许用户在Linux环境中运行微软的Windows应用程序。在当下,Wine是Linux用户不舍得Windows原生软件的必备工具,尤其是游戏玩家。

在 Debian 10 Buster 上安装 Wine

第1步:在安装任何软件之前,我们必须确保你的系统是最新的。在我们安装任何软件之前,重要的是要确保你的系统是最新的,在终端运行以下apt命令。

sudo apt update

sudo apt upgrade

sudo apt install apt-transport-https

第二步:检查你的系统是32位还是64位。检查你的Linux系统是32位还是64位。

有不同版本的Wine适用于32位和64位的Debian系统。为了检查您所使用的版本,以便安装合适的Wine版本,请按照以下命令操作。

lscpu

第二步. 在 Debian 10服务器上安装 Wine。

现在我们导入GPG密钥。

sudo apt install gnupg2 software-properties-common

wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

接下来,添加WineHQ版本库。

sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/

之后,添加Wine OBS仓库。

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 系统上安装 Wine。

sudo apt update

sudo apt install --install-recommends winehq-stable

为了验证安装情况并检查系统中安装的版本,运行以下命令。

wine --version

至此,在Debian10服务器上安装Wine已经完成了。

目录结构
全文