Debian 12 install question

Questions about Wine on Linux
Locked
sunscorcher
Newbie
Newbie
Posts: 3
Joined: Fri Oct 06, 2023 2:46 pm

Debian 12 install question

Post by sunscorcher »

Hello,

I followed the instructions on the wiki here https://wiki.winehq.org/Debian

I added the bookworm sources, the contents of /etc/apt/sources.list.d/winehq-bookworm.sources is:

Code: Select all

Types: deb
URIs: https://dl.winehq.org/wine-builds/debian
Suites: bookworm
Components: main
Architectures: amd64 i386
Signed-By: /etc/apt/keyrings/winehq-archive.key
As a sanity check, the output of cat /etc/os-release is:

Code: Select all

root@jeremy-deb12:/etc/apt/sources.list.d# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Then,

sudo apt install --install-recommends winehq-stable gives the message

Code: Select all

root@jeremy-deb12:/# apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree... Done
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 (= 8.0.2~bookworm-1)
E: Unable to correct problems, you have held broken packages.

I did not see a step to install wine-stable, is this needed? When I try to install wine-stable, I then see:

Code: Select all

root@jeremy-deb12:/# apt install --install-recommends wine-stable
Reading package lists... Done
Building dependency tree... Done
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:
 libavif15 : Breaks: libavif15:i386 (!= 0.11.1-1) but 0.11.1-3+b1 is to be installed
 libavif15:i386 : Breaks: libavif15 (!= 0.11.1-3+b1) but 0.11.1-1 is to be installed
 libgphoto2-6 : Recommends: libgphoto2-l10n (= 2.5.30-1) but 2.5.31-1 is to be installed
                Breaks: libgphoto2-6:i386 (!= 2.5.30-1) but 2.5.31-1 is to be installed
 libgphoto2-6:i386 : Breaks: libgphoto2-6 (!= 2.5.31-1) but 2.5.30-1 is to be installed
 libsane1 : Depends: libsane-common (= 1.2.1-2) but 1.2.1-5 is to be installed
            Recommends: sane-airscan but it is not going to be installed
            Recommends: sane-utils (>= 1.2.1-2)
            Breaks: libsane1:i386 (!= 1.2.1-2) but 1.2.1-5 is to be installed
 libsane1:i386 : Recommends: sane-utils:i386 (>= 1.2.1-5)
                 Breaks: libsane1 (!= 1.2.1-5) but 1.2.1-2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Do you have any advice?

Thanks
sunscorcher
Newbie
Newbie
Posts: 3
Joined: Fri Oct 06, 2023 2:46 pm

Re: Debian 12 install question

Post by sunscorcher »

Okay, I installed Wine by using the debian wiki instead.

https://wiki.debian.org/Wine#Step_2:_Installation
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Debian 12 install question

Post by jkfloris »

Although "/etc/os-release" shows that you are using Bookworm, the output of "apt" shows that packages from Trixie (Debian Testing) are being installed.
Either upgrade the whole system to Trixie or remove references to Trixie from the /etc/apt/sources.list(.d) files.
sunscorcher
Newbie
Newbie
Posts: 3
Joined: Fri Oct 06, 2023 2:46 pm

Re: Debian 12 install question

Post by sunscorcher »

Thank you. I removed a reference to "unstable" in etc/apt/sources.list that I put in during installation of Steam. I think this is the only reference to the unstable version. Now when I try to install wine32 I see

Code: Select all

jeremy@jeremy-deb12:/home$ sudo apt-get install wine32:i386
Reading package lists... Done
Building dependency tree... Done
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:
 libdw1 : Breaks: libdw1:i386 (!= 0.189-4) but 0.188-2.1 is to be installed
 libdw1:i386 : Depends: libelf1:i386 (= 0.188-2.1) but 0.189-4 is to be installed
               Breaks: libdw1 (!= 0.188-2.1) but 0.189-4 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Do I need to remove packages that were installed while I had the unstable reference in /etc/apt/sources.list? The messages are honestly unclear to me.
Last edited by sunscorcher on Sat Oct 07, 2023 6:59 pm, edited 1 time in total.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Debian 12 install question

Post by jkfloris »

There are probably packages from unstable still installed on your system. You will have to downgrade these packages to the stable version.

Code: Select all

sudo apt install libdw1:{amd64,i386}=0.188-2.1 libelf1:{amd64,i386}=0.188-2.1
sunscorcher
Newbie
Newbie
Posts: 3
Joined: Fri Oct 06, 2023 2:46 pm

Re: Debian 12 install question

Post by sunscorcher »

That worked perfectly. Thank you for all your help
Locked