首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >处理libc6 6:amd64 64时遇到错误

处理libc6 6:amd64 64时遇到错误
EN

Unix & Linux用户
提问于 2020-08-23 16:21:51
回答 1查看 6.1K关注 0票数 0

我安装了WSL Kali Linux,然后输入了apt-get update,所以当我输入apt-get dist-upgrade进行升级时,我看到了以下内容

代码语言:javascript
复制
$ sudo apt-get dist-upgrade 
Reading package lists... Done
Building dependency tree 
Reading state information... Done 
You might want to run 'apt --fix-broken install' to correct these. 
The following packages have unmet dependencies:
 bsdmainutils : Depends: calendar but it is not installed
                Depends: ncal but it is not installed
 libc-bin : Depends: libc6 (< 2.31) but 2.31-2 is installed
            Recommends: manpages but it is not installed 
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

我尝试了apt --fix-broken install,但是错误消息继续说:

代码语言:javascript
复制
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  calendar cpp cpp-9 libc-bin libisl22 libmpc3 libmpfr6 ncal
Suggested packages:
  cpp-doc gcc-9-locales
Recommended packages:
  manpages
The following NEW packages will be installed:
  calendar cpp cpp-9 libisl22 libmpc3 libmpfr6 ncal
The following packages will be upgraded:
  libc-bin
1 upgraded, 7 newly installed, 0 to remove and 67 not upgraded.
6 not fully installed or removed.
Need to get 0 B/13.4 MB of archives.
After this operation, 34.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libc6:amd64 (2.31-2) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
sleep: cannot read realtime clock: Invalid argument
dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while procesing:
 libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

这是截图。我真的需要帮助来解决这个问题

代码语言:javascript
复制
EN

回答 1

Unix & Linux用户

发布于 2020-08-27 12:12:26

编辑libc6的postinst

代码语言:javascript
复制
vi /var/lib/dpkg/info/libc6\:amd64.postinst

并评论一下这句话

代码语言:javascript
复制
set -e

重新运行坏了的修补程序

代码语言:javascript
复制
apt-get --fix-broken install
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/605927

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档