我尝试terminator
在 Kali Linux 2022.2 上安装并收到以下错误。
$ sudo apt install terminator
Reading package lists... Done
Building dependency tree... Done
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: python3-psutil : Depends: python3 (< 3.9) but 3.10.4-1+b1 is to be installed
E: Unable to correct problems, you have held broken packages.
谁能指导我如何解决这个问题?
我在尝试安装之前sudo apt update
尝试过。sudo apt upgrade
terminator
答案1
您需要将 Kali 版本完全升级到 2023.3。
sudo apt update && sudo apt full-upgrade -y
sudo reboot
重新启动后,您可以安装terminator
:
sudo apt install terminator
答案2
在您提供的上述代码中,有一行内容如下:The following packages have unmet dependencies: python3-psutil : Depends: python3 (< 3.9) but 3.10.4-1+b1 is to be installed E: Unable to correct problems, you have held broken packages.
Kali Linux 喜欢告诉用户在安装任何工具或软件包期间发生的每个错误。就您而言,它告诉您有关阻止安装您想要的工具的软件包,因为它处于损坏状态。因此,要修复这些类型的错误,您可以通过从终端复制软件包名称来单独安装该软件包,在您的情况下,它是,python3.10.4-1+b1
或者您可以简单地运行此命令sudo apt --fix-broken install
,最后一行E: Unable to correct problems, you have held broken packages.
表明您的系统有多个破损的包裹。因此,就您而言,我建议您运行此命令,sudo apt --fix-broken install
而不是安装系统建议的单个 Python3 包,但是,如果您想尝试它,那么您可以运行sudo apt install python3.10.4-1+b1 -y
.之后尝试安装终结者。如果您遇到错误,指出某些软件包不是,missing
那么broken
我建议您运行以下命令:sudo apt --fix-missing install
。我希望这些信息可以帮助您解决终结者的安装问题。然而, @GAD3R还与您分享了正确的解决方案。