Debian10中使用deb包安装WineHQ(鬼畜依赖解决)

RedbeanW

准备工作

  • 本文所有操作需要在root账号下
  • 如果你先前编译安装了winehq,强烈建议参考文末彻底卸载后再进行本文操作。
开启i386支持
由于我们想要用x86wine(大部分win程序还是x86啊),所以需要开启i386支持。
  • 开启x86支持
dpkg --add-architecture i386
  • 更新软件包仓库
apt update -y 
  • 完成后
dpkg --print-foreign-architectures
  • 若输出 i386 说明开启成功。
先解决一个鬼畜依赖
这个依赖呢,仓库里没有,但又不是可选依赖。so,装吧。
  • 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
  • 装就完事了

1

  • 然后,重新
dpkg -i libfaudio0_20.01-0~buster_amd64.deb
dpkg -i libfaudio0_20.01-0~buster_i386.deb
  • 这样就成功了

2.png

正题

我去?现在才进入正题?
先看看依赖关系图(部分:仅wine相互依赖关系)可能也是apt不能正确处理的原因之一吧
  • 注: i386包再依赖一堆i386组件。

gu.png

  • 相信你已经知道了应该先装什么,后装什么。

To Installion

下载deb包
善用Ctrl+F clickMe
# 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
  • 成功

1.png

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
  • 成功

2.png

Cleanup
cd ..
rm -rf workPlace

完成

  • 使用以下命令测试
wine --version
wine64 --version
  • 若输出类似于图,说明成功。

3.png

附录

编译安装一键彻底卸载
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)和本文的思否直链,谢谢。
阅读 2.1k
1 声望
0 粉丝
0 条评论
你知道吗?

1 声望
0 粉丝
文章目录
宣传栏