%20%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E4%BB%BB%E4%BD%95%20dpkg%20%E6%88%96%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%20%E6%88%91%E5%B0%9D%E8%AF%95%E4%BA%86%E5%A4%9A%E7%A7%8D%E6%96%B9%E6%B3%95%E4%BD%86%E6%B2%A1%E6%9C%89%E6%88%90%E5%8A%9F.png)
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
。