
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 301729 files and directories currently installed.)
Preparing to unpack .../libpython2.7_2.7.6-8ubuntu0.2_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.6-8ubuntu0.2) over (2.7.6-8) ...
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/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb (--unpack): cannot copy extracted data for './usr/lib/x86_64-linux- gnu/libpython2.7.so.1.0' to '/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
以上是 的結果apt-get upgrade -f dpkg
。感謝您在這個問題上提供的任何幫助!
編輯:
以下是更多細節。我正在使用 Linux Mint 17.2 Cinnamon 640 位元。許多程式似乎崩潰了,Synaptic 表示這些程式python2.7
已libpython2.7
損壞,但無法修復它們。每一次修復它們的嘗試都導致了
E: Sub-process /usr/bin/dpkg returned an error code (1).
我跑了apt-get update
然後apt-get upgrade -f dpkg
得到了上面的結果。
答案1
sudo apt-get clean
在命令列上運行對我有用。
來自相關問題詢問 ubuntu:
sudo apt-get clean
清除檢索到的套件檔案的本機儲存庫。
看來是某些下載的套件檔案有問題。刪除它並應用更新(再次下載檔案)修復了它。
[我本來會贊成上面的評論,但缺乏聲譽]
答案2
嘗試降級您的虛擬機器管理程式:https://ubuntuforums.org/showthread.php?t=2441506