dpkg error after zoneminder installation
Posted: Tue Oct 26, 2021 3:39 pm
I have ZoneMinder up and running well, however there's an issue with dpkg where every time I upgrade any package on my system, it throws an error and I have to manually restart the zoneminder service:
Obviously something went awry in my installation, and I don't want dpkg to re-create the zm database. Nor should it be trying to log in as root with no password. Searching has led me to look at /etc/zm/zm.conf and /lib/systemd/system/zoneminder.service but neither of those seem to be the source of the issue. Are you able to point me to where I would be able to fix this?
I'm on Mint 20.2 MATE. Thanks!
Code: Select all
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up zoneminder (1.36.10-focal1) ...
detected systemd
Detected db service is mysql.service
Checking for db
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Creating zm db
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
cat: write error: Broken pipe
Error creating db.
dpkg: error processing package zoneminder (--configure):
installed zoneminder package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
zoneminder
I'm on Mint 20.2 MATE. Thanks!