installing a specific wine version

Questions about Wine on Linux
Post Reply
paleozogt
Newbie
Newbie
Posts: 3
Joined: Sat Sep 22, 2018 9:48 am

installing a specific wine version

Post by paleozogt » Tue Sep 24, 2019 11:14 am

While I am able to install latest wine successfully:

Code: Select all

apt-get install -y winehq-stable
I'd like to be able to pin the version in my setup scripts. For example, this used to work:

Code: Select all

apt-get install -y winehq-stable=4.0~xenial
but recently it stopped working with

Code: Select all

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 4.0~xenial)
While I can update my pin to 4.0.2, I think it will just break again when the next version comes out.

The other versions seem to be available, although none of them work except the latest:

Code: Select all

apt-cache madison winehq-stable
winehq-stable | 4.0.2~xenial | https://dl.winehq.org/wine-builds/ubuntu xenial/main amd64 Packages
winehq-stable | 4.0.1~xenial | https://dl.winehq.org/wine-builds/ubuntu xenial/main amd64 Packages
winehq-stable | 4.0~xenial | https://dl.winehq.org/wine-builds/ubuntu xenial/main amd64 Packages
...
Is this really broken? Or am I doing something wrong?

spoon0042
Level 5
Level 5
Posts: 359
Joined: Thu Dec 24, 2009 11:00 am

Re: installing a specific wine version

Post by spoon0042 » Tue Sep 24, 2019 7:04 pm

You should just need to specify all the wine packages to install, there are three others winehq-stable depends on.

Code: Select all

apt-get install -y winehq-stable=4.0~xenial wine-stable=4.0~xenial wine-stable-amd64=4.0~xenial wine-stable-i386=4.0~xenial
If you're trying to pin the wine version you may need to pin all four as well.

paleozogt
Newbie
Newbie
Posts: 3
Joined: Sat Sep 22, 2018 9:48 am

Re: installing a specific wine version

Post by paleozogt » Wed Sep 25, 2019 1:35 pm

That works! Thanks.

xniala
Newbie
Newbie
Posts: 2
Joined: Thu Apr 02, 2020 4:37 am

Re: installing a specific wine version

Post by xniala » Thu Apr 02, 2020 9:42 am

Hello,
very newbie with Ubuntu and Wine, I need to install a specific version of Wine and after hours of research I need to admit that I'm stuck...
I would like to install Wine-staging 4.21 for Ubuntu 19-10 Eoan.
What are the steps to achieve that ?
Thanks !

spoon0042
Level 5
Level 5
Posts: 359
Joined: Thu Dec 24, 2009 11:00 am

Re: installing a specific wine version

Post by spoon0042 » Fri Apr 03, 2020 5:04 pm

If you've already done the initial steps here: https://wiki.winehq.org/Ubuntu

...then this should get you 4.21 staging:

Code: Select all

apt install winehq-staging=4.21~eoan wine-staging=4.21~eoan wine-staging-amd64=4.21~eoan wine-staging-i386=4.21~eoan
You'll probably want to hold or pin the packages otherwise the latest wine-staging will be installed when you do an 'apt upgrade'. If something worked in 4.21 and isn't working in the current version (5.5) though you should file a bug.

xniala
Newbie
Newbie
Posts: 2
Joined: Thu Apr 02, 2020 4:37 am

Re: installing a specific wine version

Post by xniala » Sun Apr 05, 2020 3:32 am

Thanks, I've made it !
And as suggested by someone on the Cycling'74 forums :
https://cycling74.com/forums/max-on-linux
Max behaviour when typing is ok with Wine-staging 4.21, but buggy with last versions...

Post Reply