Installing winehq with DEB package in debian10 (ghost livestock dependency resolution)

Time:2021-10-14

preparation

  • All operations in this article need to be under the root account
  • If you have previously compiled and installed winehq, it is strongly recommended to completely uninstall it at the end of this article.
Enable i386 support

Because we want to use x86 wine (most win programs are x86), we need to turn on i386 support.

  • Turn on X86 support
dpkg --add-architecture i386
  • Update package warehouse
apt update -y 
  • After completion
dpkg --print-foreign-architectures
  • If outputi386It indicates that it is opened successfully.
Solve a ghost animal dependency first

This dependency is not available in the warehouse, but it is not an optional dependency. So, put it on.

  • Name: libfaudio0
  • Both AMD64 and i386 architectures need to be installed
Download address
amd64: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/amd64/
i386: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/i386/
  • install
##As of the latest version of the document, it may have been updated. Please replace it with the latest version.

#Form good habits
mkdir workPlace
cd workPlace

#Download package
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

#Installation
dpkg -i libfaudio0_20.01-0~buster_amd64.deb
dpkg -i libfaudio0_20.01-0~buster_i386.deb
apt -f install
  • Just pretend it’s over

Installing winehq with DEB package in debian10 (ghost livestock dependency resolution)

  • Then, restart
dpkg -i libfaudio0_20.01-0~buster_amd64.deb
dpkg -i libfaudio0_20.01-0~buster_i386.deb
  • That’s it

Installing winehq with DEB package in debian10 (ghost livestock dependency resolution)

Topic

what the hell? Just getting to the point now?

Let’s take a look at the dependency diagram (part: only wine interdependencies) may also be one of the reasons why apt can’t handle it correctly
  • Note: the i386 package depends on a bunch of i386 components.

Installing winehq with DEB package in debian10 (ghost livestock dependency resolution)

  • I believe you already know what to install first and then what to install.

To Installion

Download DEB package

Make good use of Ctrl + FclickMe

#AMD64 - self replace the latest version address
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 - replace the latest version address by yourself
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
  • Don’t worry about reporting an error, try again
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
  • success

Installing winehq with DEB package in debian10 (ghost livestock dependency resolution)

amd64 Install
  • Similarly
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
  • Don’t worry about reporting an error, try again
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
  • success

Installing winehq with DEB package in debian10 (ghost livestock dependency resolution)

Cleanup
cd ..
rm -rf workPlace

complete

  • Test with the following command
wine --version
wine64 --version
  • If the output is similar to the figure, it indicates success.

Installing winehq with DEB package in debian10 (ghost livestock dependency resolution)

appendix

Compile and install one click uninstall
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*
#It is recommended to restart after completion
reboot
Domestic speed 3G solution
  • If the speed is too slow, try putting alldl.winehq.orgReplace with (my white whoring workers image)
https://dl-winehq.gfwmirror.workers.dev
There are mistakes / incomprehensions / unexpected errors in the article
  • Leave a message in the comments area
Reprint this article
  • This article is 100% original. Allow standard reprint. The author (redbean w) and the straight chain of this article must be indicated. Thank you.