被apt --fix-broken安装卡住了(libc6:amd64包安装后)。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了被apt --fix-broken安装卡住了(libc6:amd64包安装后)。相关的知识,希望对你有一定的参考价值。

我的系统运行在WSL里面,我每隔几天就会租借升级一次.我卡在一个包的安装上,正在寻找解决这个问题的方法。

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libbind9-161 libdns-export1107 libdns1107 libdns1109 libirs161 libisc-export1104 libisc1104 libisc1105 libisccc161
  libisccfg163 liblwres161 liboauth0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libc-bin
The following packages will be upgraded:
  libc-bin
1 upgraded, 0 newly installed, 0 to remove and 882 not upgraded.
6 not fully installed or removed.
Need to get 0 B/633 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up libc6:amd64 (2.31-0ubuntu6) ...
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 processing:
 libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

接下来我可以尝试什么?

答案

我遇到了同样的问题,这个过程从 此错误报告 固定它。

编辑: /var/lib/dpkg/info/libc6:amd64.postinst

并划线

# set -e

所以美元 apt-get -f install 可以继续。

另一答案
  1. sudo mv varlibdpkginfo varlibdpkginfo_old     
  2. sudo mkdir varlibdpkginfo             
  3. sudo apt-get update && sudo apt-get -f install
  4. sudo mv varlibdpkginfo* varlibdpkginfo_old    
  5. sudo rm -rf varlibdpkginfo             
  6. sudo mv varlibdpkginfo_old varlibdpkginfo  

以上是关于被apt --fix-broken安装卡住了(libc6:amd64包安装后)。的主要内容,如果未能解决你的问题,请参考以下文章

linux 问题一 apt-get install 被 lock

被apt --fix-broken安装卡住了(libc6:amd64包安装后)。

解析Javac源码APT执行原理

无法加载缓存键:拉取访问被拒绝 powershell

求助大神,kali更新源apt-get出现问题

[百家号]APT组织简介2019