首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装git/无法安装任何kali linux工具

无法安装git/无法安装任何kali linux工具
EN

Unix & Linux用户
提问于 2020-03-05 22:16:41
回答 1查看 1.4K关注 0票数 0

我今天才安装的。我主要是和卡莉一起工作,但我想试试这个。任何帮助都将不胜感激!

代码语言:javascript
复制
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.
EN

回答 1

Unix & Linux用户

发布于 2020-03-05 22:50:54

首先,尝试使用apt本身修复损坏的包。

代码语言:javascript
复制
sudo apt install -f

这将解决依赖性问题。

如果它仍然存在,那么尝试使用dpkg重新配置包。

代码语言:javascript
复制
sudo dpkg --configure-a

此dpkg配置命令用于防止任何安装中断或不完整。应该有助于解决常见的包问题。那就好了

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/571401

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档