【问题标题】:Error trying to upgrade Raspbian (Jessie)尝试升级 Raspbian (Jessie) 时出错
【发布时间】:2021-01-07 17:01:38
【问题描述】:

当尝试使用 sudo apt-get upgrade 在我的 Raspberry Pi 2 上升级我的 Raspbian (8.0 jessie) 时,我收到以下错误:

dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/perl_5.20.2-3+deb8u12_armhf.deb (--unpack):
 cannot copy extracted data for './usr/lib/arm-linux-gnueabihf/perl/5.20.2/auto/Unicode/Collate/Collate.so' to 

'/usr/lib/arm-linux-gnueabihf/perl/5.20.2/auto/Unicode/Collate/Collate.so.dpkg-new': unexpected end of file or stream
Preparing to unpack .../perl-base_5.20.2-3+deb8u12_armhf.deb ...
Unpacking perl-base (5.20.2-3+deb8u12) over (5.20.2-3+deb8u6) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/perl-base_5.20.2-3+deb8u12_armhf.deb (--unpack):
 cannot copy extracted data for './usr/share/perl/5.20.2/unicore/lib/Nt/Nu.pl' to 

'/usr/share/perl/5.20.2/unicore/lib/Nt/Nu.pl.dpkg-new': unexpected end of file or stream
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/perl_5.20.2-3+deb8u12_armhf.deb
 /var/cache/apt/archives/perl-base_5.20.2-3+deb8u12_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人有什么想法吗? 我已经完成了sudo apt-get updatesudo apt-get clean

【问题讨论】:

    标签: raspberry-pi raspbian


    【解决方案1】:

    deb 文件本身已损坏。 您可以删除它,然后再次运行更新/升级。它将下载一个新版本。

    像这样:

    cd  /var/cache/apt/archives
    
    sudo rm perl_5.20.2-3+deb8u12_armhf.deb
    
    sudo apt-get update
    sudo apt-get upgrade -y
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-24
      • 1970-01-01
      • 1970-01-01
      • 2022-07-14
      • 1970-01-01
      • 1970-01-01
      • 2019-03-10
      • 1970-01-01
      相关资源
      最近更新 更多