[Solved] Trouble installing Wine Staging on Mint 19.1

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

Death
Established Member
Posts: 372
Joined: Sun Oct 11, 2015 1:43 pm
Been thanked: 32 times

[Solved] Trouble installing Wine Staging on Mint 19.1

Post by Death »

Short version:

When trying to install Wine Staging from WineHQ I get this error message

Code: Select all

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-staging : Depends: wine-staging (= 4.0~rc7~bionic)
E: Unable to correct problems, you have held broken packages.
Full version:

I'm following the guide here: https://wiki.winehq.org/Ubuntu

1. I removed all Wine packages that I'm aware of other than PlayOnLinux as that shouldn't affect this. I also left the Wineasio & Wineasio-amd64 packages from the kxstudio repo as I need them. I went to remove the Wine-rt and Wine-rt-amd64 packages which also came from the kxstudio repo, but removing them will also remove Wineasio and PlayOnLinux, so I left them installed.

I also ran

Code: Select all

wine --version
which says

Code: Select all

wine-3.0.2
That is the default system version of Wine for Mint (which is not even listed in the software manager) so I think it's ok to leave it as the new install should just go over it like it has in the past when I've installed Wine this way.

2. In a terminal I ran

Code: Select all

sudo dpkg --add-architecture i386 
3. I next download the Wine key to my Home folder and confirmed it works

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
4. I added the repo

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
5. I ran

Code: Select all

sudo apt update
6. I tried to install Wine Staging

Code: Select all

sudo apt install --install-recommends winehq-staging
But it gives me this error

Code: Select all

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-staging : Depends: wine-staging (= 4.0~rc7~bionic)
E: Unable to correct problems, you have held broken packages.
I run

Code: Select all

apt list --upgradeable
and get this output

Code: Select all

wine-staging-i386/bionic 4.0~rc7~bionic i386 [upgradable from: 4.0~rc2~bionic]
N: There are 21 additional versions. Please use the '-a' switch to see them.
I try

Code: Select all

sudo apt dist-upgrade
and get this output

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  wine-staging-i386:i386
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
In the past I had installed Wine staging from the Wine repo and it worked fine. I had issues with the repo at some point in the past couple of months though so I just removed it and went back to the system version while I waited for them to sort out the repo/key issues. It seems like there is still some stuff left over from the previous Wine Staging install. I tried deleting the Wine Staging folder in /opt/ and then ran an update and tried installing Wine Staging again but was met with the same error message. Anyone know how to fix this?

Thanks!
Last edited by Death on Thu Jan 31, 2019 2:37 am, edited 1 time in total.
Death
Established Member
Posts: 372
Joined: Sun Oct 11, 2015 1:43 pm
Been thanked: 32 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by Death »

Bumping as I've edited the opening post to make it quicker and easier to see the problem.
ubuntuuser
Established Member
Posts: 315
Joined: Mon Jan 02, 2017 9:46 am
Has thanked: 1 time
Been thanked: 5 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by ubuntuuser »

Death wrote:Bumping as I've edited the opening post to make it quicker and easier to see the problem.
It's sometimes hard to pin these things down.

If it happened to me I'd probably try uninstalling winehq and wine (I think for wine staging it's winehq-staging and wine-staging) and start from scratch.

If there are other wine versions hanging around then that might cause some installation errors, maybe.
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by jonetsu »

Very probably unrelated, but I just installed wine-staging and linvst current binaries in Xubuntu 18.04 LTS following the Ubuntu instructions found at wineHQ and it installed OK. Haven't tested the setup yet, though.
Death
Established Member
Posts: 372
Joined: Sun Oct 11, 2015 1:43 pm
Been thanked: 32 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by Death »

ubuntuuser wrote: If it happened to me I'd probably try uninstalling winehq and wine (I think for wine staging it's winehq-staging and wine-staging) and start from scratch.

If there are other wine versions hanging around then that might cause some installation errors, maybe.
Yeh I did I did uninstall all versions of Wine that I could find and removed the WineHQ ppa. I think it's something to do with the previous WineHQ install when I had an early version of v4 installed because that's what was referenced in the terminal output and it was only from the previous WineHQ install that I had version 4 - I didn't get it from anywhere else.
jonetsu wrote:Very probably unrelated, but I just installed wine-staging and linvst current binaries in Xubuntu 18.04 LTS following the Ubuntu instructions found at wineHQ and it installed OK. Haven't tested the setup yet, though.
Yeh it worked fine for me when I last installed it until there was an issue with the key which led to me uninstalling it. Since trying to reinstall from WineHQ, I've had this issue.
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by jonetsu »

Just an idea, before re-trying is there a complete purge of a previous version like by using dpkg --purge ?
Death
Established Member
Posts: 372
Joined: Sun Oct 11, 2015 1:43 pm
Been thanked: 32 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by Death »

jonetsu wrote:Just an idea, before re-trying is there a complete purge of a previous version like by using dpkg --purge ?
There is something in the Mint update manager called "Purge residual configuration". I'm 99% sure I already ran that but I could try it again, or I could try via the terminal instead. Is the exact command

Code: Select all

dpkg --purge
?

Cheers.
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by jonetsu »

Yes. Here's an example I just did, removing only two packages out of four:

Code: Select all

% dpkg -l | grep wine

ii  wine-staging              4.0~rc7~bionic
ii  wine-staging-amd64        4.0~rc7~bionic
ii  wine-staging-i386:i386    4.0~rc7~bionic
ii  winehq-staging            4.0~rc7~bionic

% dpkg --purge wine-staging

dpkg: dependency problems prevent removal of wine-staging:
 winehq-staging depends on wine-staging (= 4.0~rc7~bionic).
dpkg: error processing package wine-staging (--purge):
 dependency problems - not removing

% dpkg --purge winehq-staging

(Reading database ... 229580 files and directories currently installed.)
Removing winehq-staging (4.0~rc7~bionic) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...

% dpkg -l | grep wine

pi  wine-staging              4.0~rc7~bionic
ii  wine-staging-amd64        4.0~rc7~bionic
ii  wine-staging-i386:i386    4.0~rc7~bionic

% dpkg --purge wine-staging

(Reading database ... 229517 files and directories currently installed.)
Removing wine-staging (4.0~rc7~bionic) ...
Note: Do another dpkg -l | grep wine here to show that only two packages remains

Then from the winehq Ubuntu installation guide:

Code: Select all

% apt install --install-recommends winehq-staging

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  wine-staging
The following NEW packages will be installed:
  wine-staging winehq-staging
0 upgraded, 2 newly installed, 0 to remove and 136 not upgraded.
Need to get 2,818 kB of archives.
After this operation, 11.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

Get:1 https://dl.winehq.org/wine-builds/ubuntu bionic/main amd64 wine-staging amd64 4.0~rc7~bionic [2,816 kB]
Get:2 https://dl.winehq.org/wine-builds/ubuntu bionic/main amd64 winehq-staging amd64 4.0~rc7~bionic [1,916 B]
Fetched 2,818 kB in 1s (2,356 kB/s)        
Selecting previously unselected package wine-staging.
(Reading database ... 229383 files and directories currently installed.)
Preparing to unpack .../wine-staging_4.0~rc7~bionic_amd64.deb ...
Unpacking wine-staging (4.0~rc7~bionic) ...
Selecting previously unselected package winehq-staging.
Preparing to unpack .../winehq-staging_4.0~rc7~bionic_amd64.deb ...
Unpacking winehq-staging (4.0~rc7~bionic) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Setting up wine-staging (4.0~rc7~bionic) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Setting up winehq-staging (4.0~rc7~bionic) ...

% dpkg -l | grep wine

ii  wine-staging              4.0~rc7~bionic
ii  wine-staging-amd64        4.0~rc7~bionic
ii  wine-staging-i386:i386    4.0~rc7~bionic
ii  winehq-staging            4.0~rc7~bionic

Death
Established Member
Posts: 372
Joined: Sun Oct 11, 2015 1:43 pm
Been thanked: 32 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by Death »

Ok. I did

Code: Select all

dpkg -l | grep wine
which returned

Code: Select all

ii  wine-rt                                    2:3.0.2-1~zz+bionic1                        amd64        Microsoft Windows Compatibility Layer (Binary Emulator and Library)
ii  wine-rt-amd64                              2:3.0.2-1~zz+bionic1                        amd64        Microsoft Windows Compatibility Layer (64-bit support)
ii  wine-rt-i386:i386                          2:3.0.2-1~zz+bionic1                        i386         Microsoft Windows Compatibility Layer (32-bit support)
ii  wine-staging-i386:i386                     4.0~rc2~bionic                              i386         WINE Is Not An Emulator - runs MS Windows programs
ii  wineasio                                   0.9.0+git20110613-2kxstudio1                amd64        Wine ASIO driver for JACK
ii  wineasio-amd64                             0.9.0+git20110613-2kxstudio4                amd64        Wine ASIO driver for JACK (64bit)
ii  wineasio-i386:i386                         0.9.0+git20110613-2kxstudio4                i386         Wine ASIO driver for JACK (32bit)
where we can see "4.0~rc2~bionic" from Wine Staging which is left over from my previous WineHQ install.

I then ran

Code: Select all

sudo dpkg --purge wine-staging
which returned

Code: Select all

dpkg: warning: ignoring request to remove wine-staging which isn't installed
Not sure what to make of that :shock: Any ideas? Thanks.
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by merlyn »

I don't know much about WINE but I can see that the package you're trying to remove is called wine-staging-i386

Code: Select all

ii  wine-staging-i386:i386                     4.0~rc2~bionic                              i386 
and not wine-staging.
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by jonetsu »

What I posted was an example run. As in the basic flow on how it goes, how to verify if things gets done. You have to read the output of the commands that your OS will return and not just follow what I've shown as output. This is why I posted the output of the command for my OS: to show the basic flow of how it goes by the removal of only two packages, including an error, then the reinstall from the winehq Ubuntu instructions. In a real case you'd be removing all wine-related packages then make sure they are removed, then restart from the winehq Ubuntu instructions.
Death
Established Member
Posts: 372
Joined: Sun Oct 11, 2015 1:43 pm
Been thanked: 32 times

Re: Trouble installing Wine Staging on Mint 19.1

Post by Death »

jonetsu wrote:What I posted was an example run. As in the basic flow on how it goes, how to verify if things gets done. You have to read the output of the commands that your OS will return and not just follow what I've shown as output. This is why I posted the output of the command for my OS: to show the basic flow of how it goes by the removal of only two packages, including an error, then the reinstall from the winehq Ubuntu instructions. In a real case you'd be removing all wine-related packages then make sure they are removed, then restart from the winehq Ubuntu instructions.
Yeh I get that. I don't just blindly copy and paste things people tell me - I try to learn as I go. I just didn't realise I need to add the "i386" part. I mean why didn't I need to put "wine-rt-i386:i386" as that's how it's written.. it's just a bit confusing making sense of these terminal outputs sometimes. Anyway, it appears I've removed that and now got Wine Staging installed again now :) Hopefully it's all good so I'll see how it goes and then post back if there's issues. Thanks for the help!
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: [Solved] Trouble installing Wine Staging on Mint 19.1

Post by jonetsu »

Should be OK. I've installed it recently on a similar system, Xubuntu 18.04 LTS and it installed just fine, along with the linvst binaries. By now I've re-installed several Windows VSTs and they work fine (in Bitwig 2.4.3 - should be the same with Mixbus32C) except for the Melda plugins which have a serious problem or rather, linvst has a serious problem with them. Used to work very fine in Linux MInt 18.1 KDE and I still have this system as dual-boot.
Death
Established Member
Posts: 372
Joined: Sun Oct 11, 2015 1:43 pm
Been thanked: 32 times

Re: [Solved] Trouble installing Wine Staging on Mint 19.1

Post by Death »

Yeh it seems to be ok now. I've taken notes so I can hopefully just resolve this kind of thing on my own in future. Cheers.
User avatar
bhilmers
Established Member
Posts: 229
Joined: Mon Apr 23, 2012 11:44 pm
Has thanked: 5 times
Been thanked: 17 times

Re: [Solved] Trouble installing Wine Staging on Mint 19.1

Post by bhilmers »

Death, thanks for posting this thread. I recently migrated back to Mint a few weeks ago and ran into this same problem, but never attempted to solve it because I've been trying to stop using WINE (it's a crutch in my audio workflow). I had the same issue of mentally blocking out the "i386" part of the package install. WINE is up and running on my system, now I just need the discipline to stop using it so much... :)
Post Reply