E: 子进程 /usr/bin/dpkg 返回错误代码 (1) 无法安装任何 dpkg 或无法更新 我尝试了多种方法但没有成功

E: 子进程 /usr/bin/dpkg 返回错误代码 (1) 无法安装任何 dpkg 或无法更新 我尝试了多种方法但没有成功
dpkg: error processing package kali-desktop-xfce (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-3) ...
Errors were encountered while processing:
 php7.4-common
 php7.4-mysql
 php7.4-readline
 php7.4-cli
 grub-pc
 unattended-upgrades
 php7.4
 libnma-common
 php7.4-opcache
 libapache2-mod-php7.4
 php7.4-json
 libnma0:i386
 network-manager-openvpn-gnome
 network-manager-pptp-gnome
 libnma-dev:i386
 gir1.2-nma-1.0:i386
 network-manager-gnome
 network-manager-l2tp-gnome
 network-manager-vpnc-gnome
 kali-desktop-xfce
E: Sub-process /usr/bin/dpkg returned an error code (1)

在此输入图像描述

答案1

我建议运行以下命令:

sudo apt update
sudo apt --fix-broken install
sudo apt upgrade
sudo apt dist-upgrade

然后重复,直到错误全部消失或可靠地重复。这通常可以解决正常的分布式升级问题(我假设这就是您正在做的事情)。

如果这不起作用,那么您的来源可能有问题。在这种情况下,请发布 的输出cat /etc/apt/sources.list /etc/apt/sources.list.d/*.list

相关内容