26 Jul

Remove broken packages in Ubuntu

Remove broken packages in Ubuntu

In order to remove broken packages in Ubuntu, please execute the below steps,

Step 1 : To update your package list.

sudo apt-get update

Then to clean up any partial packages, execute,

sudo apt-get autoclean

To clean up the apt cache, please execute,

sudo apt-get clean

To clean up any unneeded dependencies, please execute,

sudo apt-get autoremove

Finally to identify the broken package and to forcefully remove it, please execute the below command,

sudo dpkg –remove -force –force-remove-reinstreq package name

In case you are facing any issues, please try,

sudo dpkg –remove –force-remove-reinstreq package name

Also, remove any dependent packages, if any.

Alternatively, you may try the below as well,

sudo apt-get update -fix-missing

then execute,

sudo dpkg -configure -a

Once done, please exsecute,

sudo apt-get install -f

Leave a Reply

Your email address will not be published. Required fields are marked *

eleven − 4 =