如何在 Ubuntu、Linux Mint 或 Debian 10 上安装 Wine Staging、Development 或 Stable(避免依赖问题)

Wine 是一个 Windows 兼容层,可让您在 Linux、macOS 和 Android(实验性)上运行 Microsoft Windows 应用程序和游戏。 在 Wine 下运行 Windows 应用程序时不会发生代码模拟或虚拟化,因此得名(Wine 不是模拟器)。

您可以将 Wine 作为独立应用程序直接启动 Microsoft Windows 应用程序和游戏,或通过第三方工具(例如 Linux 上的 Lutris)启动。 Wine 还被 Proton、Valve 的 Steam Play 兼容层使用,它允许在 Linux 上玩 Windows 游戏,以及 CrossOver,一个用于 macOS 和 Linux 的商业 Microsoft Windows 兼容层,等等。

我一直看到 Ubuntu(以及基于 Ubuntu 的 Linux 发行版,如 Linux Mint 或 Pop!_OS)和 Debian 10 用户尝试安装 Wine 并遇到依赖问题,所以我想我会写一篇关于正确安装 Wine Staging 和 Development 构建的帖子(和稳定,尽管这些构建没有依赖性问题)。

许多 Ubuntu 或 Debian 用户转到 WineHQ 安装页面,添加官方 Wine 存储库,然后继续尝试安装 Wine Development 或 Staging 构建,这导致缺少依赖项:

$ sudo apt install wine-staging Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.  The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine-staging : Depends: wine-staging-amd64 (= 4.15~disco) but it is not going to be installed                 Depends: wine-staging-i386 (= 4.15~disco) E: Unable to correct problems, you have held broken packages.