0

I just installed today. I mainly work with kali but i wanted to try this. Any help would be appreciated!

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
  • This is a possible duplicate: How to fix held broken packages?. If you already tried something similar please provide your steps next time or edit your post.
    – Maze
    Mar 5, 2020 at 22:45

1 Answer 1

0

First try to fix the broken packages using apt itself

sudo apt install -f

This will resolve the dependency issues.

If it persists then try to reconfigure the packages using dpkg

sudo dpkg --configure-a

This dpkg configure command is for in case any installations were interrupted or incomplete. Should help with resolving common package problems. The apt will be good to go

3
  • what package would I have broken? I haven't downloaded anything yet.
    – David B
    Mar 6, 2020 at 0:19
  • @NhlaukoG (this is for my question above)
    – David B
    Mar 6, 2020 at 0:30
  • Fair point. But remember, Kali itself now installs packages manually during setup. Was also surprised, my internet or something weird crashed during my installation and I had broken packages on boot. I used those particular commands to get back on track.
    – NhlalukoG
    Mar 8, 2020 at 21:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .