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/7Ds4BZ54pEtQNCJEbhhaKKI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JNV0fBit0qVXVSCWaWLla3hM0tY8h9dg
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.