运行软件更新程序后使用 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)
用户535733

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

    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
    

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章