I'm trying to install wine on Ubuntu 22.04. I followed the instructions here: https://wiki.winehq.org/Ubuntu. Here is what I tried:
$ 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 (= 7.0.0.0~bullseye-1)
E: Unable to correct problems, you have held broken packages.
$ sudo apt install 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:
wine-stable-amd64 : Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
Recommends: libodbc1 but it is not going to be installed
Recommends: libosmesa6 but it is not going to be installed
wine-stable-i386:i386 : Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not installable
Recommends: libcups2:i386 but it is not going to be installed
Recommends: libglu1-mesa:i386 but it is not going to be installed or
libglu1:i386
Recommends: libodbc1:i386 but it is not going to be installed
Recommends: libosmesa6:i386 but it is not going to be installed
Recommends: libsdl2-2.0-0:i386 but it is not going to be installed
Recommends: libv4l-0:i386 but it is not going to be installed
Recommends: libxcomposite1:i386 but it is not going to be installed
Recommends: libxcursor1:i386 but it is not going to be installed
Recommends: libxfixes3:i386 but it is not going to be installed
Recommends: libxi6:i386 but it is not going to be installed
Recommends: libxinerama1:i386 but it is not going to be installed
Recommends: libxrandr2:i386 but it is not going to be installed
Recommends: libxxf86vm1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libldap-2.4-2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libldap-2.4-2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libldap-common
E: Package 'libldap-2.4-2' has no installation candidate
I already have libldap-common
:
$ sudo apt install libldap-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libldap-common is already the newest version (2.5.11+dfsg-1~exp1ubuntu3.1).
libldap-common set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Here are possible installation candidates I found using tab tab
:
$ sudo apt install libldap
libldap-2.5-0 libldap-common libldap-java
libldap2-dev libldap-dev libldap-ocaml-dev
I already have libldap-2.5-0, but I don't know how to go down to libldap-2.4-2.
$ sudo apt install libldap-2.5-0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libldap-2.5-0 is already the newest version (2.5.11+dfsg-1~exp1ubuntu3.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Can anyone help me download wine?
sudo apt install wine
. – ChanganAuto Jun 12 '22 at 00:04