Cant install wine

Hi!
Im very new to Zorin and Im trying to install wine,

Trying to install ‘windows app support’ from the software app fails because its missing dependencies, it doesnt list any though.

Then I tried following the tutorial that is in this thread but I always run into this error, any ideas on how to fix this/figure out whats wrong?

image

Im running ZorinOS 15.3

I apologize for the image spam, please lmk if you need any additional info (or if the links dont work)

Please let us know if this helps: PlayOnLinux or Wine not working (you can ignore the parts about PlayOnLinux)

This is what I was linking to in the post, I just wasnt sure how to, sorry haha
Following this tutorial works fine until trying to run

sudo apt install --install-recommends winehq-stable

which returns

Reading package lists… Done
Building dependency tree
Reading state information… Done
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:
winehq-stable : Depends: wine-stable (= 5.0.2~focal)
E: Unable to correct problems, you have held broken packages.

Oops. Sorry, my bad.
So, you went through:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main’
sudo apt update
before that line, correct?

Can you start Synaptic and search for wine-stable? When it comes up, it should show version 5.0.2. Right click on it and Install. Does that work?

yup

This is what happens if I try to apply the changes (so mark wine-stable for install):

Can you click on ‘Custom Filters’ on the left menu bar? That should show a list above that menu showing ‘Broken’ (under ‘All’) and click on that. Right click on any broken packages and select Fix (or something like that, sorry, it has been a while since I had broken packages).

There arent any packages under the broken tab, I tried to reload it just in case with the reload button and an error occurred:

E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Unable to lock the list directory

Can you Right Click on wine-stable and Reinstall or it doesn’t give that option? If no, then do a complete uninstall and then try an install again from within SPM (not terminal).

I cant mark it for anything else but install (all of the other options except properties are grayed out)

In terminal, can you run

sudo apt-get --fix-broken install

sudo apt-get install zorin-windows-app-support

user@asus-laptop:~$ sudo apt-get --fix-broken install
[sudo] password for user:
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@asus-laptop:~$
user@asus-laptop:~$
user@asus-laptop:~$ sudo apt-get install zorin-windows-app-support
Reading package lists… Done
Building dependency tree
Reading state information… Done
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:
zorin-windows-app-support : Depends: winehq-stable but it is not going to be installed
Recommends: playonlinux but it is not going to be installed
Recommends: winetricks but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Im assuming I broke something really bad since its always the same error

I am wondering if in looking for instructions to install online, you may have followed a set for Ubuntu 20.04. Though you confirm adding the bionic main repo above, the post you made above it referenced the focal main repo.
You might try for easy by simply relying on the Ubuntu main repo with

sudo apt-get install wine64

And if that gives the same error, then checking your sources list in case you have the bionic main and the focal main both added.
Your sources are located in /etc/apt/sources.list and you can use terminal

sudo nano /etc/apt/sources.list

Or your file manager and opening the sources.list in a text editor to look to see whether both have been added and to remove the Focal Main repo if so.

1 Like

I think this worked since there werent any errors, should I try to install wine now with this?

sudo apt install wine-stable

I would recommend this:

sudo apt-get install zorin-windows-app-support

and see what happens…

1 Like

Since it gave me an error, I went back and checked the sources.list you mentioned earlier. I actually had both bionic main and focal main added.
I removed focal main and ran this again.

sudo apt-get install zorin-windows-app-support

It installed without any issues now :tada:
Thank you so much for the help and quick replies

not sure which post to mark as the solution now though

1 Like

lol good point… I think that in your case, having both sources added is what is most relevant as the installation command would have worked without that being the case. Zorin currently does not have a Focal repo available (But will for Zorin 16).
Glad you are fixed up.

1 Like

try adding like this before installing wine 5 as usual

sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

Then install wine 5 as usual steps.

thank you, but @Aravisian already helped me fix the issue, Im not sure how to lock a thread so I left it unlocked :sweat_smile:

There is an APP in the app repository, called WINDOW APP that automaticaly install a sort of wine in zorin 15 lite, i used photofiltre and sumatra portable from window with this app installed in my zorin with no problems… only JARTE PORTABLE froze all windows, so i deleted it, but this WINDOW APP for ZORIN is very good for me