>故障排除“ 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
>或者,較短的版本:
sudo apt --fix-broken install
這將試圖重新安裝問題的軟件包,解決腐敗或依賴性問題。
>sudo apt install -f
修復“ sub-process/usr/bin/dpkg返回錯誤代碼(1)”
>如何修復破損的Ubuntu OS而不重新安裝>如何修復ubuntu上的busybox initramfs錯誤
修復“遇到沒有包裝的部分:ubuntu以上是如何修復\的詳細內容。更多資訊請關注PHP中文網其他相關文章!