Wine安装方法(持续更新)2022.5.8

首先,开启 32 位支持:

sudo dpkg --add-architecture i386

然后安装被用于签发安装包的密钥:

wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo mv winehq.key /usr/share/keyrings/winehq-archive.key

下载和安装 WineHQ 源文件:

版本: 对应的命令:
Debian 10 (Buster) wget -nc https://dl.winehq.org/wine-builds/debian/dists/buster/winehq-buster.sources sudo mv winehq-buster.sources /etc/apt/sources.list.d/
Debian 11 (Bullseye) wget -nc https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources sudo mv winehq-bullseye.sources /etc/apt/sources.list.d/
Debian Testing (Bookworm) wget -nc https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources sudo mv winehq-bookworm.sources /etc/apt/sources.list.d/

更新软件仓库:

sudo apt update

然后安装 以下其中一个安装包

稳定分支 sudo apt install --install-recommends winehq-stable
开发分支 sudo apt install --install-recommends winehq-devel
Staging 分支 sudo apt install --install-recommends winehq-staging

如果 apt 提示缺少依赖,请先安装缺少的依赖,然后重复以上两步(update 和 install)。