On a different, also current system, I was able to install without problems if I used dbconfig. It did not ask me this time about what instances I wanted to configure. I was able to uninstall without trouble.
If I don't use dbconfig, now I get this error: root@markvm-walnut:~# apt-get install redmine redmine-sqlite Reading package lists... Done Building dependency tree Reading state information... Done redmine-sqlite is already the newest version (3.3.1-4). redmine-sqlite set to manually installed. The following packages were automatically installed and are no longer required: libraw15 python-pyasn1 Use 'apt autoremove' to remove them. Suggested packages: bzr cvs darcs mercurial ruby-fcgi subversion The following NEW packages will be installed: redmine 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,221 kB of archives. After this operation, 9,315 kB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package redmine. (Reading database ... 164935 files and directories currently installed.) Preparing to unpack .../redmine_3.3.1-4_all.deb ... Unpacking redmine (3.3.1-4) ... Setting up redmine (3.3.1-4) ... dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf Creating config file /etc/dbconfig-common/redmine/instances/default.conf with new version Creating config file /etc/redmine/default/database.yml with new version `/var/www` is not writable. Bundler will use `/tmp/bundler/home/hedges' as your home directory temporarily. rake aborted! SQLite3::CantOpenException: unable to open database file /usr/share/redmine/app/models/custom_field.rb:36:in `<class:CustomField>' /usr/share/redmine/app/models/custom_field.rb:18:in `<top (required)>' /usr/share/redmine/lib/redmine/field_format.rb:90:in `field_attributes' /usr/share/redmine/lib/redmine/field_format.rb:93:in `<class:Base>' /usr/share/redmine/lib/redmine/field_format.rb:50:in `<module:FieldFormat>' /usr/share/redmine/lib/redmine/field_format.rb:21:in `<module:Redmine>' /usr/share/redmine/lib/redmine/field_format.rb:20:in `<top (required)>' /usr/share/redmine/lib/redmine.rb:40:in `<top (required)>' /usr/share/redmine/config/initializers/30-redmine.rb:6:in `<top (required)>' /usr/share/redmine/config/environment.rb:14:in `<top (required)>' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace) dpkg: error processing package redmine (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: redmine E: Sub-process /usr/bin/dpkg returned an error code (1) On Wed, Jul 19, 2017 at 2:35 PM, Mark Hedges <mark.write....@gmail.com> wrote: > I could not reproduce the installation problem. The only thing not > mentioned in the initial report was that I tried to configure a second > instance when dpkg prompted me. > > Mark > > On Wed, Jul 19, 2017 at 2:10 PM, Mark Hedges <mark.write....@gmail.com> wrote: >> tags 868955 patch >> thanks >> >> Uninstall problem seems to be snowballed from not being able to >> install in the first place. >> >> /var/lib/dpkg/info/redmine.postrm line 10: >> >> instances=$(ls -1 /etc/redmine/*/database.yml | xargs dirname | >> xargs -n 1 basename) >> >> If there are no directories, this fails. >> >> I attached a patch for /var/lib/dpkg/info/redmine.postrm ... not sure >> about the installation problem yet though. >> >> Mark