Force reinstall apt-get




















The --reinstall flag is a shortcut for an apt-get command used to reinstall packages, using the most up-to-date versions. This is useful for packages with many reverse dependencies. In this tutorial you will learn how to use apt-get reinstall to reinstall packages on Debian and Ubuntu. Note: Using the --purge remove option to remove packages and installing them again achieves similar results. However, it also erases configuration files.

Using the --reinstall command is a simple process. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.

Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Related 1. Hot Network Questions. Active Oldest Votes. Improve this answer. Thanks for answering your own question. Could you maybe share the dpkg command used, please? Did you use dpkg -i foobar. I just edited my answer and added the dpkg command. That link is broken now. But you can still find the list of available apt distributions by going here — Greg. Greg After almost three years, I've now edited the answer to include the correct link.

Gilles 'SO- stop being evil' k gold badges silver badges bronze badges. In case of conflicts, it means you installed the wrong version of something. Don't uninstall what's already there, instead install the correct version of what was removed. If you have a broken dependency which I have encountered with openjdk , you will want to purge the package and force it to skip over dependency problems:.

I found the answer on another forum. Suppose we need to remove apache broken package. Initially we have to open the status file and search for the package apache. Remove the entire package description and save the status file. Then try using apt-get -f install and apt-get clean.

I had a problem with broken kodi package. I opened synaptic package manager and used the "broken" filter to locate the package and marked it for complete removal. It worked like a champ.

Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. How to delete broken packages in ubuntu Ask Question. Asked 7 years, 4 months ago. Active 7 months ago. Viewed k times. Use the following command: sudo apt-get -f install but I get the following response: Preparing to unpack Unpacking nodejs 0. Improve this question. Krasimir Krasimir 1 1 gold badge 7 7 silver badges 10 10 bronze badges.

Here few answers has suggested --force-remove-reinstreq and --force-overwrite.



0コメント

  • 1000 / 1000