dpkg: 处理软件包 glibc 时出错(--configure)

dpkg: 处理软件包 glibc 时出错(--configure)

我正在使用 Ubuntu 18.04.2 LTS,最近,每次我尝试时sudo apt-get upgrade都会发生以下情况:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up glibc (2.27-1) ...
chown: invalid user: ‘builder:builder’
chown: invalid user: ‘builder:builder’
dpkg: error processing package glibc (--configure):
 installed glibc package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 glibc
E: Sub-process /usr/bin/dpkg returned an error code (1)

即使我尝试,也会sudo apt autoremove出现同样的问题。

我尝试用 Google 搜索这个问题,但无法解决它。

有人知道如何解决这个问题吗?

先感谢您。


== 编辑 ==

当我跑步时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.27-3ubuntu1          amd64                  GNU C Library: Shared libraries
ii  libc6:i386                         2.27-3ubuntu1          i386                   GNU C Library: Shared libraries

当我这样做时,apt policy libc6我得到:

libc6:
  Installed: 2.27-3ubuntu1
  Candidate: 2.27-3ubuntu1
  Version table:
 *** 2.27-3ubuntu1 500
        500 http://ubuntu.mirrors.ovh.net/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

== 编辑 2 ==

的输出为apt-cache policy glibc

glibc:
  Installed: 2.27-1
  Candidate: 2.27-1
  Version table:
 *** 2.27-1 100
        100 /var/lib/dpkg/status

答案1

感谢@fkraiem,我最终通过简单删除解决了这个问题glibc

正如 @fkraiem 在上面的评论中所说,该软件包glibc在 Ubuntu 中并不正式存在。我可能已经安装了它,尽管我不记得是什么时候。所以,很可能我不需要它,应该删除它。

移除它之后,一切看起来都很好,并且再次正常工作。

相关内容