I have upgraded my desktop computer from Ubuntu 20.04 to 22.04. This has resulted in a problem related to libnih
and unmet dependencies. The error messages read:
The following packages have unmet dependencies:
libnih-dbus-dev : Depends: libnih-dbus1 (= 1.0.3-12build1) but 1.0.3-6ubuntu2 is to be installed
Depends: libnih-dev (= 1.0.3-12build1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
and:
dpkg: error processing archive /var/cache/apt/archives/libnih-dbus1_1.0.3-12build1_amd64.deb (--unpack):
package libnih-dbus1:amd64 (1.0.3-12build1) with field 'Multi-Arch: no' is not co-installable with libnih-dbus1 which has multiple installed instances
dpkg: error processing archive /var/cache/apt/archives/libnih1_1.0.3-12build1_amd64.deb (--unpack):
package libnih1:amd64 (1.0.3-12build1) with field 'Multi-Arch: no' is not co-installable with libnih1 which has multiple installed instances
It is not clear to me how I can repair this. I have tried apt --fix-broken install
and also tried to manually remove and update packages but was not successful.
How can I solve this problem?
libnih-dbus1 | 1.0.3-6ubuntu2 | bionic | amd64, arm64, armhf, i386, ppc64el, s390x
andlibnih-dbus1 | 1.0.3-12build1 | jammy/universe | amd64, arm64, armhf, ppc64el, riscv64, s390x
ie. I'd useapt-cache policy
to check where you're getting a bionic package from if you're using jammy as you claim. – guiverc Aug 13 '22 at 10:45apt-cache policy
but I don't see the word bionic in the results. – Jan Aug 13 '22 at 14:15apt-cache policy
showed as sources...) – guiverc Aug 13 '22 at 22:56sudo apt update
& ensure you have correct sources)... My guess is you have missing lines, or lines that don't belong in the output ofapt update
If my comments don't help, wait for others to comment, but we're limited with what you provide, my first comment showing the Ubuntu repo. source of that version that is a problem; we can't know what 3rd party you're also using unless told. – guiverc Aug 14 '22 at 06:32sudo apt purge libnih1:i386 libnih-dbus1:i386 && sudo apt upgrade -y
– jfs Aug 21 '22 at 13:19