我的 kali linux 出了什么问题?E:错误,pkgProblemResolver::Resolve 生成​​中断,这可能是由保留的包引起的。我是新手

我的 kali linux 出了什么问题?E:错误,pkgProblemResolver::Resolve 生成​​中断,这可能是由保留的包引起的。我是新手

当发生这种情况时,我正在安装这个包。

root@kali:~/airgeddon# apt install isc-dhcp-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gsettings-desktop-schemas : Breaks: mutter (< 3.31.4) but 3.30.2-7 is to be installed
 linux-headers-4.19.0-kali4-amd64 : Depends: linux-compiler-gcc-8-x86 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

如何解决这一困境?

答案1

只需清除 dpkg/status 即可,如下所示...

leafpad /var/lib/dpkg/状态

全选[Ctrl+A],然后删除(Del)

键入以下内容确保状态已被清除...

猫/ var / lib / dpkg /状态

更新 apt 并安装失败的软件包......

apt 更新 apt 安装 -f

在此处输入图片描述

现在安装 DHCP 服务器...

sudo apt install -y isc-dhcp-server

相关内容