I recently became acquainted with the restorative power of dpkg-reconfigure
following a bodged installation of the GNU mailutils
package. At the end of the installation process a dialog (ncurses?) appears prompting the user to make choices and fill in some blanks. That's all well and good, and I suppose if you're proficient enough, you simply avoid making any mistakes in the "post-install configuration dialog", or PICD
as I'll call it in the sequel.
I'm not proficient, and needed to re-run the 'PICD'. Not yet being acquainted with dpkg-reconfigure
, I assumed that it was necessary to un-install, then re-install. But when I did that, the installation completed - but the 'PICD' did not re-appear. I tried a reboot
, but still no 'PICD'!?!
Eventually, someone clued me about dpkg-reconfigure
, but dpkg-reconfigure mailutils
also failed to restore the 'PICD'. It turned out that it was not mailutils
that needed to be reconfigured - it was postfix
- the MTA. This took a while to sort out because the Debian packager for mailutils
cleverly hid postfix
under an innocuous "virtual package" called default-mta
. And so the magic required to get a second chance for re-configuration was: dpkg-reconfigure postfix
. This discovery enabled my trial-and-error approach to configuration, and I finally completed it.
But this has raised a question or two for me:
What is it that disables presentation of the 'PICD' on subsequent installations? I mean, how does the install script know that the user has already seen the 'PICD'? Is there some value recorded & saved by the installer to prevent the 'PICD' replay?
Why does the installer disable subsequent presentations of the 'PICD' (without the
dpkg-reconfigure
incantation)? What is the point of that actually?