Having problem installing ZoneMinder Ubuntu 16.04

Forum for questions and support relating to the 1.30.x releases only.
Locked
mkowske
Posts: 1
Joined: Sat Nov 26, 2016 12:43 am

Having problem installing ZoneMinder Ubuntu 16.04

Post by mkowske »

Hi all,

I am attempting to install ZoneMinder via PPA as recc. on the zoneminder install page and am running into a problem with the configuration step. This leaves the package in a "half installed" state and I can't start it:

Code: Select all

[mkowske@terra ~/System/bin]$ sudo apt-get install zoneminder
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  fcgiwrap
The following NEW packages will be installed:
  zoneminder
0 upgraded, 1 newly installed, 0 to remove and 179 not upgraded.
Need to get 0 B/5,580 kB of archives.
After this operation, 36.1 MB of additional disk space will be used.
Selecting previously unselected package zoneminder.
(Reading database ... 446083 files and directories currently installed.)
Preparing to unpack .../zoneminder_1.30.0-xenial_amd64.deb ...
Unpacking zoneminder (1.30.0-xenial) ...
Processing triggers for systemd (229-4ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up zoneminder (1.30.0-xenial) ...
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
dpkg: error processing package zoneminder (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have dug into this error and reset my root password for mysql/mariadb multiple times using various stackoverflow answers. Maybe the output of the below will also help to troubleshoot this:

Code: Select all

[mkowske@terra ~]$ sudo mysqladmin status
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
[mkowske@terra ~]$ sudo su -
# mysqladmin status
Uptime: 1782  Threads: 1  Questions: 133  Slow queries: 0  Opens: 19  Flush tables: 1  Open tables: 82  Queries per second avg: 0.074
# 
[mkowske@terra ~]$ sudo mysqladmin -p status
Enter password: 
Uptime: 1798  Threads: 1  Questions: 134  Slow queries: 0  Opens: 19  Flush tables: 1  Open tables: 82  Queries per second avg: 0.074
[mkowske@terra ~]$ 
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Having problem installing ZoneMinder Ubuntu 16.04

Post by knight-of-ni »

You have to follow the easy-way installation instructions in the wiki:
https://wiki.zoneminder.com/Ubuntu
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked