首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >libc6错误,不能安装任何东西

libc6错误,不能安装任何东西
EN

Ask Ubuntu用户
提问于 2020-04-23 10:27:55
回答 1查看 4.3K关注 0票数 2

我想安装python-pip,所以我运行了sudo apt install python-pip并得到了这个错误

代码语言:javascript
复制
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:
 libgcc1:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not going to be installed
 libgcrypt20:i386 : Depends: libc6:i386 (>= 2.28) but it is not going to be installed
 libgpg-error0:i386 : Depends: libc6:i386 (>= 2.28) but it is not going to be installed
                      Recommends: libgpg-error-l10n:i386
 libidn2-0:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed
 liblz4-1:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed
 liblzma5:i386 : Depends: libc6:i386 (>= 2.17) but it is not going to be installed
 libunistring2:i386 : Depends: libc6:i386 (>= 2.7) but it is not going to be installed
 python-pip : Depends: python-pip-whl (= 18.1-5) but it is not going to be installed
              Recommends: python-all-dev (>= 2.6) but it is not going to be installed
              Recommends: python-setuptools but it is not going to be installed
              Recommends: python-wheel but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

上面写着Try "apt --fix-broken install",所以我做了,得到了这个

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libc6:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  libc6:i386
0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
88 not fully installed or removed.
Need to get 0 B/2578 kB of archives.
After this operation, 12.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 269716 files and directories currently installed.)
Preparing to unpack .../libc6_2.30-0ubuntu2.1_i386.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.30-0ubuntu2.1_i386.deb (--unpack):
 new libc6:i386 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.30-0ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我试着运行sudo apt-get install -f也不起作用

那我该怎么办?Ubuntu 19.10

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-04-23 18:37:58

好的,我已经做好了

sudo fuser -kv /var/cache/debconf/config.dat

sudo apt --fix-broken install

现在它起作用了

票数 6
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1229725

复制
相关文章

相似问题

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