1

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?

Nmath
  • 12,664
Jan
  • 199

1 Answers1

2

The most helpful answer was posted as a comment by user jfs. He referred to a similar question, and to where the answer can be found

libnih-dbus1:amd64 and libnih1:amd64 update errors after 22.04 upgrade

https://bugs.launchpad.net/ubuntu/+source/libnih/+bug/1948346

sudo apt purge libnih1:i386 libnih-dbus1:i386 && sudo apt upgrade -y

I tried this, not knowing in great detail what the command actually does, and it works.

Jan
  • 199