处理 deb 包时出现“损坏的文件系统 tarfile - 损坏的包存档”

处理 deb 包时出现“损坏的文件系统 tarfile - 损坏的包存档”

我不断收到以下消息:

Check if you are using third-party repositories. If so, disable them, because they are a common source of problems.
Furthermore, run the following command in a Terminal: apt-get install -f

我不知道如何禁用第三方存储库,甚至不知道我是否有这些存储库。每次尝试时我都会遇到同样的问题sudo apt-get install -f

dpkg: error processing /var/cache/apt/archives/libflite1_1.4-release-2_i386.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libflite1_1.4-release-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

这通常是由于下载不完整或未使用适当工具对 deb 文件进行某种操作造成的。删除软件包并重试可以解决问题:

sudo apt-get clean
sudo apt-get install -f

答案2

安装 ubuntu tweak 以禁用第三方 repos

sudo rm /var/cache/apt/archives/libflite1_1.4-release-2_i386.
sudo purge libflite1_1.4-release-2_i386
sudo apt clean && sudo auto-remove

相关内容