我正在使用 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
出现同样的问题。
我试图用谷歌搜索这个问题,但我无法解决它。
有谁知道如何解决这个问题?
先感谢您。
== 编辑 ==
当我跑步时,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
感谢@fkraiem,我终于通过简单地删除解决了这个问题
glibc
。正如@fkraiem 在上面的评论中所说,该软件包
glibc
在 Ubuntu 中并不正式存在。我可能已经安装了它,即使我不记得是什么时候安装的。所以,很可能我不需要它并且应该删除它。删除它后,一切似乎都很好并再次正常工作。