I can't install Wine in zorin core

i tried all ways to install wine but without success, what i try is :

sudo apt install wine

output is :

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 : Depends: wine64 (>= 6.0.3~repack-1+zorin1) or
wine32 (>= 6.0.3~repack-1+zorin1)
Depends: wine64 (< 6.0.3~repack-1+zorin1.1~) or
wine32 (< 6.0.3~repack-1+zorin1.1~)
sh: 0: getcwd() failed: No such file or directory
E: Unable to correct problems, you have held broken packages.

i tried

sudo apt-get install wine-stable-amd64
output :
Package wine-stable-amd64 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

sh: 0: getcwd() failed: No such file or directory
E: Package 'wine-stable-amd64' has no installation candidate

i tried this :

sudo apt install --install-recommends winehq-stable

output :
Package winehq-stable is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

sh: 0: getcwd() failed: No such file or directory
E: Package 'winehq-stable' has no installation candidate

how can i install wine on zorin os ??

finally i found a solution after one day of searching and trying, the only one working with me, i want to share it with who have the same problem.

1-

sudo apt-add-repository -r 'deb Index of /wine-builds/ubuntu bionic main'

2-

wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O Release.key -O- | sudo apt-key add -

3-

sudo apt-add-repository 'deb Index of /repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./'

4-

sudo apt-get update

5-

sudo apt install --install-recommends winehq-stable

done !
good luck

1 Like

update !!
if any problem happens with you in step 3 "says broken line in source.list"
just open the file source.list with tis command

sudo -H gedit /etc/apt/sources.list

and go to the line where the problem is, and add a # at the beginning

and if you don't succeed in last step, "the installation of winehq-stable",

now after you done the previous lines, do the steps found here in this site here.

Check installed architectures

Verify 64-bit architecture. The following command should respond with "amd64".

dpkg --print-architecture

See if 32-bit architecture is installed. The following command should respond with "i386".

dpkg --print-foreign-architectures

If "i386" is not displayed, execute the following.

sudo dpkg --add-architecture i386

Recheck with.

dpkg --print-foreign-architectures

Add the WineHQ Ubuntu repository.

Get and install the repository key.

wget -nc https://dl.winehq.org/wine-builds/winehq.key

sudo mv winehq.key /usr/share/keyrings/winehq-archive.key

wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources

sudo mv winehq-focal.sources /etc/apt/sources.list.d/

Update the package database.

sudo apt update

Install Wine

sudo apt install --install-recommends winehq-stable

i don't know how, but this is what solved my problem