zoneminder is not removing

Asked by sreenivas

Hi all
         i am using ubuntu 12.04. when i am removing zoneminder i am getting below error

sudo apt-get --purge remove zoneminder

Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <$__ANONIO__> line 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <$__ANONIO__> chunk 1.
Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <$__ANONIO__> line 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <$__ANONIO__> chunk 1.
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'zoneminder' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

what is the problem. please help me?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Are there any bugs reported?

Revision history for this message
sreenivas (svr-453) said :
#3

Thank you for your reply Mr Andrew
when i am running
# service zoneminder start
Starting ZoneMinder: Can't locate ZoneMinder.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
failure

and

root@cubieboard2:~# zmpkg.pl start
Can't locate ZoneMinder.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.

so i decided to remove entire zoneminder and install again

and also i tried with dpkg
#dpkg --purge zoneminder
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'zoneminder' is missing final newline

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

I have seen similar error messages in the past, and the root cause at that other system was a problem with the perl installation caused by a file system error on the hard disk.

You might try checking your file systems for inconsistencies, and then try reinstalling perl.

Revision history for this message
sreenivas (svr-453) said :
#5

Thank for your reply Mr.Manfred Hampl .
i am getting another error

root@cubieboard2:~# service zoneminder start
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
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 37.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 37.
failure

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

What is the output of:

ls /var/lib/dpkg/info/* | grep -i zone

Thanks

I found this guide:
https://wiki.kubuntu.org/DebuggingInstallationIssues

We may be able to rip the application out brute force style

Revision history for this message
sreenivas (svr-453) said :
#7

Thanky very very much for ur reply Mr.actionparsnip (andrew-woodhead666)
i am irritating with those errors. so ii decided that i have purge zoneminder and installed again.
i am getting at the end

mysql start/running, process 4504
Setting up javascript-common (8) ...
ln: failed to create symbolic link `/etc/lighttpd/conf-enabled/90-javascript-alias.conf': File exists
dpkg: error processing javascript-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of zoneminder:
 zoneminder depends on javascript-common; however:
  Package javascript-common is not configured yet.

dpkg: error processing zoneminder (--configure):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead ...
Setting up mysql-server (5.5.27-0ubuntu2) ...
Errors were encountered while processing:
 javascript-common
 zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
after that
root@cubieboard2:~# service zoneminder start
zoneminder: unrecognized service
what i have to do now, is there any idea??

Revision history for this message
sreenivas (svr-453) said :
#8

hai Mr.andrew

root@cubieboard2:/etc/apache2/conf.d# file zoneminder.conf
zoneminder.conf: broken symbolic link to `/etc/zm/apache.conf'
root@cubieboard2:/etc/apache2/conf.d#
any idea?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Thats not the output of the command I gave.

Revision history for this message
sreenivas (svr-453) said :
#10

sorry for that, here the answer for your command

root@cubieboard2:~# ls /var/lib/dpkg/info/* | grep -i zone
/var/lib/dpkg/info/zoneminder.conffiles
/var/lib/dpkg/info/zoneminder.list
/var/lib/dpkg/info/zoneminder.md5sums
/var/lib/dpkg/info/zoneminder.postinst
/var/lib/dpkg/info/zoneminder.postrm
/var/lib/dpkg/info/zoneminder.preinst
/var/lib/dpkg/info/zoneminder.prerm

Thank you.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#11

sudo rm /var/lib/dpkg/info/zoneminder.{postinst,prerm,postrm}

sudo apt-get remove --purge zoneminder

sudo apt-get clean

sudo apt-get update

Revision history for this message
sreenivas (svr-453) said :
#12

Thanks actionparsnip, that solved my question.