Problems with wine install on Linux Mint 18.3

Questions about Wine on Linux
Locked
3ldr0n
Newbie
Newbie
Posts: 4
Joined: Tue Feb 06, 2018 8:07 am

Problems with wine install on Linux Mint 18.3

Post by 3ldr0n »

I've been trying to install wine on my linux mint machine, but I'm getting into some problems. I've tried to install following the guide in the download page [https://wiki.winehq.org/Ubuntu], but i get the following error.

Code: Select all

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 (= 3.0.0~xenial)
E: Unable to correct problems, you have held broken packages.
I have tried to install the dependencies, but when i try to install wine-stable it tells me that i have to install wine-stable-i386, and when i try to install it, it shows me the following.

Code: Select all

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:
 wine-stable-i386:i386 : Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                         Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                         Recommends: libglu1-mesa:i386 but it is not going to be installed or
                                     libglu1:i386
                         Recommends: libgnutls30:i386 (>= 3.4.0) but it is not going to be installed
                         Recommends: libosmesa6:i386 (>= 10.2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The annoying part is that, i already have all these libraries installed. I need to use wine for college, i've been using linux for a year now, and i'd never needed to install wine. But now i need some programs for college, at least for the firsst semester. If anyone can help i'd glad.
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Problems with wine install on Linux Mint 18.3

Post by Cybermax »

If you install your distro's wine version first, and THEN maybe try the WineHQ repository? Not too familiar with Mint, but they have some changed stuff vs. regular Ubuntu tho.

Oh, and you ofc remembered to do the

Code: Select all

sudo dpkg --add-architecture i386
, THEN do

Code: Select all

sudo apt-get update and sudo apt-get upgrade
before trying to install wine? :) (Just to make sure)
3ldr0n
Newbie
Newbie
Posts: 4
Joined: Tue Feb 06, 2018 8:07 am

Re: Problems with wine install on Linux Mint 18.3

Post by 3ldr0n »

Cybermax wrote:If you install your distro's wine version first, and THEN maybe try the WineHQ repository? Not too familiar with Mint, but they have some changed stuff vs. regular Ubuntu tho.
When installing from mint's repos i get the same dependencies errors.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Problems with wine install on Linux Mint 18.3

Post by jkfloris »

Are there any _non_ native Mint packages installed? Or packages from an ancient repo?
3ldr0n
Newbie
Newbie
Posts: 4
Joined: Tue Feb 06, 2018 8:07 am

Re: Problems with wine install on Linux Mint 18.3

Post by 3ldr0n »

jkfloris wrote:Are there any _non_ native Mint packages installed? Or packages from an ancient repo?
Not for wine. I've got skype, chrome and nodejs repos. And no packages from an ancient repo.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problems with wine install on Linux Mint 18.3

Post by Bob Wya »

@3ldr0n

Your problem is the: --install-recommends flag to apt / aptitude.
This will pull in optional dependency packages for all packages, in the hierarchy of package dependencies for the main meta packages.
It appears that one of these ~20 dependency packages is a blocker.

So if you do:

Code: Select all

sudo apt-get install winehq-stable
You can get the core Wine Stable package and hard dependencies installed.
You may need to do:

Code: Select all

sudo aptitude install -f
first - to check for held/ broken packages.

You may then be able to run these commands, on the 2 main architecture meta packages, e.g.:

Code: Select all

sudo aptitude why-not --with-recommends wine-stable-amd64
sudo aptitude why-not --with-recommends wine-stable-i386:i386
The output of these commands will hopefully just be the dependency conflicts that cannot be installed!

Note: the suffix :i386 which is Debian notation to denote a 32-bit multilib package (i.e. build for a 64-bit System).

Or you can manually go through the list of recommended packages - installing them one by one till you get a conflict:

Code: Select all

sudo aptitude reinstall --with-recommends wine-stable-amd64
sudo aptitude reinstall --with-recommends wine-stable-i386:i386
As the whole set of optional dependency packages will fail - if only one package from the set cannot be installed! :cry:

Then you'll know what package is the blocker for installation. You can use:

Code: Select all

sudo aptitude why-not <package name>
to find out why the optional dependency cannot be installed.

Bob
3ldr0n
Newbie
Newbie
Posts: 4
Joined: Tue Feb 06, 2018 8:07 am

Re: Problems with wine install on Linux Mint 18.3

Post by 3ldr0n »

Thanks a lot Mr. Brian. You saved me a lot of trouble.
Locked