升级到 22.04 后 libnih-dbus1:amd64 和 libnih1:amd64 更新错误

升级到 22.04 后 libnih-dbus1:amd64 和 libnih1:amd64 更新错误

最近从 20.04 移至 22.04。

这是我得到的结果。我通过 dpkg 强制删除,并使用 apt 执行了 -f,但无法绕过错误。

有什么想法吗?提前谢谢您。

Calculating upgrade... Done
The following packages have been kept back:
  gcc-10-base gcc-10-base:i386
The following packages will be upgraded:
  libnih-dbus1 libnih1
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/63.0 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue? [Y/n] y
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
Errors were encountered while processing:
 /var/cache/apt/archives/libnih-dbus1_1.0.3-12build1_amd64.deb
 /var/cache/apt/archives/libnih1_1.0.3-12build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

升级后我遇到了同样的问题。我是这样解决的:

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

我在这里找到了解决方案:https://bugs.launchpad.net/ubuntu/+source/libnih/+bug/1948346

相关内容