Hello, I am packaging tikiwiki, and want to use dbconfig-common for the database configuration. I followed the instructions in the documentation and looked at the examples, but it still yelling rude things at me. First I installed my package and said NO to the first question, about whether dbconfig-common should configure the databases at all. The result was that dpkg failed to configure the package, giving the message: sanity check failed for dbc_dbtype This makes sense since the dbtype (a debconf variable) was empty - as it should be since I never got a chance to select a database type, having answered that I would configure the database manually. Every subsequent attempt to remove the package failed with the same error. Finally I managed to get rid of the package by removing the sanity check from one of the dbconfig-common scripts. Then I installed the package again, and now told debconf to configure a MySQL database for me. Now I get the following result: $ sudo dpkg -P tikiwiki (Reading database ... 201307 files and directories currently installed.) Removing tikiwiki ... dpkg: error processing tikiwiki (--purge): subprocess pre-removal script returned error exit status 10 dbconfig-common: writing config to /etc/dbconfig-common/tikiwiki.conf dbconfig-common: flushing administrative password dpkg: error while cleaning up: subprocess post-installation script returned error exit status 10 Errors were encountered while processing: tikiwiki $ dpkg -l tikiwiki Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ pF tikiwiki 1.9.1-1 groupware and content management system So it looks like I'm doing something wrong with dbconfig-common. Can someone point me in the right direction here? Thanks, Marcus B.
Attachment:
signature.asc
Description: OpenPGP digital signature