¿how to install wine 8 on Debian 12?

Questions about Wine on Linux
Locked
us3rs4t
Level 1
Level 1
Posts: 7
Joined: Sun Aug 13, 2023 3:02 am

¿how to install wine 8 on Debian 12?

Post by us3rs4t »

how to install wine on debian 12?

Hello, I turn to you to solve my wine installation problem.
I have taken the following links as a guide:

- https://wiki.winehq.org/Debian

after not being able to install wine, I continued with...

- https://howtoforge.es/como-instalar-wine-en-debian-11/

but I always get dependency problems, to solve this I have followed the following link:
- viewtopic.php?t=37388
- viewtopic.php?p=141077
- https://geekland.eu/reparar-paquetes-rotos-linux/

but, still i meet the same problem.
I would appreciate receiving your guidance on the subject to reach a good port.
Remark: previously used wine on Debian 11, but after upgrading to Debian 12 and wine 8 version; I have not been able to enjoy wine anymore.

Thanks in advance for your attention. :D
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: ¿how to install wine 8 on Debian 12?

Post by jkfloris »

Please post the output of:

Code: Select all

apt policy
# and
sudo apt install --install-recommends wine-stable-i386
us3rs4t
Level 1
Level 1
Posts: 7
Joined: Sun Aug 13, 2023 3:02 am

Re: ¿how to install wine 8 on Debian 12?

Post by us3rs4t »

apt policy

Code: Select all

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://dl.winehq.org/wine-builds/debian bookworm/main all Packages
     release o=dl.winehq.org,a=stable,n=bookworm,l=winehq,c=main,b=all
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/debian bookworm/main i386 Packages
     release o=dl.winehq.org,a=stable,n=bookworm,l=winehq,c=main,b=i386
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/debian bookworm/main amd64 Packages
     release o=dl.winehq.org,a=stable,n=bookworm,l=winehq,c=main,b=amd64
     origin dl.winehq.org
 100 http://ftp.debian.org/debian stable-backports/non-free i386 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=non-free,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/non-free amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=non-free,b=amd64
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/contrib i386 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=contrib,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/contrib amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=contrib,b=amd64
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/main i386 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=main,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/main amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=main,b=amd64
     origin ftp.debian.org
 500 http://deb.debian.org/debian-security stable-security/non-free-firmware i386 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=non-free-firmware,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian-security stable-security/non-free-firmware amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian-security stable-security/main i386 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian-security stable-security/main amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/main i386 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/main amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free-firmware i386 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free-firmware,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free-firmware amd64 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free i386 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free amd64 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/contrib i386 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=contrib,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/contrib amd64 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/main i386 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/main amd64 Packages
     release v=12.1,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=amd64
     origin deb.debian.org

# and

sudo apt install --install-recommends wine-stable-i386

Code: Select all

Reading package list... Done
Creating dependency tree... Done
Reading status information... Done
Do not can instal some pack. This can mean that
you asked for an impossible situation or, if you are using the distribution
unstable, that some necessary packages have not yet been created or are
They have taken from «Incoming».
The following information may help resolve the situation:

The following packages have unmet dependencies:
  libldap-2.5-0 : Depends: libsasl2-2 (>= 2.1.28+dfsg) but not installable
E: Error, pkgProblemResolver::Resolve generated outages, this may be due to held packages.
thank you!
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: ¿how to install wine 8 on Debian 12?

Post by jkfloris »

The output of apt policy looks fine.
Perhaps a package from backports has been installed? This repository has a lower priority, which may prevent Wine from installing.

Code: Select all

apt list --installed '?origin (backports)'
You could then try to install Wine using:

Code: Select all

sudo apt install --install-recommends -t stable-backports winehq-stable
Or there is an old package blocking the installation. If so, remove the old package.

Code: Select all

apt list '~o'
us3rs4t
Level 1
Level 1
Posts: 7
Joined: Sun Aug 13, 2023 3:02 am

Re: ¿how to install wine 8 on Debian 12?

Post by us3rs4t »

hello again...

I have followed the advice mentioned above but without positive results...

then; I have executed the following command:

Code: Select all

apt -t bookworm-backports upgrade
Since I had dependency problems with the following package: libldap-2.5-0

I also continued with the research contained in this link, but without positive results.
https://wiki.winehq.org/Debian

to install WineHQ with the command that was recommended to me:

Code: Select all

apt install --install-recommends winehq-stable
no positive results; reaching a last instance of having the following message:
"The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 8.0.2~bookworm-1)
E: Couldn't fix the problems, you've held broken packages."
I was looking in forums, but everything I find to read does not mention how they have solved that unfulfilled dependency.

I have tried the following; but without positive results.

Code: Select all

sudo apt update && apt upgrade && apt autoclean && apt autoremove && apt-get -f install
result:
0 updated, 0 new to install, 0 to remove and 0 not updated
IN THE SAME way I have checked in my system if there was any missing wine with the following command, but without positive results.

Code: Select all

dpkg -l | grep 'wine'
I would appreciate new guidance to continue with the installation; before doing it from the source code (which I'm avoiding doing).

I leave some indicative references:
https://ubuntu-mate.community/t/depende ... s/20993/18
https://ubuntu-mate.community/t/solucio ... a/26807/14
https://www.reddit.com/r/debian/comment ... tallation/
viewtopic.php?t=37690
https://wiki.winehq.org/FAQ#How_do_I_so ... ll_Wine.3F

I also leave the output of the command:

Code: Select all

# inxi -Sr
System:
  Host: pangolin Kernel: 6.1.0-11-amd64 arch: x86_64 bits: 64 Console: pty pts/0 Distro: Debian
    GNU/Linux 12 (bookworm)
Repos:
  Active apt repos in: /etc/apt/sources.list
    1: deb http://deb.debian.org/debian/ stable main contrib non-free non-free-firmware
    2: deb-src http://deb.debian.org/debian/ stable main contrib non-free non-free-firmware
    3: deb http://deb.debian.org/debian/ stable-updates main contrib non-free non-free-firmware
    4: deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free non-free-firmware
    5: deb http://deb.debian.org/debian-security stable-security main contrib non-free non-free-firmware
    6: deb-src http://deb.debian.org/debian-security stable-security main contrib non-free non-free-firmware
    7: deb http://ftp.debian.org/debian stable-backports main contrib non-free non-free-firmware
    8: deb-src http://ftp.debian.org/debian stable-backports main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/winehq-bookworm.sources
    1: deb [arch=amd64 i386] https://dl.winehq.org/wine-builds/debian bookworm main
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: ¿how to install wine 8 on Debian 12?

Post by jkfloris »

Code: Select all

The following packages have unmet dependencies:
  libldap-2.5-0 : Depends: libsasl2-2 (>= 2.1.28+dfsg) but not installable
To find the error, you can manually check the dependencies.

Code: Select all

sudo apt install libsasl2-2:i386
Probably another package will now be the reason why libsasl2 cannot be installed. Then try to install that package.
Keep in mind that the 32-bit version of a package must be the same as the 64-bit version.
us3rs4t
Level 1
Level 1
Posts: 7
Joined: Sun Aug 13, 2023 3:02 am

Re: ¿how to install wine 8 on Debian 12?

Post by us3rs4t »

My apologies, I think I expressed myself badly...

after having executed:
jkfloris wrote: Fri Sep 01, 2023 4:18 pm ....:

Code: Select all

sudo apt install --install-recommends -t stable-backports winehq-stable
there were dependency problems with: libldap-2.5-0 and
To solve these problems run the command:

Code: Select all

apt -t bookworm-backports upgrade
but since then when trying again to install WineHQ I already get the message:
us3rs4t wrote: Sun Sep 03, 2023 10:56 pm
"The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 8.0.2~bookworm-1)
E: Couldn't fix the problems, you've held broken packages."
And now everything has become a loop without an exit point.

I would appreciate new guidance to continue with the installation; before doing it from the source code (which I'm avoiding doing).
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: ¿how to install wine 8 on Debian 12?

Post by jkfloris »

You can remove the Wine packages to get out of the loop:

Code: Select all

sudo apt purge winehq-stable wine-stable wine-stable-amd4 wine-stable-i386
Then try to install libldap-2.5-0:

Code: Select all

sudo apt install libldap-2.5-0:{amd64,i386}
If successful, install Wine:

Code: Select all

sudo apt install --install-recommends winehq-stable
Locked