How to install 64bit version from WineHQ?

Questions about Wine on Linux
Locked
Wolfgang.Klein
Level 2
Level 2
Posts: 11
Joined: Fri Jun 18, 2010 4:21 am

How to install 64bit version from WineHQ?

Post by Wolfgang.Klein »

Hello,

I followed the instructions on https://wiki.winehq.org/Ubuntu, but I don't seem to be able to install the 64 bit version. When it comes to

Code: Select all

apt install --install-recommends winehq-stable
I am only offered the 32bit version:

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  libglu1-mesa:i386 libodbc1:i386 libodbccr2:i386 libopengl0:i386 wine-stable:i386
  wine-stable-i386:i386
The following packages will be REMOVED:
  wine
The following NEW packages will be installed:
  libglu1-mesa:i386 libodbc1:i386 libodbccr2:i386 libopengl0:i386 wine-stable:i386
  wine-stable-i386:i386 winehq-stable
0 upgraded, 7 newly installed, 1 to remove and 3 not upgraded.
Need to get 106 MB of archives.
After this operation, 644 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
What am I doing wrong? What did I misunderstand?

My system is based on Ubuntu Jammy, and it's way behind Wine's development: the repository includes Wine 6. That's why I need to upgrade Wine manually.

Many thanks in advance!
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: How to install 64bit version from WineHQ?

Post by jkfloris »

I need more information to solve this problem. Can you post the output of the following commands?

Code: Select all

dpkg --print-architecture
dpkg --print-foreign-architectures
apt policy
Wolfgang.Klein
Level 2
Level 2
Posts: 11
Joined: Fri Jun 18, 2010 4:21 am

Re: How to install 64bit version from WineHQ?

Post by Wolfgang.Klein »

Certainly! Here you are:

dpkg --print-architecture
amd64

dpkg --print-foreign-architectures
i386

The output given by "apt policy" is very large, and it contains many lines that most like won't be of any help, for example about Firefox and all its locales. So I shortened the output like this:

apt policy | grep wine

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

500 https://dl.winehq.org/wine-builds/ubuntu jammy/main all Packages
release o=dl.winehq.org,a=jammy,n=jammy,l=winehq,c=main,b=all
origin dl.winehq.org
500 https://dl.winehq.org/wine-builds/ubuntu jammy/main i386 Packages
release o=dl.winehq.org,a=jammy,n=jammy,l=winehq,c=main,b=i386
origin dl.winehq.org
500 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages
release o=dl.winehq.org,a=jammy,n=jammy,l=winehq,c=main,b=amd64
origin dl.winehq.org


If there's any more information you need, just let me know!
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: How to install 64bit version from WineHQ?

Post by jkfloris »

That looks good!

You can try to install all four wine packages by hand:

Code: Select all

sudo apt install --install-recommends winehq-stable wine-stable:amd64 wine-stable-amd64:amd64 wine-stable-i386:i386
Wolfgang.Klein
Level 2
Level 2
Posts: 11
Joined: Fri Jun 18, 2010 4:21 am

Re: How to install 64bit version from WineHQ?

Post by Wolfgang.Klein »

I tried to install the packages the way you told me above, but I run into trouble with wrong dependencies:

Code: Select all

apt install --install-recommends winehq-stable wine-stable:amd64 wine-stable-amd64:amd64 wine-stable-i386:i386

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libsane1:i386 < none -> 1.1.1-5 @un puN Ib >
Broken libsane1:i386 Depends on libpoppler-glib8:i386 < none @un pH > (>= 0.18.0)
  Considering libpoppler-glib8:i386 0 as a solution to libsane1:i386 0
  Considering libpoppler-glib8:i386 0 as a solution to libsane1:i386 0
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:
 libsane1:i386 : Depends: libpoppler-glib8:i386 (>= 0.18.0) but it is not installable
                 Recommends: sane-airscan:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.
Trying to resolve that issue:

Code: Select all

 dpkg -l libpoppler-glib8
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version                                    Architecture Descr>
+++-======================-==========================================-============-=====>
ii  libpoppler-glib8:amd64 23.10.0-0xneon+22.04+jammy+release+build24 amd64        PDF r

Code: Select all

apt-cache search  libpoppler-glib8
libpoppler-glib8 - PDF rendering library (GLib-based shared library)
libpoppler-glib8-dbgsym - debug symbols for libpoppler-glib8
When I install "libpoppler-glib8:i386" manually, the amd64 version is deleted. Seems like there can be only one...

This looks like a serious bug to me, some heavily broken dependencies.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: How to install 64bit version from WineHQ?

Post by jkfloris »

Code: Select all

ii  libpoppler-glib8:amd64 23.10.0-0xneon+22.04+jammy+release+build24 amd64        PDF r
It looks like that the libpoppler-glib8 package is not from the official Ubuntu repository.

Is it possible to install Wine if you replace/ downgrade libpoppler-glib8 with the Ubuntu version?

Code: Select all

sudo apt install libpoppler-glib8:{i386,amd64}=22.02.0-2ubuntu0.3

sudo apt install --install-recommends winehq-stable
Wolfgang.Klein
Level 2
Level 2
Posts: 11
Joined: Fri Jun 18, 2010 4:21 am

Re: How to install 64bit version from WineHQ?

Post by Wolfgang.Klein »

Great joy: that worked! :)

Code: Select all

:~$ wine --version
wine-8.0.2
As you can see by the output of the dpkg command, I am using KDE Neon, which uses a lot of stuff from Ubuntu, but I don't know why they choose to use a different version of libpoppler-glib8 than the original one by Ubuntu.

Anyway... Now Wine 8.0.2 is installed on my system. Now I only need to convince "playonlinux" to use this version as the "system installed" version of Wine. POL now only shows me those Wine versions that I downloaded within POL itself, the system wide installed version is no longer choosable, neither for already installed games, nor for newly created virtual drives.

But that's a problem to be solved on another day.

Many thanks for your patience and help, and have a very nice holiday!
Locked