new install of bugzilla looks for deleted /etc/bugzilla/dbconfig-params
Any advice on how I can coerce the reinstall to provide the missing files such as /etc/bugzilla/dbconfig-params in the same way a fresh install would?
The full story:
I've been working on getting bugzilla installed on debian.
I decided I needed to start again after making a mess of the install.
So I uninstalled it using apt-get remove bugzilla but found that there were some files remaining, like: /etc/bugzilla/dbconfig-params
So I deleted these to tidy up.
Then i tried reinstalling bugzilla using apt-get install bugzilla
But it complained that /etc/bugzilla/dbconfig-params was missing.
Now you might think that this is not surprising given that I had removed it, and that it is my fault, and I shouldn't have done it.
But what I think is that, if I am reinstalling bugzilla, then it should make no assumption about what is there beforehand, what is already present. There should be no dependency on the current state of the machine. The bugzilla re-install should have the same capability as a new fresh install where there hadn't been a previous install.
Any advice on how I can coerce the reinstall to provide the missing files in the same way a fresh install would?
See the term output below for the woeful story:
rockstar:~# apt-get install bugzilla
Reading package lists... Done
Building dependency tree... Done
libnet-ldap-perl libgd-text-perl libgd-graph-perl libgd-gd2-perl libgd-noxpm-perl ruby
libchart-perl libxml-parser-perl perlmagick
The following NEW packages will be installed
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/822kB of archives.
After unpacking 4526kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package bugzilla.
(Reading database ... 102628 files and directories currently installed.)
Unpacking bugzilla (from .../bugzilla_2.22.1-2_all.deb) ...
Setting up bugzilla (2.22.1-2) ...
dbconfig-common: writing config to /etc/dbconfig-common/bugzilla.conf
Not replacing deleted config file /etc/bugzilla/dbconfig-params
dbconfig-common: flushing administrative password
/var/lib/dpkg/info/bugzilla.postinst: line 107: /etc/bugzilla/dbconfig-params: No such file or directory
dpkg: error processing bugzilla (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)