Search This Blog

Tuesday, April 10, 2018

not able to run apt --fix-broken install in kali

if you have multiple versions of a  package and there is a conflict of dependencies on your system.

It might happen that you wont be able to install anything or do an apt-get autoremove or apt-get –f install  or apt-get install any thing.

You can copy the package status file

$cp /var/lib/pkg/status /backup loc

Now $ leafpad /var/lib/dpkg/status

Edit the controversial package, make sure you maintain the syntax else you will get parse error

while running apt-get again from cmdline.

Remove the dependencies for a while, we can do an apt-get update/install later on.


Once you have removed the problematic entry, for example the package or its dependency which was creating the problem.

Run the apt --fix-broken install –f again and apt-get update after this.

No comments:

Post a Comment