Specifically, its the "apt-get -y install /tmp/zoneminder-1.30.4-bionic-amd64.deb" command that fails, with the following bailout messaging:#!/bin/sh
clear
read -p "This script installs Apache, Mariadb, PHP, and Zoneminder 1.30.4 on Ubuntu 18.04 AMD64
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "You must be logged in as root using sudo su ...
Press Enter to continue or Ctrl + c to quit" nothing
clear
read -p "Next we will install Apache, Mariadb Server and PHP
Press Enter to continue or Ctrl + c to quit" nothing
apt update
apt -y install apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl
clear
read -p "Next secure mariadb server by entering requested information. Press enter to continue" nothing
mysql_secure_installation
wget --no-check-certificate https://173.163.189.225/zoneminder-1.30 ... -amd64.deb -P /tmp/
awk '$0="date.timezone = "$0' /etc/timezone >> /etc/php/7.2/apache2/php.ini
apt-get -y install /tmp/zoneminder-1.30.4-bionic-amd64.deb
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enmod cgi
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
service apache2 reload
clear
read -p "Open Zoneminder in a web browser (http://server-ip/zm).
Click on Options - Paths and change PATH_ZMS to /zm/cgi-bin/nph-zms
Click the Save button.
Press enter to continue" nothing
clear
The only modifications I made to the system to get the rest of the install to work was (in order):Do you want to continue? [Y/n] Y
Setting up zoneminder (1.30.4-bionic) ...
ERROR 1044 (42000) at line 1: Access denied for user 'debian-sys-maint'@'localhost' to database 'zm'
dpkg: error processing package zoneminder (--configure):
installed zoneminder package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
1.) adding the mariadb repo per their website so that maria 10.3 would install
2.) adding "multiverse, restricted, and universe" to my sources.list to get all the libav and some PHP packages to install
Is it all borked because I went out and got MariaDB from the maria website/repo instead of the ubuntu repos?