I'am trying to install Wine in Ubuntu 22.04 (KDE Neon user edition in this case), with winehq repos (deb https://dl.winehq.org/wine-builds/ubuntu jammy main) but:
sudo apt install --install-recommends winehq-staging
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) winehq-staging:amd64 < none -> 7.19~jammy-1 @un puN Ib >
Broken winehq-staging:amd64 Depends on wine-staging:amd64 < none @un H > (= 7.19~jammy-1)
Considering wine-staging:amd64 0 as a solution to winehq-staging:amd64 9999
Considering wine-staging:i386 0 as a solution to winehq-staging:amd64 9999
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-staging : Depends: wine-staging (= 7.19~jammy-1)
E: Unable to correct problems, you have held broken packages.
seems to be 'neon-related' for I have the same issue on two 'neon-machines' (build 10/23/22). Nevertheless Wine 7.20 installs perfectly under 'ubuntu-studio' with KDE (checked it today). As far I can say neon/wine has a dependency problem with 'libpoppler-glib8:i386' and 'libsane(1):i386'.
# See which version is available for both architectures
apt policy libpoppler-glib8 libpoppler-glib8:i386
# Install the version with (for example)
sudo apt install libpoppler-glib8=22.02.0-2ubuntu0.1 libpoppler-glib8:i386=22.02.0-2ubuntu0.1
You may also need to downgrade the packages that depend on libpoppler-glib8 to the Ubuntu version.
(I do not have the 'gir1.2-poppler-0.18' and 'pdfarranger' packages installed.)