Apt-get reinstall force
Show 1 more comment. Bryan Wilcutt Bryan Wilcutt 1 1 silver badge 2 2 bronze badges. THE nuclear option worked where purges, cleans, reinstalls, autoremoves, via both dpkg and apt-get failed. Thank you. This is the best solution if you just want to nuke everything and start over. Saved me lots of time! I also used --purge after --remove — andersevenrud.
Use dpkg -l to list packages — Sridhar Sarnobat. Open your terminal and use following command sudo dpkg --purge nodejs-legacy sudo apt-get install -f It should solve your problem. Eliah Kagan k 51 51 gold badges silver badges bronze badges.
Really helpful. I almost lost many packages that depend on a broken package. I only overwrited that broken one then everything solved — fsevenm. Tough I would not advice to do this, just if anything else fails BonifatiusK BonifatiusK 3 3 silver badges 2 2 bronze badges. This seems to be the only thing that worked for me. Even the so called 'nuclear option' of --force-remove-reinstreq couldn't delete the offending package. Thank you, sir.
This answer helped me find a less drastic solution to the problem. This showed that it was failing while trying to deluser. I manually deleted the user, commented the offending line, and was then able to successfully uninstall the package. Tarek Kalaji 4 4 bronze badges.
Zuko Zuko 1, 10 10 silver badges 12 12 bronze badges. Thanks a lot. Enjoy your day — Zuko. Mikey T. Old account Old account 1, 5 5 gold badges 20 20 silver badges 30 30 bronze badges. None of the above worked for me I used sudo aptitude. It found the error immediately and offered options. You select and it fixes it. Aryeh Beitz Aryeh Beitz 9 9 bronze badges. None of the comments before worked for me! Vokuhila-Oliba Vokuhila-Oliba 3, 4 4 gold badges 22 22 silver badges 21 21 bronze badges.
Add a comment. Active Oldest Votes. So, to use it to reinstall aptitude use: sudo apt-get install --reinstall aptitude. Improve this answer. Der Hochstapler 83k 57 57 gold badges silver badges bronze badges. What's that -- you're grepping? Show 2 more comments. This can be convenient when the package has many reverse dependencies.
Tobu 2, 18 18 silver badges 22 22 bronze badges. Milad Khajavi Milad Khajavi 1, 1 1 gold badge 10 10 silver badges 9 9 bronze badges. Thank you for being the only correct, complete, non-snarky answer. Cerin: I wouldn't call the other answers overly snarky: even the "read the man page" one actually gave the answer as well as how to find it. DavidSpillett, I strongly disagree.
The man pages are usually very poorly written and are very unfriendly to newbies. For example, the paragraph on the "--reinstall" option doesn't mention that you have to use it with the "install" argument. A newbie might rightfully ask "why do I have to tell it to install AND reinstall? You can use apt instead apt-get too: sudo apt install --reinstall packagename — Flimm.
Sometimes you need to restore config files too! This answer deserves a BIG upvote. This is what you need when you want to "fully reinstall" a package. David Spillett David Spillett Thanks a lot!
It's a long time ago that I did things like a full filesystem check or similar. Could you please give me a short hint howto do that? The filesystem will need to be unmounted or mounted read-only at the time so as this is likely to be your root filesystem you should reboot into single-user-mode or boot from something else like a live cd.
Did you do 'apt-get -f install' separately first, and then try to install beanstalkd? The answer to this question finally helped me askubuntu. Show 2 more comments. Active Oldest Votes.
Improve this answer. Why was this downvoted? This has fixed my problem with installing fake-pae launchpad. Thank you so much! Ads, it may have been downvoted because just -i won't resolve any dependency problems. Add a comment. Try sudo apt-get install -f with no package in terminal. If this still gives the error of the dependencies then you will have to issue sudo apt-get remove beanstalkd then try sudo apt-get install mysql-server beanstalkd That should install the mysql dependencies and beanstalk.
Run apt --fix-broken install with no packages.
0コメント