Package: mistral-api Version: 2.0.0-2 Severity: normal I got the following when installing mistral-api:
----- s n i p ----- dpkg: error processing package mistral-api (--configure): subprocess installed post-installation script returned error exit status 10 Errors were encountered while processing: mistral-api ----- s n i p ----- Modifying the postinst file: ----- s n i p ----- --- /var/lib/dpkg/info/mistral-api.postinst~ 2016-05-20 14:15:20.000000000 +0100 +++ /var/lib/dpkg/info/mistral-api.postinst 2016-06-06 13:23:25.015683945 +0100 @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -ex ### Start of included pkgos_func library #!/bin/sh ----- s n i p ----- I then got: ----- s n i p ----- + IFS= read -r _db_internal_line + RET=10 mistral/keystone-project-name doesn't exist + return 10 dpkg: error processing package mistral-api (--configure): subprocess installed post-installation script returned error exit status 10 Errors were encountered while processing: mistral-api ----- s n i p ----- So, creating a file /tmp/zz: ----- s n i p ----- mistral-api mistral/keystone-project-name string admin ----- s n i p ----- and piping that to debconf-set-selections: ----- s n i p ----- cat /tmp/zz | debconf-set-selections ----- s n i p ----- it now completes successfully. -- System Information: Debian Release: stretch/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.5.0-2-amd64 (SMP w/16 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mistral-api depends on: ii adduser 3.114 ii debconf [debconf-2.0] 1.5.59 ii init-system-helpers 1.34 ii mistral-common 2.0.0-2 ii python-q-text-as-data [q-text-as-data] 1.4.0-1 mistral-api recommends no packages. mistral-api suggests no packages. -- debconf information: mistral/keystone-admin-name: admin * mistral/keystone-project-name: admin mistral/keystone-ip: 127.0.0.1 mistral/endpoint-ip: 10.0.4.1 mistal/keystone-project-name: admin mistral/region-name: regionOne

