1. 首页
  2. 系统运维
  3. Linux

Ubuntu apt安装软件报错 files list file for package is missing

Ubuntu系统用apt安装软件时报这个错误:

  1. Selecting previously unselected package python3-pycurl.
  2. dpkg: unrecoverable fatal error, aborting:
  3. files list file for package ‘libc-bin’ is missing final newline
  4. E: Sub-process /usr/bin/dpkg returned an error code (2)

导致无法正常安装。参考其他教程,解决办法如下。

  1. root@ebs-46835:~# ls -lrt /var/lib/dpkg/info/libc-bin.
  2. libc-bin.conffiles  libc-bin.list       libc-bin.md5sums    libc-bin.postinst   libc-bin.triggers
  3. root@ebs-46835:~# ls -lrt /var/lib/dpkg/info/libc-bin.*
  4. -rw-r–r– 1 root root   18 Jun 17  2017 /var/lib/dpkg/info/libc-bin.triggers
  5. -rwxr-xr-x 1 root root  375 Jun 17  2017 /var/lib/dpkg/info/libc-bin.postinst
  6. -rw-r–r– 1 root root   87 Jun 17  2017 /var/lib/dpkg/info/libc-bin.conffiles
  7. -rw-r–r– 1 root root 2449 Jun 17  2017 /var/lib/dpkg/info/libc-bin.md5sums
  8. -rw-r–r– 1 root root 1587 Jun 20  2017 /var/lib/dpkg/info/libc-bin.list
  9. root@ebs-46835:~# rm -f /var/lib/dpkg/info/libc-bin.*
  10. root@ebs-46835:~# dpkg –configure -a
  11. root@ebs-46835:~# apt update

接下来就可以正常安装了。

联系我们

0574-55011290

QQ:248687950

邮件:admin@nbhao.org

工作时间:周一至周五,9:00-18:00,节假日休息

QR code