Web1 Answer. Sorted by: 401. To recreate it, first uninstall using purge to remove even configuration files and records: sudo apt-get purge nginx nginx-common nginx-full. then reinstall: sudo apt-get install nginx. If above doesn't work for you, you can also try using --force-confmiss option of dpkg. WebMay 3, 2024 · dpkg: error processing package python-cairo (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration There …
How to reinstall apt on Debian? - Unix & Linux Stack Exchange
WebSave it to file dpkg-fix.sh, make it chmod a+x dpkg-fix.sh and run sudo ./dpkg-fix.sh -x. Disclaimer/Note that -x option restores config files (in /etc) which are not restored by default. It can hose your system. It is very tricky to make any automated tool to restore that correctly, as config files are frequently customized. WebSep 5, 2010 · That's because there are still some files in place and dpkg considers the package to be configured. There are two possible routes you can take to solve this: Now that the package is installed, purge it. Run sudo apt-get purge postfix, then re-install and the config dialog should come up. Run dpkg-reconfigure postfix Share Improve this answer … easy recipe for chili cheese fries
Force apt-get to redownload and reinstall dependencies as well
Webtry the dpkg-reconfigure(8) command instead. Configuring consists of the following steps: 1. Unpack the conffiles, and at the same time back up the old conffiles, so that they can be restored if something goes 2. Run postinstscript, if provided by the package. Webaptitude install -o Dpkg::Options::=--force-confmiss mysql-server This will care for the dependencies of mysql-server and reset all the missing conf files of the lot, including mysql-common. Conflicting (remaining) files will be prompted out to be kept or reset. Unfortunately, there is a bug in aptitude, and WebThe first dpkg -i run marks dependencies, apt-get -f install installs required dependencies and the second dpkg -i successfully installs the package. Note that apt-get install -f is totally different command. – Mikko … community foundation maplewood mn