Dpkg: error processing bluecherry package (--configure):

Good day, i am installing bluecherry on a debian 9 system, and i have follow the installation page instructions here: Downloads – Bluecherry ', i chose ’ Install Bluecherry on Ubuntu (LTS version) and Debian 'the installation process go well, but in the end of it i obtain this error.

dpkg: error processing bluecherry package (–configure):
the thread installed the post-installation script returned the error exit code 1

Notihng in logs…

Can anybody help me? thanks in advance.

This is the end installation output:

Creating config file /etc/php/7.0/mods-available/curl.ini with new version
Setting up php-xml (1:7.0+49) …
Setting up libcgi-fast-perl (1:2.12-1) …
Setting up ndiff (7.40-1) …
Setting up libdrm-intel1:amd64 (2.4.74-1) …
Setting up php-net-socket (1.0.14-2) …
Setting up php-mbstring (1:7.0+49) …
Setting up php7.0-sqlite3 (7.0.33-0+deb9u5) …

Creating config file /etc/php/7.0/mods-available/sqlite3.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo_sqlite.ini with new version
Setting up php-mail (1.3.0-1) …
Setting up php7.0-json (7.0.33-0+deb9u5) …

Creating config file /etc/php/7.0/mods-available/json.ini with new version
Setting up mesa-va-drivers:amd64 (13.0.6-1+b2) …
Setting up libboost-filesystem1.62.0:amd64 (1.62.0+dfsg-4) …
Setting up libhttp-message-perl (6.11-1) …
Setting up python-html5lib (0.999999999-1) …
Setting up libdbd-mysql-perl (4.041-2) …
Setting up php-sqlite3 (1:7.0+49) …
Setting up php-mysql (1:7.0+49) …
Setting up libfontconfig1:amd64 (2.11.0-6.7+b1) …
Setting up mariadb-client-10.1 (10.1.41-0+deb9u1) …
Setting up apache2 (2.4.25-3+deb9u9) …
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
Setting up mkvtoolnix (9.8.0-dmo1) …
update-alternatives: using /usr/bin/mkvinfo-text to provide /usr/bin/mkvinfo (mkvinfo) in auto mode
Setting up php-net-smtp (1.7.1-2) …
Setting up libgd3:amd64 (2.2.4-2+deb9u5) …
Setting up php-curl (1:7.0+49) …
Setting up php7.0-cli (7.0.33-0+deb9u5) …
update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.0/cli/php.ini with new version
Setting up php-cli (1:7.0+49) …
Setting up i965-va-driver:amd64 (1.7.3-1) …
Setting up va-driver-all:amd64 (1.7.3-2) …
Setting up php-pear (1:1.10.1+submodules+notgz-9+deb9u1) …
Setting up mariadb-server-10.1 (10.1.41-0+deb9u1) …

Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
Setting up php-auth-sasl (1.0.6-3) …
Setting up default-mysql-server (1.0.2) …
Setting up php-mail-mime (1.10.0-2) …
Setting up mysql-server (5.5.9999+default) …
Setting up libapache2-mod-php7.0 (7.0.33-0+deb9u5) …

Creating config file /etc/php/7.0/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php7.0
Setting up php7.0-gd (7.0.33-0+deb9u5) …

Creating config file /etc/php/7.0/mods-available/gd.ini with new version
Setting up php-gd (1:7.0+49) …
Setting up bluecherry (2:2.8.7) …
++ for x in /etc/*-release
++ [[ ! -d /etc/os-release ]]
++ source /etc/os-release
+++ PRETTY_NAME=‘Debian GNU/Linux 9 (stretch)’
+++ NAME=‘Debian GNU/Linux’
+++ VERSION_ID=9
+++ VERSION=‘9 (stretch)’
+++ VERSION_CODENAME=stretch
+++ ID=debian
+++ HOME_URL=https://www.debian.org/
+++ SUPPORT_URL=Debian -- User Support
+++ BUG_REPORT_URL=https://bugs.debian.org/
+++ cat /etc/os-release
+++ grep centos
+++ grep ‘^ID=’
++ [[ -n ‘’ ]]
++ IN_DEB=1
++ [[ -n 1 ]]
++ . /usr/share/debconf/confmodule
+++ ‘[’ ‘!’ ‘’ ‘]’
+++ PERL_DL_NONLAZY=1
+++ export PERL_DL_NONLAZY
+++ ‘[’ ‘’ ‘]’
+++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/bluecherry.postinst configure ‘’

++ for x in /etc/*-release
++ [[ ! -d /etc/os-release ]]
++ source /etc/os-release
+++ PRETTY_NAME=‘Debian GNU/Linux 9 (stretch)’
+++ NAME=‘Debian GNU/Linux’
+++ VERSION_ID=9
+++ VERSION=‘9 (stretch)’
+++ VERSION_CODENAME=stretch
+++ ID=debian
+++ HOME_URL=https://www.debian.org/
+++ SUPPORT_URL=Debian -- User Support
+++ BUG_REPORT_URL=https://bugs.debian.org/
+++ grep ‘^ID=’
+++ grep centos
+++ cat /etc/os-release
++ [[ -n ‘’ ]]
++ IN_DEB=1
++ [[ -n 1 ]]
++ . /usr/share/debconf/confmodule
+++ ‘[’ ‘!’ 1 ‘]’
+++ ‘[’ -z ‘’ ‘]’
+++ exec
+++ ‘[’ ‘’ ‘]’
+++ exec
+++ DEBCONF_REDIR=1
+++ export DEBCONF_REDIR
++ case “$1” in
++ [[ -n 1 ]]
++ ucfr bluecherry /etc/bluecherry.conf
++ echo -e ‘\n\n\tVerifying permissions of existing files, please wait\n\n’

    Verifying permissions of existing files, please wait

++ [[ -d /var/lib/bluecherry ]]
++ chown -R bluecherry:bluecherry /var/lib/bluecherry
++ chmod -R 770 /var/lib/bluecherry
++ [[ -n 1 ]]
++ chown -R bluecherry:bluecherry /var/run/bluecherry
++ chmod -R 750 /var/run/bluecherry
++ touch /var/log/bluecherry.log
++ id syslog
++ chown root:bluecherry /var/log/bluecherry.log
++ chmod 640 /var/log/bluecherry.log
++ [[ -n 1 ]]
++ a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
systemctl restart apache2
++ a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
++ [[ ‘’ == \x\e\n\i\a\l ]]
++ [[ 9 (stretch) == \9\ (\s\t\r\e\t\c\h) ]]
++ a2enmod php7.0
Considering dependency mpm_prefork for php7.0:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.0:
Module php7.0 already enabled
++ [[ -n 1 ]]
++ rm /etc/apache2/sites-enabled/bluecherry /etc/apache2/sites-available/bluecherry
rm: cannot remove ‘/etc/apache2/sites-enabled/bluecherry’: No such file or directory
rm: cannot remove ‘/etc/apache2/sites-available/bluecherry’: No such file or directory
++ true
++ a2ensite bluecherry.conf
Enabling site bluecherry.
To activate the new configuration, you need to run:
systemctl reload apache2
++ [[ -n 1 ]]
++ rm /etc/php5/conf.d/bluecherry.ini
rm: cannot remove ‘/etc/php5/conf.d/bluecherry.ini’: No such file or directory
++ true
+++ which service
++ ‘[’ ‘!’ -z /usr/sbin/service ‘]’
++ service rsyslog restart
++ stop_apache
++ [[ -n 1 ]]
+++ which service
++ ‘[’ ‘!’ -z /usr/sbin/service ‘]’
++ service apache2 stop
++ ‘[’ ‘!’ -e /var/lib/.bcins ‘]’
++ date +%s
++ ‘[’ -x /sbin/apparmor_parser ‘]’
++ [[ -s /etc/bluecherry.conf ]]
++ [[ -n 1 ]]
++ db_fset bluecherry/mysql_admin_login seen false
++ _db_cmd ‘FSET bluecherry/mysql_admin_login’ seen false
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘FSET bluecherry/mysql_admin_login seen false’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=false
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ db_fset bluecherry/mysql_admin_password seen false
++ _db_cmd ‘FSET bluecherry/mysql_admin_password’ seen false
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘FSET bluecherry/mysql_admin_password seen false’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=false
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ db_fset bluecherry/db_name seen false
++ _db_cmd ‘FSET bluecherry/db_name’ seen false
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘FSET bluecherry/db_name seen false’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=false
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ db_fset bluecherry/db_user seen false
++ _db_cmd ‘FSET bluecherry/db_user’ seen false
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘FSET bluecherry/db_user seen false’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=false
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ db_fset bluecherry/db_password seen false
++ _db_cmd ‘FSET bluecherry/db_password’ seen false
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘FSET bluecherry/db_password seen false’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=false
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ db_input high bluecherry/mysql_admin_login
++ _db_cmd ‘INPUT high’ bluecherry/mysql_admin_login
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘INPUT high bluecherry/mysql_admin_login’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=‘question will be asked’
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ db_input high bluecherry/mysql_admin_password
++ _db_cmd ‘INPUT high’ bluecherry/mysql_admin_password
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘INPUT high bluecherry/mysql_admin_password’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=‘question will be asked’
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ db_go
++ _db_cmd ‘GO ’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GO ’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
/usr/bin/
++ RET=ok
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ db_get bluecherry/mysql_admin_login
++ _db_cmd ‘GET bluecherry/mysql_admin_login’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GET bluecherry/mysql_admin_login’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=root
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ export MYSQL_ADMIN_LOGIN=root
++ MYSQL_ADMIN_LOGIN=root
++ db_get bluecherry/mysql_admin_password
++ _db_cmd ‘GET bluecherry/mysql_admin_password’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GET bluecherry/mysql_admin_password’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=defecto
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ export MYSQL_ADMIN_PASSWORD=defecto
++ MYSQL_ADMIN_PASSWORD=defecto
++ db_input high bluecherry/db_name
++ _db_cmd ‘INPUT high’ bluecherry/db_name
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘INPUT high bluecherry/db_name’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=‘question will be asked’
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ db_go
++ _db_cmd ‘GO ’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GO ’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=ok
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ db_get bluecherry/db_name
++ _db_cmd ‘GET bluecherry/db_name’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GET bluecherry/db_name’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=bluecherry
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ export dbname=bluecherry
++ dbname=bluecherry
++ db_input high bluecherry/db_user
++ _db_cmd ‘INPUT high’ bluecherry/db_user
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘INPUT high bluecherry/db_user’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=‘question will be asked’
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ db_input high bluecherry/db_password
++ _db_cmd ‘INPUT high’ bluecherry/db_password
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘INPUT high bluecherry/db_password’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=‘question will be asked’
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ db_go
++ _db_cmd ‘GO ’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GO ’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=ok
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ db_get bluecherry/db_user
++ _db_cmd ‘GET bluecherry/db_user’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GET bluecherry/db_user’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=bluecherry
++ case ${_db_internal_line%%[ ]} in
++ return 0
++ export user=bluecherry
++ user=bluecherry
++ db_get bluecherry/db_password
++ _db_cmd ‘GET bluecherry/db_password’
++ _db_internal_IFS=’

++ IFS=’ ’
++ printf ‘%s\n’ ‘GET bluecherry/db_password’
++ IFS=’

++ IFS=’

++ read -r _db_internal_line
++ RET=defecto
++ case ${_db_internal_line%%[ ]
} in
++ return 0
++ export password=defecto
++ password=defecto
++ /usr/share/bluecherry/bc_db_tool.sh new_db root defecto bluecherry bluecherry defecto
++ grep centos
++ grep ‘^ID=’
++ cat /etc/os-release

  • [[ -n ‘’ ]]
  • IN_DEB=1
  • MODE=new_db
  • case “$MODE” in
  • [[ 6 -lt 6 ]]
  • new_db root defecto bluecherry bluecherry defecto
  • echo new_db root defecto bluecherry bluecherry defecto
    new_db root defecto bluecherry bluecherry defecto
  • MYSQL_ADMIN_LOGIN=root
  • MYSQL_ADMIN_PASSWORD=defecto
  • dbname=bluecherry
  • user=bluecherry
  • password=defecto
  • check_mysql_admin root defecto
  • MYSQL_ADMIN_LOGIN=root
  • MYSQL_ADMIN_PASSWORD=defecto
  • echo ‘Testing MySQL admin credentials correctness…’
    Testing MySQL admin credentials correctness…
  • echo ‘show databases’
  • mysql_wrapper -uroot
  • check_db_exists root defecto bluecherry
  • MYSQL_ADMIN_LOGIN=root
  • MYSQL_ADMIN_PASSWORD=defecto
  • dbname=bluecherry
  • echo ‘Testing whether database already exists…’
    Testing whether database already exists…
  • mysql_wrapper -uroot -Dbluecherry
  • echo ‘show databases’
  • create_db root defecto bluecherry bluecherry defecto
  • MYSQL_ADMIN_LOGIN=root
  • MYSQL_ADMIN_PASSWORD=defecto
  • dbname=bluecherry
  • user=bluecherry
  • password=defecto
  • [[ -n defecto ]]
  • mysql -uroot --password=defecto
  • echo ‘DROP DATABASE IF EXISTS bluecherry; CREATE DATABASE bluecherry’
  • echo ‘GRANT ALL ON bluecherry.* to bluecherry@’'‘localhost’'’ IDENTIFIED BY ‘'‘defecto’'’’
  • mysql -uroot --password=defecto
  • mysql -ubluecherry --password=defecto -Dbluecherry
    ++ cat /usr/share/bluecherry/installed_db_version
  • DB_VERSION=2080600
  • echo ‘INSERT INTO GlobalSettings (parameter, value) VALUES (’'‘G_DB_VERSION’'‘, ‘'‘2080600’'’)’
  • mysql -ubluecherry --password=defecto -Dbluecherry
  • mysql -ubluecherry --password=defecto -Dbluecherry
  • exit 0
    ++ [[ -n 1 ]]
    ++ dbhost=localhost
    ++ sed -e s/DBC_DBNAME/bluecherry/ -e s/DBC_DBUSER/bluecherry/ -e s/DBC_DBPASS/defecto/ -e s/DBC_HOST/localhost/
    ++ cat /usr/share/bluecherry/bluecherry.conf.in
    ++ chown root:bluecherry /etc/bluecherry.conf
    ++ chmod 640 /etc/bluecherry.conf
    ++ /usr/share/bluecherry/compare.sh
    — /dev/fd/63 2019-10-23 06:05:29.518240368 -0400
    +++ /dev/fd/62 2019-10-23 06:05:29.518240368 -0400
    @@ -2,7 +2,7 @@
    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT /;
    /
    !40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS /;
    /
    !40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION /;
    -/
    !40101 SET NAMES utf8 /;
    +/
    !40101 SET NAMES utf8mb4 /;
    /
    !40103 SET @OLD_TIME_ZONE=@@TIME_ZONE /;
    /
    !40103 SET TIME_ZONE=‘+00:00’ /;
    /
    !40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
    Database doesn’t match reference schema
    ++ echo ‘Loaded database scheme missmatch. Please load it manualy or restore from backup’
    Loaded database scheme missmatch. Please load it manualy or restore from backup
    ++ [[ -s ‘’ ]]
    ++ exit 1
    dpkg: error processing package bluecherry (–configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up libapache2-mod-php (1:7.0+49) …
    Processing triggers for libc-bin (2.24-11+deb9u4) …
    Processing triggers for systemd (232-25+deb9u12) …
    Processing triggers for libapache2-mod-php7.0 (7.0.33-0+deb9u5) …
    Errors were encountered while processing:
    bluecherry
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Debian 9 ships with MariaDB instead of Mysql, which the install script is looking for. We are aware of this issue and plan to either force mysql in the future or do better checks about mariadb being installed.

For now, follow this article and remove mariadb and install mysql-server.

If you have problems let me know

1 Like

thanks for your support, i go to try it.

Thanks again.