无法在kali中安装synaptic

无法在kali中安装synaptic

以下是安装synaptic时的错误

*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:
 libfolks25 : Breaks: libfolks-eds25 (< 0.8.0-2~) but 0.6.9-1+b1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.****

答案1

看到这个错误,我猜你以前apt安装过synaptic。

有时,apt会遇到有关依赖关系的错误,并且无法修复它们。如果您想修复此错误并强制安装 synaptic,则必须首先使用命令安装aptitude(相当于) 。aptapt-get install aptitude

然后使用命令aptitude进行安装。它会告诉您依赖项存在错误(就像告诉您的那样),但它也会提出解决方案来修复错误并安装您想要的软件包。每次它为您提供解决方案时,请阅读它,然后按如果您接受该解决方案,或显示另一个解决方案,直到找到将安装的解决方案。synapticaptitude install synapticaptynsynaptic

答案2

弄乱存储库或使用实验存储库也会导致此错误。

如果您使用 debian,则仅使用发行版提供的适当存储库

类型:-

sudo nano /etc/apt/sources.list

德班:-

deb http://ftp.debian.org/debian stable main contrib non-free

卡利:-

deb http://http.kali.org/kali kali-rolling main non-free contrib

sudo apt update

上面的错误清楚地表明您正在使用实验存储库。

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

相关内容