dpkg依赖问题

dpkg依赖问题

我在升级 Debian 10 Linux 机器时遇到问题。在我输入sudo apt update && upgrade并完成所有下载后,我遇到了依赖关系问题,我应该解决该问题,sudo apt --fix-broken install 但仍然遇到以下错误:

E: Invalid archive signature
E: Internal error, could not locate member control.tar.{zstlz4gzxzbz2lzma}
E: Prior errors apply to /var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: '/var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb' is not a Debian format archive
dpkg: error processing archive /var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)*****

除非我清除解包依赖项问题,否则依赖项将永远不允许我在终端上安装任何包。在此输入图像描述

答案1

第一次运行:

sudo apt clean
sudo apt reinstall libpolkit-agent

如果不起作用运行:

sudo mv /var/lib/dpkg/info/libpolkit-agent.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libpolkit-agent
sudo apt install libpolkit-agent

相关内容