!['libfakeroot:amd64' 缺少最后一个换行符](https://linux22.com/image/1205830/'libfakeroot%3Aamd64'%20%E7%BC%BA%E5%B0%91%E6%9C%80%E5%90%8E%E4%B8%80%E4%B8%AA%E6%8D%A2%E8%A1%8C%E7%AC%A6.png)
我已经尝试了 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,然后尝试升级。