'libfakeroot:amd64' 缺少最后一个换行符

'libfakeroot:amd64' 缺少最后一个换行符

我已经尝试了 askubuntu 上与此相关的所有解决方案。但这些都不起作用。请有人帮帮我。是紧急状况。

$ sudo apt upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done

The following packages will be upgraded:
  libsgutils2-2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/59.8 kB of archives.
After this operation, 4,096 B disk space will be freed.
Do you want to continue? [Y/n] Y

显示的错误是:

dpkg: unrecoverable fatal error, aborting:
     files list file for package 'libfakeroot:amd64' is missing final newline
    E: Sub-process /usr/bin/dpkg returned an error code (2)

答案1

检查磁盘是否已满。如果没有,请执行以下操作:

$ sudo apt-get clean
$ sudo apt-get update
$ sudo apt-get install --reinstall libfakeroot
$ sudo apt-get upgrade

这将清理缓存区域,然后获取软件包列表,重新安装 libfakeroot,然后尝试升级。

相关内容