0

Starting from a stable Debian 8 installation I did the installation steps in these links:

https://zoneminder.readthedocs.io/en/stable/installationguide/debian.html https://wiki.zoneminder.com/Debian_8_64-bit_with_Zoneminder_1.29.0_the_Easy_Way

But here's what happens:

Add jessie-backports:

# vi /etc/apt/sources.list
deb http://http.debian.net/debian jessie-backports main

Begin install:

# apt-get update

# apt-get install zoneminder
...
Preparing to unpack .../zoneminder_1.29.0+dfsg-1~bpo8+1_armel.deb ...
Unpacking zoneminder (1.29.0+dfsg-1~bpo8+1) ...
...
dpkg: dependency problems prevent configuration of zoneminder:
zoneminder depends on javascript-common; however:
Package javascript-common is not configured yet.
dpkg: error processing package zoneminder (--configure):
dependency problems - leaving unconfigured
...
Errors were encountered while processing:javascript-common
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've tried uninstalling and reinstalling javascript-common (and a LOT of other measures) to no avail.

Any idea how to fix this?

Thanks, Greg

gbeddow
  • 11
  • "Errors were encountered while processing:javascript-common" ... you need to show those errors, you omitted them from your log. Full output from dpkg --configure -a would probably work too. – derobert Dec 15 '16 at 22:29
  • Nothing omitted - no other errors were displayed by apt-get or dpkg. – gbeddow Dec 16 '16 at 00:24
  • dpkg --configure -a doesn't display anything. – gbeddow Dec 16 '16 at 00:25
  • that is odd, because the final error message says something went wrong configuring javascript-common. Try running apt-get install zoneminder again. And give the full output (unless you really have to omit something, e.g., for security) if it's failing still. – derobert Dec 16 '16 at 07:51

2 Answers2

1

Thanks for the help, much appreciated. I was finally able to track this down to a post-install script for javascript-common (dependency of ZoneMinder) that was assuming apache 2.4 (still running apache 2.2 here). With a bit of hacking on the script it finally installed.

gbeddow
  • 11
0

Answering because I had the same issue and had to research exactly which incompatibility existed. Downloaded and extracted the package, commented out entire if..fi block referencing apache2_invoke in postinst, postrm, and prerm, then repackaged the .deb to install with dpkg as explained here. The only downside to the repackage is that I may have to remember to delete config files and symlinks if necessary.

Other relevant links:

Apache 2.4 notes explaining how to parse the new commands wrt packaging

Notes comparing 2.2 and 2.4 function with apache2_invoke