无法在 Jammy 上安装 libc6:i386

Vic*_*kin 5 lts package-management bug-reporting 22.04

最新的amd64Jammy 安装。

% cat /etc/issue
Ubuntu 22.04.1 LTS \n \l

% dpkg --print-foreign-architectures
i386

% dpkg -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version         Architecture Description
+++-==============-===============-============-=================================
ii  libc6:amd64    2.35-0ubuntu3.1 amd64        GNU C Library: Shared libraries
in  libc6:i386     <none>          i386         (no description available)
               
Run Code Online (Sandbox Code Playgroud)

据我所知,以下内容阻止libc6:i386安装:

% sudo dpkg -i libc6_2.35-0ubuntu3.1_i386.deb
...
(Reading database ... 228990 files and directories currently installed.)
Preparing to unpack libc6_2.35-0ubuntu3.1_i386.deb ...
Unpacking libc6:i386 (2.35-0ubuntu3.1) ...
dpkg: error processing archive libc6_2.35-0ubuntu3.1_i386.deb (--install):
 trying to overwrite shared '/usr/share/doc/libc6/NEWS.Debian.gz', which is different from other instances of package libc6:i386
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Errors were encountered while processing:
 libc6_2.35-0ubuntu3.1_i386.deb
Run Code Online (Sandbox Code Playgroud)

两个问题:

  1. 如何恢复indpkg 中 i386 软件包的状态?软件包安装了一半,让系统看起来很乱,这是很可悲的;
  2. 以上是 Ubuntu 打包中的临时错误吗?我要向 Canonical 提交错误吗?我不想尝试手动删除有问题的NEWS.Debian文件,因为我不想冒系统稳定性的风险,谁知道还有哪些进一步的冲突......

作为 PS,运行ubuntu-bug libc6最终会产生相当“有趣”的输出:

% ubuntu-bug libc6                           

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.......

*** Problem in libc6

The problem cannot be reported:

This does not seem to be an official Ubuntu package.
Run Code Online (Sandbox Code Playgroud)

Vic*_*kin 2

事实证明,由于某种原因,我的部分sources.list丢失了(它同时具有和部分)。jammy-updatesjammyjammy-security

我添加后

deb http://mirror/ubuntu/ jammy-updates main restricted
Run Code Online (Sandbox Code Playgroud)

和类似的条目universe/multiverse,我能够libc6:i386通过基本apt-get update/install方式安装。