Nikolay Chuprina Nikolay Chuprina 3 3 bronze badges. Does that actually restore missing configuration files? No, that doesn't work.
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 Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 2. Related Please edit your question rather than posting comments with further requirements for an answer. That's how this site works. It shouldn't be that difficult to use find -exec to automate gertvdijk 's solution.
So don't delete. Move them. And read the manpages before asking for documentation: manpages. Show 1 more comment. Active Oldest Votes. Improve this answer. Community Bot 1. Add a comment. Asked 5 years, 9 months ago. Active 9 months ago. Viewed 10k times. Improve this question. Braiam Cerin Cerin 1, 2 2 gold badges 14 14 silver badges 23 23 bronze badges. Related possibly dupe unix. Lets turn this duplicate arround, this question deals with the more generic problem and has an answer that goes to the point solving the problem stated in the title.
Add a comment. Luckily, we can fix the issue by using the purge option of apt-get. The purge option of apt-get is similar to the remove function however with one difference. The purge option will remove both the package and configurations.
After running apt-get purge we can see that the package was fully removed by running dpkg --list again. Now that the package has been fully purged, and the state of it is now not-installed ; we can re-install without errors.
As you can see from the output above, the supervisor package has been installed and started. After running into this issue I realized, most of the times I ran apt-get remove I really wanted the functionality of apt-get purge. While it is nice to keep configurations handy in case we need them after re-installation, using remove all the time also leaves random config files to clutter your system.
Free to cause configuration issues when packages are removed then re-installed. What I did Since the method I originally used caused at least 10 minutes of head scratching; I thought it would be useful to share what I did and how to resolve it. Done Building dependency tree Reading state information After this operation, 1, kB disk space will be freed. Removing supervisor Stopping supervisor: supervisord.
0コメント