运行软件更新程序后,Ubuntu 18.04 上的软件包系统损坏

运行软件更新程序后,Ubuntu 18.04 上的软件包系统损坏

运行软件更新程序后,Ubuntu 18.04 上的软件包系统损坏

我从 GUI 运行了软件更新程序,然后弹出此错误:我没有启用任何 ppa 或存储库

我怎样才能解决这个问题?

错误

我也跑了

sudo apt--fix-broken 安装

useoh@s12s72:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libllvm10 libllvm10:i386 linux-gcp-5.3-tools-5.3.0-1026 linux-gcp-5.3-tools-5.3.0-1029
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.15.0-111-generic
Suggested packages:
  fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-headers-4.15.0-111-generic
The following NEW packages will be installed:
  linux-image-4.15.0-111-generic
0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
2 not fully installed or removed.
Need to get 0 B/8,008 kB of archives.
After this operation, 8,411 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 972697 files and directories currently installed.)
Preparing to unpack .../linux-image-4.15.0-111-generic_4.15.0-111.112_amd64.deb ...
Unpacking linux-image-4.15.0-111-generic (4.15.0-111.112) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-111-generic_4.15.0-111.112_amd64.deb (--unpack):
 dpkg-deb --fsys-tarfile subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.15.0-111-generic_4.15.0-111.112_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

它就在你的输出中:一个损坏的包。

    Unpacking linux-image-4.15.0-111-generic (4.15.0-111.112) ...
    dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
  1. 从档案中删除损坏的包:

    sudo apt clean linux-image-4.15.0-111-generic
    
  2. 重新下载正确的包:

    sudo apt upgrade
    

相关内容