Ubuntu Jaunty install failed with .deb file...

Forum for questions and support relating to the 1.24.x releases only.
Locked
gian
Posts: 73
Joined: Sun Mar 22, 2009 7:51 pm

Ubuntu Jaunty install failed with .deb file...

Post by gian »

gian@recorder:~$ sudo dpkg -i --force-depends zoneminder_1.24.1-pre-1_amd64.deb
Selecting previously deselected package zoneminder.
(Reading database ... 27082 files and directories currently installed.)
Unpacking zoneminder (from zoneminder_1.24.1-pre-1_amd64.deb) ...
Setting up zoneminder (1.24.1-pre-1) ...
Installing new version of config file /etc/zm/zm.conf ...
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) fail ed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/Zon eMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--install):
subprocess post-installation script returned error exit status 255
Processing triggers for man-db ...
Errors were encountered while processing:
zoneminder
gian@recorder:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up zoneminder (1.24.1-pre-1) ...
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Unknown database 'zm' at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
gian@recorder:~$
*****************************

I trashed a working 1.23 thinking that moving to 1.24 with a .deb would have been easy.... what should I do now?

thanks for your time,
-Gian
gian
Posts: 73
Joined: Sun Mar 22, 2009 7:51 pm

Post by gian »

all alone, on a deserted island......?
timcraig
Posts: 195
Joined: Mon Dec 10, 2007 5:53 pm
Location: San Jose, CA

Post by timcraig »

You might find help in the thread about the Zoneminder 1.24.1 deb package:
http://www.zoneminder.com/forums/viewtopic.php?t=13555

If you don't have any previous Zoneminder data, I would just delete the older zoneminder packages you've installed with the -purge option and try reinstalling.
gian
Posts: 73
Joined: Sun Mar 22, 2009 7:51 pm

Post by gian »

Tim,

thanks for your kind reply.

I got the .deb from that tread, but I must have got something wrong.

If the deb is an update, I should have not removed the older version.

I tried to reinstall v1.23, but I get the same error, so I'm stuck.

Anybody here with a working Jaunty 64bit install?

-Gian
gian
Posts: 73
Joined: Sun Mar 22, 2009 7:51 pm

Post by gian »

I apt-get autoremove zoneminder, and gave the .deb a try again.

It looks like it expects to find the ZM database, which was dropped, and it complains for missing dependencies.

But isn't the .deb package supposed to take care of dependencies?
Locked