我今天刚安装。我主要使用 kali,但我想尝试一下。任何帮助,将不胜感激!
root@ubuntu:/home/<MY USERNAME># apt-get install git
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:
git : Depends: liberror-perl but it is not installable
E: Unable to correct problems, you have held broken packages.
答案1
首先尝试使用 apt 本身修复损坏的软件包
sudo apt install -f
这将解决依赖性问题。
如果问题仍然存在,请尝试使用 dpkg 重新配置软件包
sudo dpkg --configure-a
此 dpkg 配置命令用于防止任何安装中断或不完整。应该有助于解决常见的包问题。公寓将很好去