准备工作
- 本文所有操作需要在root账号下
- 如果你先前编译安装了winehq,强烈建议参考文末彻底卸载后再进行本文操作。
开启i386支持
dpkg --add-architecture i386
apt update -y
dpkg --print-foreign-architectures
先解决一个鬼畜依赖
- Name: libfaudio0
- amd64和i386两种架构都需要装
下载地址
amd64: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/amd64/
i386: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/i386/
## 截至发文为最新版,现在可能已有更新,请自行替换为最新版本。
# 养成好习惯
mkdir workPlace
cd workPlace
# 下载包
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/amd64/libfaudio0_20.01-0~buster_amd64.deb
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/i386/libfaudio0_20.01-0~buster_i386.deb
# 安装
dpkg -i libfaudio0_20.01-0~buster_amd64.deb
dpkg -i libfaudio0_20.01-0~buster_i386.deb
apt -f install
dpkg -i libfaudio0_20.01-0~buster_amd64.deb
dpkg -i libfaudio0_20.01-0~buster_i386.deb
正题
先看看依赖关系图(部分:仅wine相互依赖关系)可能也是apt不能正确处理的原因之一吧
To Installion
下载deb包
# AMD64 - 自行替换最新版本地址
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-devel-amd64_5.14~buster_amd64.deb
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-devel_5.14~buster_amd64.deb
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/winehq-devel_5.14~buster_amd64.deb
# i386 - 自行替换最新版本地址
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel-i386_5.14~buster_i386.deb
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel_5.14~buster_i386.deb
wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/winehq-devel_5.14~buster_i386.deb
i386 Install
dpkg -i wine-devel-i386_5.14~buster_i386.deb
dpkg -i wine-devel_5.14~buster_i386.deb
dpkg -i winehq-devel_5.14~buster_i386.deb
apt -f install
dpkg -i wine-devel-i386_5.14~buster_i386.deb
dpkg -i wine-devel_5.14~buster_i386.deb
dpkg -i winehq-devel_5.14~buster_i386.deb
amd64 Install
dpkg -i wine-devel-amd64_5.14~buster_amd64.deb
dpkg -i wine-devel_5.14~buster_amd64.deb
dpkg -i winehq-devel_5.14~buster_amd64.deb
apt -f install
dpkg -i wine-devel-amd64_5.14~buster_amd64.deb
dpkg -i wine-devel_5.14~buster_amd64.deb
dpkg -i winehq-devel_5.14~buster_amd64.deb
Cleanup
cd ..
rm -rf workPlace
完成
wine --version
wine64 --version
附录
编译安装一键彻底卸载
rm -rf /usr/local/share/wine
rm -rf /usr/local/bin/wine*
rm -rf /usr/local/lib64/wine
rm -rf /usr/local/include/wine
rm -rf /root/.local/share/applications/wine*
rm -rf /root/.local/share/mime/packages/*wine*
rm -rf /root/.local/share/mime/application/
rm -rf /usr/local/share/applications/wine*
rm -rf /root/.local/share/icons/hicolor/16x16/apps/*wine*
rm -rf /root/.local/share/icons/hicolor/32x32/apps/*wine*
rm -rf /root/.local/share/icons/hicolor/48x48/apps/*wine*
rm -rf /root/.local/share/icons/hicolor/256x256/apps/*wine*
# 完成后建议重启
reboot
国内速度3G解决
- 如果速度太慢,试试把所有
dl.winehq.org
替换为(本人的白嫖workers镜像)
https://dl-winehq.gfwmirror.workers.dev
文章有错误/有地方不理解/意外的报错
转载本文
- 本文100%原创。允许规范转载,必须注明作者(RedbeanW)和本文的思否直链,谢谢。