The initial error is actually with the zoneminder package.
Preparing to replace zoneminder 1.25.0-1 (using .../zoneminder_1.25.0-1.1ubuntu1_i386.deb) ...^M
Stopping ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/ZoneMinder/Config.pm line 89^M
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.^M
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.^M
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.^M
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.^M
Compilation failed in require at /usr/bin/zmpkg.pl line 37.^M
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.^M
Zoneminder already stopped^M
^M
Aborting installation of zoneminder due to non-default symlinks in^M
/usr/share/zoneminder for the images and/or events directory, which could^M
result in loss of data. Please move your data in each of these directories to^M
/var/cache/zoneminder before installing zoneminder from the package.^M
dpkg: error processing /var/cache/apt/archives/zoneminder_1.25.0-1.1ubuntu1_i386.deb (--unpack):^M
subprocess new pre-installation script returned error exit status 1^M
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/ZoneMinder/Config.pm line 89^M
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.^M
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.^M
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.^M
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.^M
Compilation failed in require at /usr/bin/zmpkg.pl line 37.^M
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.^M
failure^M
^M
invoke-rc.d: initscript zoneminder, action "start" failed.^M
invoke-rc.d: release upgrade in progress, error is not fatal^M
The already installed and configured bug (from dpkg) is well known and another duplicate is unnecessary, so I'm moving this to the zoneminder package.
The initial error is actually with the zoneminder package.
Preparing to replace zoneminder 1.25.0-1 (using .../zoneminder_ 1.25.0- 1.1ubuntu1_ i386.deb) ...^M 'database= zm;host= localhost' ,'zmuser' ,...) failed: Can't connect to local MySQL server through socket '/var/run/ mysqld/ mysqld. sock' (2) at /usr/share/ perl5/ZoneMinde r/Config. pm line 89^M perl5/ZoneMinde r/Config. pm line 91.^M perl5/ZoneMinde r/Config. pm line 100.^M perl5/ZoneMinde r.pm line 33.^M perl5/ZoneMinde r.pm line 33.^M zoneminder for the images and/or events directory, which could^M zoneminder before installing zoneminder from the package.^M apt/archives/ zoneminder_ 1.25.0- 1.1ubuntu1_ i386.deb (--unpack):^M 'database= zm;host= localhost' ,'zmuser' ,...) failed: Can't connect to local MySQL server through socket '/var/run/ mysqld/ mysqld. sock' (2) at /usr/share/ perl5/ZoneMinde r/Config. pm line 89^M perl5/ZoneMinde r/Config. pm line 91.^M perl5/ZoneMinde r/Config. pm line 100.^M perl5/ZoneMinde r.pm line 33.^M perl5/ZoneMinde r.pm line 33.^M
Stopping ZoneMinder: DBI connect(
Can't call method "prepare_cached" on an undefined value at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/bin/zmpkg.pl line 37.^M
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.^M
Zoneminder already stopped^M
^M
Aborting installation of zoneminder due to non-default symlinks in^M
/usr/share/
result in loss of data. Please move your data in each of these directories to^M
/var/cache/
dpkg: error processing /var/cache/
subprocess new pre-installation script returned error exit status 1^M
Starting ZoneMinder: DBI connect(
Can't call method "prepare_cached" on an undefined value at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/share/
BEGIN failed--compilation aborted at /usr/share/
Compilation failed in require at /usr/bin/zmpkg.pl line 37.^M
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.^M
failure^M
^M
invoke-rc.d: initscript zoneminder, action "start" failed.^M
invoke-rc.d: release upgrade in progress, error is not fatal^M
The already installed and configured bug (from dpkg) is well known and another duplicate is unnecessary, so I'm moving this to the zoneminder package.