如何在 Linux 上安装 Wine如何在 Linux 上安装 Wine如何在 Linux 上安装 Wine如何在 Linux 上安装 Wine
  • 文章
  • 正则表达式
    • 工具
  • 登录
找到的结果: {phrase} (显示: {results_count} 共: {results_count_total})
显示: {results_count} 共: {results_count_total}

加载更多搜索结果...

搜索范围
模糊匹配
搜索标题
搜索内容
发表 admin at 2025年2月28日
类别
  • 未分类
标签

如何在 Linux 上安装 Wine

问题:我需要在 Linux 上运行 Windows 应用程序,为此,我想尝试 Wine。如何在 [插入您的 Linux 发行版] 上安装 Wine?

Wine 是一种流行的用户空间软件程序,它允许人们在 Linux 上运行 Windows 应用程序。 Wine 通过提供应用程序调用的 Windows API 为 Windows 应用程序提供运行时环境。截至目前,Wine 支持超过 27,000 个 Windows 应用程序。

在 Ubuntu 或 Debian 上安装 Wine

由于 Wine 包含在基于 Debian 的发行版的默认存储库中,因此您可以使用 apt-get 安装它。但是,如果您使用的是 64 位系统,则需要启用多架构,因为 Wine 是 32 位应用程序。

在 64 位系统上:


$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install wine wine32 wine64 libwine libwine:i386 fonts-wine

在 32 位系统上:


$ sudo apt-get install wine wine32 libwine fonts-wine

通过 PPA 存储库在 Ubuntu 上安装 Wine

在 Ubuntu 衍生品(Kubuntu 或 Lubuntu)或 Linux Mint 上,您还可以使用 WineHQ 团队维护的 Wine PPA 安装 Wine,如下所示。该版本比默认存储库中包含的版本更新。


$ wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
$ sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
$ sudo apt update
$ sudo apt install wine

在 Fedora 上安装 Wine

在 Fedora 上安装 Wine 非常简单。只需使用 yum 命令即可。


$ sudo yum install wine

在 CentOS 上安装 Wine

要在 CentOS 上安装 Wine,您首先需要设置 EPEL 存储库。然后使用 yum 命令进行安装。


$ sudo yum install wine

在 openSUSE 上安装 Wine

Wine 在 openSUSE 的默认存储库中可用,因此使用 zypper 命令可以轻松安装。


$ sudo zypper install wine

Wine 安装后

下面是 Wine 配置编辑器 (winecfg) 的屏幕截图,它允许您设置特定于应用程序的 Wine 设置。

PlayOnLinux 是一款与 Wine 一起安装的有用应用程序。该程序允许您为一系列知名的 Windows 应用程序和游戏快速配置 Wine。因此,如果您使用 Wine,建议安装 PlayOnLinux。

故障排除

1. 由于 GPG 错误,我无法添加 Ubuntu PPA 存储库。

症状: apt-add-repository 会导致以下错误,即使我已经导入了 PPA 存储库的 GPG 密钥。


Err:4 https://dl.winehq.org/wine-builds/ubuntu XXXXX InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu XXXXX InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu XXXXX InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

错误的原因可能是因为您导入了错误的 GPG 密钥 (Release.key)。您必须使用新密钥 (winehq.key),如下所示。


$ wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
©2015-2025 艾丽卡 support@alaica.com