3

I'm using Ubuntu 22.04 which is 64bit, when I try install Wine from WineHQ or Ubuntu repository this happen

$ sudo 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.0.0~jammy-1)
E: Unable to correct problems, you have held broken packages.

and afterwards when I try to install wine-stable first this happen

$ sudo 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:
 libgphoto2-6:i386 : Depends: libgd3:i386 (>= 2.1.0~alpha~) but it is not installable
E: Unable to correct problems, you have held broken packages.

and if I try to install libgd3:i386, yes, it would install winehq-stable then gnome control center is gone, which is my desktop settings, and also php-gd is gone too, and reinstalling libgd3 will remove Wine32 which make Wine inoperateable

I did add the architecture though

$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386

how am I supposed to solve this?

4
  • sadly no, I did dpkg --add-architecture i386 thus add i386 when you run dpkg --print-foreign-architectures as I mention before. but, apt update and apt upgrade doesn't change anything. for now my conclusion is just using Bottles instead Commented Feb 2, 2023 at 9:09
  • 1
    is installing Bottles can be counted as an answer? because my questions is installing Wine, even though I know that Bottles using Wine but in sandbox mode Commented Feb 2, 2023 at 9:17
  • Did you try apt --fix-broken install ? Commented Apr 15, 2023 at 15:17
  • 1
    Does this answer your question? How do I resolve unmet dependencies after adding a PPA? Commented May 29, 2023 at 7:48

2 Answers 2

0

Try:

sudo apt install libpcre3:amd64=2:8.39-13ubuntu0.22.04.1 libpcre3:i386=2:8.39-13ubuntu0.22.04.1

sudo apt install --install-recommends winehq-stable
0

From your other questions on this site, I can see that you are using PHP. So, I am guessing that this problem is actually related to a conflict between ppa:ondrej/php and wine.

More about the problem: installing libpcre2-8-0 10.39.3 tries to remove several packages, including wine32 #1745. If you want to remove ppa:ondrej/php I would recommend using ppa-purge to do so:

sudo apt install ppa-purge
sudo ppa-purge ppa:ondrej/php

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.