Wednesday, March 20, 2019

Deleting a broken package completely in Ubuntu

In this post I would like to share some details about deleting completely a broken package in Ubuntu.

Let me setup the scenario first...

Let us assume you were trying to install a package from the package repository using apt-get, unfortunately due to some error during the installation process and unmet dependencies, the installation package results broken and you would see a DANGER Icon appearing on top of the screen indicating you have a broken package installed.

Some of us would rarely care about this broken package and would spend some time on correcting it but for some people it would be annoying having the DANGER Icon at the top and would also engage themselves in fixing it.

This post is for those who tries to keep the system clean.....

You might be searching internet for solutions, some would usually find it and rectify the error but most of us would have no idea on how to get it done.

Executing some commands sequentially as said below would help in rectifying the error easily...

Lets get into action....

It is always a better start to update the installed packages, during the update process, the process would also list the package which is found to be broken...

The command to have the update process is given below...
> sudo apt-get update
the above command would ask you to provide the password to start the execution, provide the one associated with the user account, this would also update the packages installed in the system, when it encounters the broken package, it would highlight the one... just remember the name of the package.

the next command that would come into action is given below i.e the general syntax of the command
> sudo apt-get remove --purge *<name-of-the-broken-package>*
for eg... if you have a broken package named "jenkins" then the above command can be re-written as
follows
> sudo apt-get remove --purge *jenkins*
When you press enter... the command would list all the related packages along with the broken one with the question "Do you want to continue? [Y/n]

Press "Y"/"y" to continue to remove the broken package.

And it is a good practice to update the packages again once the broken one is removed.

At this point you can see the DANGER Icon disappearing at the top of the screen.

This concludes the removal of the broken package in Ubuntu.

Hope you enjoyed reading, Thanks.

No comments:

Post a Comment

Addressing Modes of 8080 / 8085 MicroProcessor

Hi,   In this post I am going to talk about different addressing modes of 8080/8085...without much talking let us get into the topic.   Ther...