Repairing your Ubuntu or Linux Dist. manually
If you are a regular user of any Linux based operating System then it is for sure that you have faced the error of "Broken Packages". When you are installing something new to your OS, it says Package cannot be installed because Package A depends on Package B, but Package B cannot be installed because of broken packages and this issue might occur while updating your system using Software Updater. If you have faced this error then trust me, you have a really good hand in that Linux Based OS because you have worked enough to corrupt it once.
Now making this post a little brief lets jump directly to the solution!!
There are more then one solution for it and different in OS using different packaging system, if your system is using dpkg, thus implying you'll be using apt to keep everything in tandem.
So here is a list of solutions you can try for Ubuntu and few Others:
Now making this post a little brief lets jump directly to the solution!!
There are more then one solution for it and different in OS using different packaging system, if your system is using dpkg, thus implying you'll be using apt to keep everything in tandem.
So here is a list of solutions you can try for Ubuntu and few Others:
- This is the most easy solution if you hate CLI, but is not recommended at all.
- Use Synaptic Package Manager (GUI tool to repair broken packages)
- sudo apt-get install synaptic
- Now moving to the second solution, here I'll provide you some commands and any one of the following will work for you!! Don't worry, you need not to select which one will work for you, just try executing from the first to the last. If you are smart enough and worked really enough then you can easily guess which one will work.
I have arranged them in such a way that if you start executing from first, you'll get the issue resolved with least expected time, so here we go with the list - sudo apt-get update --fix-missing
- sudo dpkg --configure -a
- sudo apt-get install -f
- If you the problem still persist then you have to manually edit the dpkg file.
- sudo nano /var/lib/dpkg/status
- Locate the corrupt package and remove the whole block of information related to it.
With any of the above mentioned solutions, you'll definitely get your system up and running great.
Thanks for the read and if it helped you in any manner do hit the G+1 button.
Next Blog: Random(Not decided yet)
Till then,
Thanks for the read and if it helped you in any manner do hit the G+1 button.
Next Blog: Random(Not decided yet)
Till then,
Adios Lactores
Happy Blogging
Comments
Post a Comment