缺少最后一个换行符

缺少最后一个换行符

我对这里的一切都很陌生,今天才开始使用 ubuntu。另外,我不知道如何使用可以清除代码的位,所以很抱歉。我正在尝试git为一个项目安装,它显示以下内容:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:2.30.2) but it is not going to be installed
       Depends: git-man (< 1:2.30.2-.) but it is not going to be installed
 qemu-block-extra : Depends: qemu-system-x86 (= 1:5.2+dfsg-9ubuntu3) but 1:5.2+dfsg-9ubuntu2 is to be installed or
                             qemu-system-arm (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                             qemu-system-mips (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                             qemu-system-ppc (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                             qemu-system-sparc (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                             qemu-system-misc (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                             qemu-system-s390x (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                             qemu-system-x86-xen (= 1:5.2+dfsg-9ubuntu3) but it is not installable
 qemu-system-gui : Depends: qemu-system-x86 (= 1:5.2+dfsg-9ubuntu3) but 1:5.2+dfsg-9ubuntu2 is to be installed or
                            qemu-system-arm (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                            qemu-system-mips (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                            qemu-system-ppc (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                            qemu-system-sparc (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                            qemu-system-misc (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                            qemu-system-s390x (= 1:5.2+dfsg-9ubuntu3) but it is not going to be installed or
                            qemu-system-x86-xen (= 1:5.2+dfsg-9ubuntu3) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

于是我跑了:

sudo apt --fix-broken install

并得到这个:

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

有人能帮忙吗?我知道其他人也有这个问题,但我猜是软件包不同(就像我说的,我是新手),我的是quemu-block-extra

请尽可能地简化它。

答案1

谢谢大家,这是 SD 卡损坏的问题

相关内容