16.04无法运行apt-get任何东西,总是得到一个错误

用户名

我收到此错误:

$ apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-extra-4.4.0-53-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 161 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 227614 files and directories currently installed.)
Removing linux-image-extra-4.4.0-53-generic (4.4.0-53.74) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-53-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
sort: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.275' not found (required by sort)
sort: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.4' not found (required by sort)
sort: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.275' not found (required by sort)
run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-53-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-53-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我尝试使用dpkg删除有问题的软件包时:

$ sudo dpkg --purge linux-image-extra-4.4.0-53-generic
(Reading database ... 227614 files and directories currently installed.)
Removing linux-image-extra-4.4.0-53-generic (4.4.0-53.74) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-53-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-53-generic /boot/vmlinuz-4.4.0-53-generic
sort: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.275' not found (required by sort)
sort: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.4' not found (required by sort)
sort: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.275' not found (required by sort)
run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-53-generic (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-53-generic

无法安装libc(不确定为什么不存在)b / c我无法运行apt-get


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial

$ apt-cache policy libc6 coreutils linux-image-extra-4.4.0-53-generic
libc6:
  Installed: 2.23-0ubuntu5
  Candidate: 2.23-0ubuntu5
  Version table:
 *** 2.23-0ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.23-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
coreutils:
  Installed: 8.25-2ubuntu2
  Candidate: 8.25-2ubuntu2
  Version table:
 *** 8.25-2ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-extra-4.4.0-53-generic:
  Installed: 4.4.0-53.74
  Candidate: 4.4.0-53.74
  Version table:
 *** 4.4.0-53.74 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
大卫·福斯特(David Foerster)

看起来像软件包libc6和/或coreutils已损坏。要解决此问题,您需要在没有Apt软件包操作帮助的情况下重新安装它们。

  1. libc6coreutils软件包文件下载到一个临时目录(或您希望保留到安装结束的任何位置):

    cd /tmp
    apt-get download libc6 coreutils
    
  2. 安装它们:

    sudo dpkg -i {libc6,coreutils}_*.deb
    
  3. 解决Apt剩余的包装问题:

    sudo apt-get install -f
    

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Apt-Get错误;无法安装任何东西

来自分类Dev

移至另一个国家后无法更新或安装任何东西

来自分类Dev

移至另一个国家后无法更新或安装任何东西

来自分类Dev

我无法在 Ubuntu 16.04 中安装任何东西“总是显示相同的错误”

来自分类Dev

无法安装任何东西,dpkg错误

来自分类Dev

无法安装任何东西,dpkg错误

来自分类Dev

无法“sudo apt install”任何东西

来自分类Dev

无法运行任何apt-get命令

来自分类Dev

无法运行任何apt-get命令

来自分类Dev

如何修复apt-get?我无法安装或更新任何东西

来自分类Dev

由于错误我无法在PC上安装任何东西

来自分类Dev

由于错误我无法在PC上安装任何东西

来自分类Dev

无法安装任何东西,相关性错误

来自分类Dev

输入/输出错误,无法安装任何东西

来自分类Dev

libc6 错误,无法安装任何东西

来自分类Dev

以下软件包具有未满足的依赖性:无法安装任何软件。Ubuntu的16:04

来自分类Dev

无法运行apt-get -f install

来自分类Dev

删除一个字符串,并得到右边的任何东西

来自分类Dev

无法运行 apt-get upgrade ,总是错误无法删除 linux-image-4.15.0-53-generic

来自分类Dev

CouchDB-为什么我的举报总是虚假的?我无法适当减少任何东西

来自分类Dev

终端无法安装任何东西

来自分类Dev

无法在 Dockerfile 中安装任何东西

来自分类Dev

无法更新或安装任何东西

来自分类Dev

无法让我的方法返回任何东西

来自分类Dev

无法再安装或删除任何东西

来自分类Dev

Windows 16可以检测到Ubuntu16无法检测第二个屏幕

来自分类Dev

无法在18.04上安装或删除任何东西,导致DPKG错误

来自分类Dev

帮助!由于子流程错误,我无法安装任何东西[已解决]

来自分类Dev

运行 sudo apt update 时无法获取错误

Related 相关文章

  1. 1

    Apt-Get错误;无法安装任何东西

  2. 2

    移至另一个国家后无法更新或安装任何东西

  3. 3

    移至另一个国家后无法更新或安装任何东西

  4. 4

    我无法在 Ubuntu 16.04 中安装任何东西“总是显示相同的错误”

  5. 5

    无法安装任何东西,dpkg错误

  6. 6

    无法安装任何东西,dpkg错误

  7. 7

    无法“sudo apt install”任何东西

  8. 8

    无法运行任何apt-get命令

  9. 9

    无法运行任何apt-get命令

  10. 10

    如何修复apt-get?我无法安装或更新任何东西

  11. 11

    由于错误我无法在PC上安装任何东西

  12. 12

    由于错误我无法在PC上安装任何东西

  13. 13

    无法安装任何东西,相关性错误

  14. 14

    输入/输出错误,无法安装任何东西

  15. 15

    libc6 错误,无法安装任何东西

  16. 16

    以下软件包具有未满足的依赖性:无法安装任何软件。Ubuntu的16:04

  17. 17

    无法运行apt-get -f install

  18. 18

    删除一个字符串,并得到右边的任何东西

  19. 19

    无法运行 apt-get upgrade ,总是错误无法删除 linux-image-4.15.0-53-generic

  20. 20

    CouchDB-为什么我的举报总是虚假的?我无法适当减少任何东西

  21. 21

    终端无法安装任何东西

  22. 22

    无法在 Dockerfile 中安装任何东西

  23. 23

    无法更新或安装任何东西

  24. 24

    无法让我的方法返回任何东西

  25. 25

    无法再安装或删除任何东西

  26. 26

    Windows 16可以检测到Ubuntu16无法检测第二个屏幕

  27. 27

    无法在18.04上安装或删除任何东西,导致DPKG错误

  28. 28

    帮助!由于子流程错误,我无法安装任何东西[已解决]

  29. 29

    运行 sudo apt update 时无法获取错误

热门标签

归档