libegl-mesa0 软件包已损坏,由于“行太长或缺少换行符”错误而无法升级/修复

libegl-mesa0 软件包已损坏,由于“行太长或缺少换行符”错误而无法升级/修复

以下是输出sudo apt --fix-broken install

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libegl-mesa0 libegl-mesa0:i386
The following packages will be upgraded:
  libegl-mesa0 libegl-mesa0:i386
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/200 kB of archives.
After this operation, 6.144 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'libwayland-server0:i386' missing; as
suming package has no files currently installed
dpkg: warning: files list file for package 'ghostscript-x' missing; assuming pac
kage has no files currently installed
dpkg: warning: files list file for package 'libudev1:amd64' missing; assuming pa
ckage has no files currently installed
dpkg: warning: files list file for package 'gnupg' missing; assuming package has
 no files currently installed
dpkg: warning: files list file for package 'libpam-systemd:amd64' missing; assum
ing package has no files currently installed
(Reading database ... 346295 files and directories currently installed.)
Preparing to unpack .../libegl-mesa0_21.2.6-0ubuntu0.1~20.04.1_i386.deb ...
dpkg: error processing archive /var/cache/apt/archives/libegl-mesa0_21.2.6-0ubun
tu0.1~20.04.1_i386.deb (--unpack):
 too-long line or missing newline in '/var/lib/dpkg/info/libegl-mesa0:i386.trigg
ers'
Preparing to unpack .../libegl-mesa0_21.2.6-0ubuntu0.1~20.04.1_amd64.deb ...
De-configuring libegl-mesa0:i386 (21.2.2-1ubuntu1pop0~1634226723~20.04~b715ae2~d
ev) ...
dpkg: error processing archive /var/cache/apt/archives/libegl-mesa0_21.2.6-0ubun
tu0.1~20.04.1_amd64.deb (--unpack):
 too-long line or missing newline in '/var/lib/dpkg/info/libegl-mesa0:i386.trigg
ers'
Errors were encountered while processing:
 /var/cache/apt/archives/libegl-mesa0_21.2.6-0ubuntu0.1~20.04.1_i386.deb
 /var/cache/apt/archives/libegl-mesa0_21.2.6-0ubuntu0.1~20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我对 Linux 不太熟悉,所以我用了很多方法都无法解决这个问题。我该怎么办?

答案1

如果你无法解决,

做这个 :

sudo apt-get update
sudo apt-get install -y libegl-mesa0

它将安装软件包并最后检查所有软件包是否都是最新的。

sudo apt-get update

您将看到所有软件包都是最新的!问题已解决

谢谢 !!!

相关内容