It is showing several errors while trying to do the upgrade process:
Code: Select all
Setting up zoneminder (1.36.34-bookworm1) ...
chown: cannot dereference '/var/cache/zoneminder/skins_classic_js_jquery-ui-1.12.1_jquery-ui.structure.min-dark-1624386913.css': No such file or directory
detected systemd
Warning: The unit file, source configuration file or drop-ins of zoneminder.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Detected db service is mariadb.service
Checking for db
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Cannot talk to database. You will have to create the db manually with something like:
cat /usr/share/zoneminder/db/zm_create.sql | mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
/var/lib/dpkg/info/zoneminder.postinst: 29: [: -ne: unexpected operator
Updating permissions for user zmuser@localhost
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Initiating database upgrade to version 1.36.34 from version 1.36.33
Upgrading database to version 1.36.34
Upgrading DB to 1.36.34 from 1.36.33
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Output:
Command 'mysql --defaults-file=/etc/mysql/debian.cnf -hlocalhost zm < /usr/share/zoneminder/db/zm_update-1.36.34.sql' exited with status: 1
Error updating 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
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
Preparing to unpack .../zoneminder-doc_1.36.34-bookworm1_all.deb ...
Unpacking zoneminder-doc (1.36.34-bookworm1) over (2:1.36.33-dmo3) ...
Setting up zoneminder-doc (1.36.34-bookworm1) ...
Setting up zoneminder (1.36.34-bookworm1) ...
chown: cannot dereference '/var/cache/zoneminder/skins_classic_js_jquery-ui-1.12.1_jquery-ui.structure.min-dark-1624386913.css': No such file or directory
detected systemd
Detected db service is mariadb.service
Checking for db
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Cannot talk to database. You will have to create the db manually with something like:
cat /usr/share/zoneminder/db/zm_create.sql | mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
/var/lib/dpkg/info/zoneminder.postinst: 29: [: -ne: unexpected operator
Updating permissions for user zmuser@localhost
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Please give a valid option
Usage:
zmupdate.pl -c,--check | -f,--freshen | -v<version>,--version=<version>
[-u <dbuser> -p <dbpass>]
Options:
-c, --check - Check for updated versions of ZoneMinder -f, --freshen -
Freshen the configuration in the database. Equivalent of old zmconfig.pl
-noi --migrate-events - Update database structures as per
USE_DEEP_STORAGE setting. -v <version>, --version=<version> - Force
upgrade to the current version from <version> -u <dbuser>,
--user=<dbuser> - Alternate DB user with privileges to alter DB -p
<dbpass>, --pass=<dbpass> - Password of alternate DB user with
privileges to alter DB -s, --super - Use system maintenance account on
debian based systems instead of unprivileged account -d <dir>,
--dir=<dir> - Directory containing update files if not in default build
location -interactive - interact with the user -nointeractive - do not
interact with the user
Error updating 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
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks in advance