Fresh install error Ubuntu 24.04.1

Just tried running the install script on Ubuntu 24.04.1 and it fails with “he following packages have unmet dependencies” and “Unable to correct problems, you have held broken packages”


$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble

$ sudo bash -c "$(curl -fsSL  https://install.bluecherrydvr.com/packages)"
Distro: noble
Hit:1 http://unstable.bluecherrydvr.com jammy InRelease
Hit:2 https://deb.nodesource.com/node_18.x nodistro InRelease                                                              
Hit:3 http://us.archive.ubuntu.com/ubuntu noble InRelease                                                                  
Hit:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                                          
Hit:5 http://security.ubuntu.com/ubuntu noble-security InRelease                                           
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease                                        
Get:7 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                             
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease             
Fetched 6,575 B in 1s (8,223 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gpg is already the newest version (2.4.4-2ubuntu17).
software-properties-common is already the newest version (0.99.48).
wget is already the newest version (1.21.4-1ubuntu4.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQENBE8i0McBCADSjGIWK9JD34xDiD28ISEksbyFL/Tdxwm94LxQA/pWMuyXOJ/3
xT6X9wY/0wOzQv1lXGRs7sYiGvNCYs3TjklJk9JXnUQB5uB2Pslqa1i51X89S8+C
24EOLbe0qAse3QPEAho9tN3HmaauOZ6RFLjHE07NiN+EqrnFBp+rk2RSTDV0EU7s
9zjXrW5WXxWbRAxZ+O8XE2ZfYExP+vXhrzmj9Tf0nHpugDHZdQ03JXMYI88N/eu3
fPRkE7qWeKTx9iYMtsg6eWu16Tct8YzccbcF8t/7Ds4BZ54pEtQNCJEbhhaKKIbe
5Zcuozoz96lDoxTEVzHZNKholffJbP+e56XJABEBAAG0NkJsdWVjaGVycnkgTWFp
bnRhaW5lcnMgPG1haW50YWluZXJzQGJsdWVjaGVycnlkdnIuY29tPokBOAQTAQIA
IgUCTyLQxwIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQMgKD8vsDhcJK
MQf+MKwE4qHSddqt9yJi6c34IDyH2dEWCuMiWW5BTUjAicPkydrzbBaU3QZzoJOv
5g+wBsJdkTYacYg9canRFJtQbsv6TRVTFLNHtyVpop81+N9rcvwaQ1shYpt55CZJ
7qiXCTFwknCBSQMe9dd+g7DNGNv9gA0ZcWREEd+1BcsbjnTkKLu0I1V17slm/Mx/
6XfNH8nSpvaL2Jk/kNRW76C4+GQVLmNOhZMl8awslDDR4GUs5Vvy2Y4m9LL5jwJ6
I+NCD3+z+58Vieg2sc9vpD3TgQIVFCVc5hU0yj2xOOc6MFOxK0izNBhQxPyWIcDO
92Tn1IknQ6zsFTtEBr7ABaYd2bkBDQRPItDHAQgA4U24Yv/55P4Ak+A+fKZ3E50C
2z15nSjYA0WU6zhc1E9gsAUeoLnVuVodYdDuHLoOqXFi+cBHvaMBZa5oj84jBntV
ikEH7AChQ178Zl9D+p9oW2fuTw4kPgHXwMHKxGnW/BuIek1JQjpG2LC6bVu97v8a
C0dkuXYhunR23wxhWFQKsccZlg4yq9vPpH7MZazehINaMMcSNoFzcjo8rmz4tXej
WnSLKRx2xb7FTO+TW8PQdNbQd/b9srQ0dMw/ULWiSjvxTTmBm22sk1DNMlJ4QASp
9CLdLk96Nf74GrHF85gYn/nH7wDkJNwfFZo/mKzGiJuwWgxu6Z6Jggz9hcOWCQAR
AQABiQEfBBgBAgAJBQJPItDHAhsMAAoJEDICg/L7A4XCuxYIAJxesJPtsHv+p09T
FuAPQtQWR00y1OMVB4L0oOs3tV/RiY0NrxBmtkUaLDVHzvHJm7o6HvYsCr/wsLt5
Vm+/eKkqiKsoKLwPJH2sY+AtRtyrdRujJNV0fBit0qVXVSCWaWLla3hM0tY8h9dg
2eF1ykABKh3yVr5YmXkiFLSCZz863xaepE2ibK0fF7w0BcK4gWk5RCCa66UE+76q
Noh3lHTJOaYfBoN6l2tH9W3LVN0cru3X3c7CH/3CNeHBJ/AJOhNKPaXvmjlfc4VZ
nhJV3glmlGRF/2ESkefaOvXbVLmAurdVerc71g7mQRqU+7gMKmKSAeJWUKztzlQv
BM4Ilhc=
=Y+y0
-----END PGP PUBLIC KEY BLOCK-----
--2024-08-30 19:27:08--  https://dl.bluecherrydvr.com/sources.list.d/bluecherry-jammy-unstable.list
Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 142.93.72.20
Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|142.93.72.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 180 [application/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/bluecherry-jammy.list’

/etc/apt/sources.list.d/bluech 100%[====================================================>]     180  --.-KB/s    in 0s      

2024-08-30 19:27:09 (104 MB/s) - ‘/etc/apt/sources.list.d/bluecherry-jammy.list’ saved [180/180]

PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/
Suites: noble
Components: main
'
Description:
Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting

CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Adding repository.
Found existing deb entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sources
Hit:1 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:2 http://unstable.bluecherrydvr.com jammy InRelease                                                                    
Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease                                                           
Hit:4 http://us.archive.ubuntu.com/ubuntu noble InRelease                                                                  
Get:5 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                                             
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                          
Hit:7 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease                  
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease
Fetched 6,575 B in 1s (7,364 B/s)
Reading package lists... Done
Hit:1 http://us.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://unstable.bluecherrydvr.com jammy InRelease                                                                    
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease                                                              
Hit:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                                          
Hit:5 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease                                                        
Get:6 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                                             
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease                                           
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease             
Fetched 6,575 B in 1s (7,456 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php7.4-fpm is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-sqlite3 is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-curl is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-mysql is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-gd is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php-mail is already the newest version (1.4.1-1.1).
php-mail-mime is already the newest version (1.10.11-1).
php-mysql is already the newest version (2:8.3+94+ubuntu24.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 bluecherry : Depends: libopencv-core4.5d (>= 4.5.4+dfsg) but it is not installable
              Depends: libopencv-imgcodecs4.5d (>= 4.5.4+dfsg) but it is not installable
              Depends: libopencv-imgproc4.5d (>= 4.5.4+dfsg) but it is not installable
              Recommends: mysql-server but it is not going to be installed
              Recommends: bluecherry-node-onvif but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

This is the problem:

Hit:1 http://unstable.bluecherrydvr.com jammy InRelease

That should be Hit:1 http://unstable.bluecherrydvr.com noble InRelease

Let me do some checking.

Can you try the install script again, I made some changes.

Same error, but with “nodistro” instead of “jammy” on Hit: 1 line:

$ date
Mon Sep  2 11:43:24 PM UTC 2024
$ sudo bash -c "$(curl -fsSL  https://install.bluecherrydvr.com/packages)"
Distro: noble
Hit:1 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:2 http://unstable.bluecherrydvr.com jammy InRelease                                                                    
Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease                                                           
Hit:4 http://us.archive.ubuntu.com/ubuntu noble InRelease                                                                  
Hit:5 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                           
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease                                        
Get:7 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                             
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease             
Fetched 6,575 B in 1s (8,156 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gpg is already the newest version (2.4.4-2ubuntu17).
software-properties-common is already the newest version (0.99.48).
wget is already the newest version (1.21.4-1ubuntu4.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQENBE8i0McBCADSjGIWK9JD34xDiD28ISEksbyFL/Tdxwm94LxQA/pWMuyXOJ/3
xT6X9wY/0wOzQv1lXGRs7sYiGvNCYs3TjklJk9JXnUQB5uB2Pslqa1i51X89S8+C
24EOLbe0qAse3QPEAho9tN3HmaauOZ6RFLjHE07NiN+EqrnFBp+rk2RSTDV0EU7s
9zjXrW5WXxWbRAxZ+O8XE2ZfYExP+vXhrzmj9Tf0nHpugDHZdQ03JXMYI88N/eu3
fPRkE7qWeKTx9iYMtsg6eWu16Tct8YzccbcF8t/7Ds4BZ54pEtQNCJEbhhaKKIbe
5Zcuozoz96lDoxTEVzHZNKholffJbP+e56XJABEBAAG0NkJsdWVjaGVycnkgTWFp
bnRhaW5lcnMgPG1haW50YWluZXJzQGJsdWVjaGVycnlkdnIuY29tPokBOAQTAQIA
IgUCTyLQxwIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQMgKD8vsDhcJK
MQf+MKwE4qHSddqt9yJi6c34IDyH2dEWCuMiWW5BTUjAicPkydrzbBaU3QZzoJOv
5g+wBsJdkTYacYg9canRFJtQbsv6TRVTFLNHtyVpop81+N9rcvwaQ1shYpt55CZJ
7qiXCTFwknCBSQMe9dd+g7DNGNv9gA0ZcWREEd+1BcsbjnTkKLu0I1V17slm/Mx/
6XfNH8nSpvaL2Jk/kNRW76C4+GQVLmNOhZMl8awslDDR4GUs5Vvy2Y4m9LL5jwJ6
I+NCD3+z+58Vieg2sc9vpD3TgQIVFCVc5hU0yj2xOOc6MFOxK0izNBhQxPyWIcDO
92Tn1IknQ6zsFTtEBr7ABaYd2bkBDQRPItDHAQgA4U24Yv/55P4Ak+A+fKZ3E50C
2z15nSjYA0WU6zhc1E9gsAUeoLnVuVodYdDuHLoOqXFi+cBHvaMBZa5oj84jBntV
ikEH7AChQ178Zl9D+p9oW2fuTw4kPgHXwMHKxGnW/BuIek1JQjpG2LC6bVu97v8a
C0dkuXYhunR23wxhWFQKsccZlg4yq9vPpH7MZazehINaMMcSNoFzcjo8rmz4tXej
WnSLKRx2xb7FTO+TW8PQdNbQd/b9srQ0dMw/ULWiSjvxTTmBm22sk1DNMlJ4QASp
9CLdLk96Nf74GrHF85gYn/nH7wDkJNwfFZo/mKzGiJuwWgxu6Z6Jggz9hcOWCQAR
AQABiQEfBBgBAgAJBQJPItDHAhsMAAoJEDICg/L7A4XCuxYIAJxesJPtsHv+p09T
FuAPQtQWR00y1OMVB4L0oOs3tV/RiY0NrxBmtkUaLDVHzvHJm7o6HvYsCr/wsLt5
Vm+/eKkqiKsoKLwPJH2sY+AtRtyrdRujJNV0fBit0qVXVSCWaWLla3hM0tY8h9dg
2eF1ykABKh3yVr5YmXkiFLSCZz863xaepE2ibK0fF7w0BcK4gWk5RCCa66UE+76q
Noh3lHTJOaYfBoN6l2tH9W3LVN0cru3X3c7CH/3CNeHBJ/AJOhNKPaXvmjlfc4VZ
nhJV3glmlGRF/2ESkefaOvXbVLmAurdVerc71g7mQRqU+7gMKmKSAeJWUKztzlQv
BM4Ilhc=
=Y+y0
-----END PGP PUBLIC KEY BLOCK-----
--2024-09-02 23:43:31--  https://dl.bluecherrydvr.com/sources.list.d/bluecherry-jammy-unstable.list
Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 142.93.72.20
Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|142.93.72.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 180 [application/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/bluecherry-jammy.list’

/etc/apt/sources.list.d/bluech 100%[====================================================>]     180  --.-KB/s    in 0s      

2024-09-02 23:43:31 (80.4 MB/s) - ‘/etc/apt/sources.list.d/bluecherry-jammy.list’ saved [180/180]

PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/
Suites: noble
Components: main
'
Description:
Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting

CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Adding repository.
Found existing deb entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sources
Hit:1 http://us.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://unstable.bluecherrydvr.com jammy InRelease                                                                    
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease                                                              
Hit:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                                          
Hit:5 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease                                                        
Get:6 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                             
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease                                           
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease             
Fetched 6,575 B in 1s (7,487 B/s)
Reading package lists... Done
Hit:1 http://us.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://unstable.bluecherrydvr.com jammy InRelease                                                                    
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease                                                              
Hit:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                                          
Hit:5 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease                                                        
Get:6 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                                             
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease                                           
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease             
Fetched 6,575 B in 1s (8,301 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
php7.4-fpm is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-sqlite3 is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-curl is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-mysql is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php7.4-gd is already the newest version (1:7.4.33-14+ubuntu24.04.1+deb.sury.org+1).
php-mail is already the newest version (1.4.1-1.1).
php-mail-mime is already the newest version (1.10.11-1).
php-mysql is already the newest version (2:8.3+94+ubuntu24.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 bluecherry : Depends: libopencv-core4.5d (>= 4.5.4+dfsg) but it is not installable
              Depends: libopencv-imgcodecs4.5d (>= 4.5.4+dfsg) but it is not installable
              Depends: libopencv-imgproc4.5d (>= 4.5.4+dfsg) but it is not installable
              Recommends: mysql-server but it is not going to be installed
              Recommends: bluecherry-node-onvif but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Okay, my mistake, the change I made didn’t get pushed out to the repos.

Try this:

sudo mv /etc/apt/sources.list.d/bluecherry-jammy.list /etc/apt/sources.list.d/bluecherry-noble.list
sudo sed -i 's/jammy/noble/g' /etc/apt/sources.list.d/bluecherry-noble.list

Made it much farther (I had to run the 2nd command with sudo as well), but ultimately failed with:

Testing MySQL admin credentials correctness...
+ echo 'show databases'
+ mysql_wrapper -hlocalhost -uroot
+ echo -e '\n\n\tProvided MySQL admin credentials are incorrect\n'


	Provided MySQL admin credentials are incorrect

++ whoami
+ echo -e 'Please create ~root/.my.cnf with right password like this\n'
Please create ~root/.my.cnf with right password like this

+ echo '[client]'
[client]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysql]'
[mysql]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysqldump]'
[mysqldump]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysqldiff]'
[mysqldiff]
+ echo user=root
user=root
+ echo 'password="pass"'
password="pass"
+ exit 1
++ exit 1
dpkg: error processing package bluecherry (--configure):
 installed bluecherry package post-installation script subprocess returned error exit status 1
Processing triggers for fontconfig (2.15.0-1.1ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for rsyslog (8.2312.0-3ubuntu9) ...
Processing triggers for ufw (0.36.2-6) ...
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 bluecherry
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Did your password have any special characters in it? Are you sure the password was correct during creation?

The failed attempt to install bluecherry has broken a number of apache sites. I am repairing that first.

We do not use apache, we use nginx.

The install still fails with “Provided MySQL admin credentials are incorrect”

Understood that bluecherry uses nginx, but as soon as I run the install script and get to the “Please enter MySQL administrative user’s name” prompt, my existing apache websites stop working that were working immediately before running the script. I am investigating.

Full install log where <redacted password 1> is the MySQL administrative user’s password entered during install and <redacted password 2> is the bluecherry database user’s password entered during install. Neither password has any special characters, just alphanumeric:

$ sudo bash -c "$(curl -fsSL  https://install.bluecherrydvr.com/packages)"
Distro: noble
Hit:1 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:2 http://dl.bluecherrydvr.com noble InRelease                                                                          
Get:3 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                                             
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease                                                           
Hit:5 http://us.archive.ubuntu.com/ubuntu noble InRelease                                                                  
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                                          
Hit:7 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease
Fetched 6,575 B in 1s (6,609 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gpg is already the newest version (2.4.4-2ubuntu17).
software-properties-common is already the newest version (0.99.48).
wget is already the newest version (1.21.4-1ubuntu4.1).
The following packages were automatically installed and are no longer required:
  bluecherry-node-onvif certbot galera-4 gdal-data gdal-plugins libaec0 libarmadillo12 libarpack2t64 libb2-1 libblosc1
  libboost-filesystem1.83.0 libcfitsio10t64 libcgi-fast-perl libcgi-pm-perl libcharls2 libconfig-inifiles-perl
  libdbd-mysql-perl libdbi-perl libdouble-conversion3 libdvdread8t64 libebml5 libevent-pthreads-2.1-7t64 libfcgi-bin
  libfcgi-perl libfcgi0t64 libfmt9 libfreexl1 libfyba0t64 libgdal34t64 libgdcm3.0t64 libgeos-c1t64 libgeos3.12.1t64
  libgeotiff5 libgif7 libhdf4-0-alt libhdf5-103-1t64 libhdf5-hl-100t64 libhtml-template-perl libhwloc-plugins libhwloc15
  libimath-3-1-29t64 libkmlbase1t64 libkmldom1t64 libkmlengine1t64 libmariadb3 libmatroska7 libmecab2 libminizip1t64
  libnetcdf19t64 libodbc2 libodbcinst2 libogdi4.1 libopencv-core406t64 libopencv-imgcodecs406t64 libopencv-imgproc406t64
  libopenexr-3-1-30 libpcre2-16-0 libpoppler134 libproj25 libprotobuf-lite32t64 libpugixml1v5 libqhull-r8.0 libqt6core6t64
  librttopo1 libsocket++1 libspatialite8t64 libsuperlu6 libsz2 libtbb12 libtbbbind-2-5 libtbbmalloc2 liburiparser1
  libv4l-0t64 libv4l2rds0t64 libv4lconvert0t64 libxerces-c3.2t64 libxnvctrl0 mariadb-common mecab-ipadic mecab-ipadic-utf8
  mecab-utils mkvtoolnix mysql-client-8.0 mysql-client-core-8.0 mysql-server mysql-server-8.0 mysql-server-core-8.0
  poppler-data proj-bin proj-data pv python3-acme python3-certbot python3-configargparse python3-icu python3-josepy
  python3-parsedatetime python3-rfc3339 qt6-translations-l10n socat unixodbc-common v4l-utils
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQENBE8i0McBCADSjGIWK9JD34xDiD28ISEksbyFL/Tdxwm94LxQA/pWMuyXOJ/3
xT6X9wY/0wOzQv1lXGRs7sYiGvNCYs3TjklJk9JXnUQB5uB2Pslqa1i51X89S8+C
24EOLbe0qAse3QPEAho9tN3HmaauOZ6RFLjHE07NiN+EqrnFBp+rk2RSTDV0EU7s
9zjXrW5WXxWbRAxZ+O8XE2ZfYExP+vXhrzmj9Tf0nHpugDHZdQ03JXMYI88N/eu3
fPRkE7qWeKTx9iYMtsg6eWu16Tct8YzccbcF8t/7Ds4BZ54pEtQNCJEbhhaKKIbe
5Zcuozoz96lDoxTEVzHZNKholffJbP+e56XJABEBAAG0NkJsdWVjaGVycnkgTWFp
bnRhaW5lcnMgPG1haW50YWluZXJzQGJsdWVjaGVycnlkdnIuY29tPokBOAQTAQIA
IgUCTyLQxwIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQMgKD8vsDhcJK
MQf+MKwE4qHSddqt9yJi6c34IDyH2dEWCuMiWW5BTUjAicPkydrzbBaU3QZzoJOv
5g+wBsJdkTYacYg9canRFJtQbsv6TRVTFLNHtyVpop81+N9rcvwaQ1shYpt55CZJ
7qiXCTFwknCBSQMe9dd+g7DNGNv9gA0ZcWREEd+1BcsbjnTkKLu0I1V17slm/Mx/
6XfNH8nSpvaL2Jk/kNRW76C4+GQVLmNOhZMl8awslDDR4GUs5Vvy2Y4m9LL5jwJ6
I+NCD3+z+58Vieg2sc9vpD3TgQIVFCVc5hU0yj2xOOc6MFOxK0izNBhQxPyWIcDO
92Tn1IknQ6zsFTtEBr7ABaYd2bkBDQRPItDHAQgA4U24Yv/55P4Ak+A+fKZ3E50C
2z15nSjYA0WU6zhc1E9gsAUeoLnVuVodYdDuHLoOqXFi+cBHvaMBZa5oj84jBntV
ikEH7AChQ178Zl9D+p9oW2fuTw4kPgHXwMHKxGnW/BuIek1JQjpG2LC6bVu97v8a
C0dkuXYhunR23wxhWFQKsccZlg4yq9vPpH7MZazehINaMMcSNoFzcjo8rmz4tXej
WnSLKRx2xb7FTO+TW8PQdNbQd/b9srQ0dMw/ULWiSjvxTTmBm22sk1DNMlJ4QASp
9CLdLk96Nf74GrHF85gYn/nH7wDkJNwfFZo/mKzGiJuwWgxu6Z6Jggz9hcOWCQAR
AQABiQEfBBgBAgAJBQJPItDHAhsMAAoJEDICg/L7A4XCuxYIAJxesJPtsHv+p09T
FuAPQtQWR00y1OMVB4L0oOs3tV/RiY0NrxBmtkUaLDVHzvHJm7o6HvYsCr/wsLt5
Vm+/eKkqiKsoKLwPJH2sY+AtRtyrdRujJNV0fBit0qVXVSCWaWLla3hM0tY8h9dg
2eF1ykABKh3yVr5YmXkiFLSCZz863xaepE2ibK0fF7w0BcK4gWk5RCCa66UE+76q
Noh3lHTJOaYfBoN6l2tH9W3LVN0cru3X3c7CH/3CNeHBJ/AJOhNKPaXvmjlfc4VZ
nhJV3glmlGRF/2ESkefaOvXbVLmAurdVerc71g7mQRqU+7gMKmKSAeJWUKztzlQv
BM4Ilhc=
=Y+y0
-----END PGP PUBLIC KEY BLOCK-----
--2024-09-15 15:44:48--  https://dl.bluecherrydvr.com/sources.list.d/bluecherry-noble.list
Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 142.93.72.20
Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|142.93.72.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 174 [application/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/bluecherry-noble.list’

/etc/apt/sources.list.d/bluech 100%[====================================================>]     174  --.-KB/s    in 0s      

2024-09-15 15:44:48 (32.9 MB/s) - ‘/etc/apt/sources.list.d/bluecherry-noble.list’ saved [174/174]

Hit:1 http://us.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://dl.bluecherrydvr.com noble InRelease                                                                          
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease                                                              
Hit:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease                                                          
Hit:5 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease                                                        
Get:6 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                             
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease                                           
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease             
Fetched 6,575 B in 1s (6,018 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
27 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  galera-4 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl pv socat
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  nginx nginx-common
Suggested packages:
  monit fcgiwrap nginx-doc
The following NEW packages will be installed:
  bluecherry nginx nginx-common
0 upgraded, 3 newly installed, 0 to remove and 27 not upgraded.
Need to get 6,284 kB/6,836 kB of archives.
After this operation, 25.3 MB of additional disk space will be used.
Get:1 http://dl.bluecherrydvr.com noble/main amd64 bluecherry amd64 3:3.1.3 [6,284 kB]
Fetched 6,284 kB in 1s (11.8 MB/s)    
Preconfiguring packages ...
Selecting previously unselected package nginx-common.
(Reading database ... 167327 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.24.0-2ubuntu7_all.deb ...
Unpacking nginx-common (1.24.0-2ubuntu7) ...
Selecting previously unselected package nginx.
Preparing to unpack .../nginx_1.24.0-2ubuntu7_amd64.deb ...
Unpacking nginx (1.24.0-2ubuntu7) ...
Selecting previously unselected package bluecherry.
Preparing to unpack .../bluecherry_3%3a3.1.3_amd64.deb ...
sed: can't read /etc/bluecherry.conf: No such file or directory
Unpacking bluecherry (3:3.1.3) ...
Setting up nginx (1.24.0-2ubuntu7) ...
Setting up nginx-common (1.24.0-2ubuntu7) ...
Setting up bluecherry (3:3.1.3) ...
++ for x in /etc/*-release
++ [[ ! -d /etc/lsb-release ]]
++ source /etc/lsb-release
+++ DISTRIB_ID=Ubuntu
+++ DISTRIB_RELEASE=24.04
+++ DISTRIB_CODENAME=noble
+++ DISTRIB_DESCRIPTION='Ubuntu 24.04.1 LTS'
++ for x in /etc/*-release
++ [[ ! -d /etc/os-release ]]
++ source /etc/os-release
+++ PRETTY_NAME='Ubuntu 24.04.1 LTS'
+++ NAME=Ubuntu
+++ VERSION_ID=24.04
+++ VERSION='24.04.1 LTS (Noble Numbat)'
+++ VERSION_CODENAME=noble
+++ ID=ubuntu
+++ ID_LIKE=debian
+++ HOME_URL=https://www.ubuntu.com/
+++ SUPPORT_URL=https://help.ubuntu.com/
+++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
+++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
+++ UBUNTU_CODENAME=noble
+++ LOGO=ubuntu-logo
+++ cat /etc/os-release
+++ grep '^ID='
+++ grep centos
++ [[ -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/lsb-release ]]
++ source /etc/lsb-release
+++ DISTRIB_ID=Ubuntu
+++ DISTRIB_RELEASE=24.04
+++ DISTRIB_CODENAME=noble
+++ DISTRIB_DESCRIPTION='Ubuntu 24.04.1 LTS'
++ for x in /etc/*-release
++ [[ ! -d /etc/os-release ]]
++ source /etc/os-release
+++ PRETTY_NAME='Ubuntu 24.04.1 LTS'
+++ NAME=Ubuntu
+++ VERSION_ID=24.04
+++ VERSION='24.04.1 LTS (Noble Numbat)'
+++ VERSION_CODENAME=noble
+++ ID=ubuntu
+++ ID_LIKE=debian
+++ HOME_URL=https://www.ubuntu.com/
+++ SUPPORT_URL=https://help.ubuntu.com/
+++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
+++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
+++ UBUNTU_CODENAME=noble
+++ LOGO=ubuntu-logo
+++ cat /etc/os-release
+++ grep '^ID='
+++ grep centos
++ [[ -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
++ su bluecherry -c 'chmod -R 770 /var/lib/bluecherry'
++ [[ -n 1 ]]
++ mkdir -p /var/run/bluecherry
++ chown -R bluecherry:bluecherry /var/run/bluecherry
++ su bluecherry -c 'chmod -R 750 /var/run/bluecherry'
++ chown root:www-data /usr/share/bluecherry/scripts/update_subdomain_certs.sh
++ chmod 550 /usr/share/bluecherry/scripts/update_subdomain_certs.sh
++ install --mode ug=r,o= /usr/share/bluecherry/sudoers.d/www-data /etc/sudoers.d/www-data
++ mkdir -p /usr/share/bluecherry/ssl
++ cp /etc/ssl/certs/ssl-cert-snakeoil.pem /usr/share/bluecherry/ssl/bluecherry-snakeoil.pem
++ cp /etc/ssl/private/ssl-cert-snakeoil.key /usr/share/bluecherry/ssl/bluecherry-snakeoil.key
++ chown bluecherry:bluecherry /usr/share/bluecherry/ssl/bluecherry-snakeoil.pem
++ chown bluecherry:bluecherry /usr/share/bluecherry/ssl/bluecherry-snakeoil.key
++ touch /var/log/bluecherry.log
++ id syslog
++ chown syslog:bluecherry /var/log/bluecherry.log
++ chmod 640 /var/log/bluecherry.log
+++ cat /etc/os-release
+++ grep '^ID='
+++ grep debian
++ [[ -n '' ]]
++ [[ -n 1 ]]
++ test -f /etc/apache2/sites-enabled/bluecherry.conf
++ mkdir -p /usr/share/bluecherry/backups/nginx/
+++ date +%F_%H-%M-%S
++ tar -czvf /usr/share/bluecherry/backups/nginx/nginx_2024-09-15_15-44-55.tar.gz /etc/nginx/
tar: Removing leading `/' from member names
/etc/nginx/
/etc/nginx/koi-utf
/etc/nginx/koi-win
/etc/nginx/sites-available/
/etc/nginx/sites-available/default
/etc/nginx/fastcgi.conf
/etc/nginx/conf.d/
/etc/nginx/nginx.conf
/etc/nginx/modules-available/
/etc/nginx/uwsgi_params
/etc/nginx/scgi_params
/etc/nginx/snippets/
/etc/nginx/snippets/snakeoil.conf
/etc/nginx/snippets/fastcgi-php.conf
/etc/nginx/win-utf
/etc/nginx/sites-enabled/
/etc/nginx/sites-enabled/default
/etc/nginx/sites-enabled/bluecherry.conf
/etc/nginx/fastcgi_params
/etc/nginx/proxy_params
/etc/nginx/modules-enabled/
/etc/nginx/mime.types
++ [[ -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
++ stop_nginx
++ [[ -n 1 ]]
+++ which service
++ '[' '!' -z /usr/sbin/service ']'
++ service nginx stop
++ '[' -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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET=false
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ db_fset bluecherry/db_host seen false
++ _db_cmd 'FSET bluecherry/db_host' seen false
++ _db_internal_IFS=' 	
'
++ IFS=' '
++ printf '%s\n' 'FSET bluecherry/db_host seen false'
++ IFS='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET=false
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ db_fset bluecherry/db_userhost seen false
++ _db_cmd 'FSET bluecherry/db_userhost' seen false
++ _db_internal_IFS=' 	
'
++ IFS=' '
++ printf '%s\n' 'FSET bluecherry/db_userhost seen false'
++ IFS='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET=<redacted password 1>
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ export MYSQL_ADMIN_PASSWORD=<redacted password 1>
++ MYSQL_ADMIN_PASSWORD=<redacted password 1>
++ db_input high bluecherry/db_host
++ _db_cmd 'INPUT high' bluecherry/db_host
++ _db_internal_IFS=' 	
'
++ IFS=' '
++ printf '%s\n' 'INPUT high bluecherry/db_host'
++ IFS='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET='question will be asked'
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET=ok
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ db_get bluecherry/db_host
++ _db_cmd 'GET bluecherry/db_host'
++ _db_internal_IFS=' 	
'
++ IFS=' '
++ printf '%s\n' 'GET bluecherry/db_host'
++ IFS='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET=localhost
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ export host=localhost
++ host=localhost
++ db_get bluecherry/db_name
++ _db_cmd 'GET bluecherry/db_name'
++ _db_internal_IFS=' 	
'
++ IFS=' '
++ printf '%s\n' 'GET bluecherry/db_name'
++ IFS='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET='question will be asked'
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ db_input high bluecherry/db_userhost
++ _db_cmd 'INPUT high' bluecherry/db_userhost
++ _db_internal_IFS=' 	
'
++ IFS=' '
++ printf '%s\n' 'INPUT high bluecherry/db_userhost'
++ IFS='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ 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='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET=<redacted password 2>
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ export password=<redacted password 2>
++ password=<redacted password 2>
++ db_get bluecherry/db_userhost
++ _db_cmd 'GET bluecherry/db_userhost'
++ _db_internal_IFS=' 	
'
++ IFS=' '
++ printf '%s\n' 'GET bluecherry/db_userhost'
++ IFS='
'
++ read -r _db_internal_line
++ IFS=' 	
'
++ RET=localhost
++ case ${_db_internal_line%%[ 	]*} in
++ return 0
++ export userhost=localhost
++ userhost=localhost
++ /usr/share/bluecherry/bc_db_tool.sh new_db root <redacted password 1> bluecherry bluecherry <redacted password 2> localhost localhost
++ cat /etc/os-release
++ grep '^ID='
++ grep centos
+ [[ -n '' ]]
+ IN_DEB=1
+ MODE=new_db
+ case "$MODE" in
+ [[ 8 -lt 6 ]]
+ new_db root <redacted password 1> bluecherry bluecherry <redacted password 2> localhost localhost
+ echo new_db root <redacted password 1> bluecherry bluecherry <redacted password 2> localhost localhost
new_db root <redacted password 1> bluecherry bluecherry <redacted password 2> localhost localhost
+ MYSQL_ADMIN_LOGIN=root
+ MYSQL_ADMIN_PASSWORD=<redacted password 1>
+ dbname=bluecherry
+ user=bluecherry
+ password=<redacted password 2>
+ host=localhost
+ userhost=localhost
+ check_mysql_admin root <redacted password 1>
+ MYSQL_ADMIN_LOGIN=root
+ MYSQL_ADMIN_PASSWORD=<redacted password 1>
+ echo 'Testing MySQL admin credentials correctness...'
Testing MySQL admin credentials correctness...
+ echo 'show databases'
+ mysql_wrapper -hlocalhost -uroot
+ echo -e '\n\n\tProvided MySQL admin credentials are incorrect\n'


	Provided MySQL admin credentials are incorrect

++ whoami
+ echo -e 'Please create ~root/.my.cnf with right password like this\n'
Please create ~root/.my.cnf with right password like this

+ echo '[client]'
[client]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysql]'
[mysql]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysqldump]'
[mysqldump]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysqldiff]'
[mysqldiff]
+ echo user=root
user=root
+ echo 'password="pass"'
password="pass"
+ exit 1
++ exit 1
dpkg: error processing package bluecherry (--configure):
 installed bluecherry package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for rsyslog (8.2312.0-3ubuntu9) ...
Processing triggers for ufw (0.36.2-6) ...
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 bluecherry
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

It appears MySQL is deliberately “frozen to prevent damage to your system” because “an incompatible downgrade attempt has been detected” by the install script:

$ journalctl -u mysql -b
<snip>
mysql-systemd-start[461001]: MySQL has been frozen to prevent damage to your system. Please see /etc/mysql/FROZEN for help.
$ cat /etc/mysql/FROZEN
This MySQL or variant installation has entered "frozen mode". Maintainer
scripts will avoid making changes or starting the daemon until manually
released from this state. See /usr/share/doc/mysql-common/README for
general information about this mode.

In this particular case, an incompatible downgrade attempt has been
detected. This can be resolved in one of two ways:

1. Change the contents of /var/lib/mysql/ to contain database data that
is compatible with the currently installed MySQL or variant daemon
version. For example: you could restore from a backup. Alternatively you
could do a dump using a future version binary and then a restore using
the current version binary.

2. Switch to a MySQL or variant daemon version that is compatible with
the data currently in /var/lib/mysql/. For example, if you have
attempted a downgrade from mysql-server-5.7 to mysql-server-5.6, you
could "apt install mysql-server-5.7" again.

Please resolve this situation and only then remove the /etc/mysql/FROZEN
symlink. You can then run "dpkg-reconfigure <package>" where <package>
should usually be in the form <variant>-server-<version>.

It appears I have no other MySQL databases, so I purged bluecherry, removed all the packages no longer needed (including mysql and mariadb), explicitly moved /var/lib/mysql and /etc/mysql to backups and tried again. This didn’t work the first time so I went back and even more extensively purged things and was able to install again.

Now I have what appears to be a working bluecherry install, but my apache sites are still broken after the nginx install. I am investigating.