>故障排除“ dpkg-deb:lzma错误:压缩数据损坏”
>遇到“ dpkg-deb:lzma错误:压缩数据是损坏的” debian 12更新中的消息表示损坏的软件包文件。 本指南提供了一个简单的解决方案。错误
错误消息通常类似于以下内容:
>
<code>[...]Unpacking libreoffice-common (4:24.8.2-1~bpo12+1) over (4:24.2.6-2~bpo12+1) ...dpkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/libreoffice-common_4%3a24.8.2-1~bpo12+1_all.deb' (size=19330668) member 'data.tar': lzma error: compressed data is corruptdpkg-deb: error: <decompress> subprocess returned error exit status 2dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_4%3a24.8.2-1~bpo12+1_all.deb (--unpack): cannot copy extracted data for './usr/lib/libreoffice/share/template/common/presnt/Freshes.otp' to '/usr/lib/libreoffice/share/template/common/presnt/Freshes.otp.dpkg-new': unexpected end of file or stream[...]E: Sub-process /usr/bin/dpkg returned an error code (1)</decompress></code>
遇到了dpkg
> file的问题(在此示例中,.deb
)。
libreoffice-common
解决方案
遵循以下步骤解决问题:
使用以下方式从APT缓存中删除损坏的软件包
sudo apt clean>
sudo apt update尝试升级:
>
修复损坏的软件包(如有必要):sudo apt upgrade如果步骤3失败,请使用此命令来修复损坏的依赖关系:
>或者,较短的版本:
sudo apt --fix-broken install
这将试图重新安装问题的软件包,解决腐败或依赖性问题。
>sudo apt install -f结论
修复“ sub-process/usr/bin/dpkg返回错误代码(1)”
>如何修复破损的Ubuntu OS而不重新安装>如何修复ubuntu上的busybox initramfs错误
修复“遇到没有包装的部分:ubuntu以上是如何修复\的详细内容。更多信息请关注PHP中文网其他相关文章!