Hello Jan,
thanks for your feedback.
So i have to find the way to use a different post-install script for debian versus ubuntu.

Regards
Fabrice

Le 2013-04-26 15:38, Jan Behrend a écrit :
On 04/25/2013 06:55 PM, Fabrice DURAND wrote:
deb
http://inverse.ca/downloads/PacketFence/debian-feature-catalyst-admin
wheezy wheezy
Hi Fabrice,

here is the result of my first try:

I tried to install packetfence and packetfence-test:

* First I got a dependency problem:
apache2-mpm-prefork
apache2-mpm-worker

cannot be installed together.  Deleting the worker solved the problem.
I think the apache2 package depends on the worker version by default and
PF on the prefork.  That's cosmetics actually ...

* After this I got a post-install script error:
Unpacking packetfence (from .../packetfence_4.0.0-201304261006_all.deb) ...
pf user already exist
usermod: user 'dhcpd' does not exist
dpkg: error processing
/var/cache/apt/archives/packetfence_4.0.0-201304261006_all.deb (--unpack):
  subprocess new pre-installation script returned error exit status 6
Errors were encountered while processing:
  /var/cache/apt/archives/packetfence_4.0.0-201304261006_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of packetfence-test:
  packetfence-test depends on packetfence; however:
   Package packetfence is not installed.

So I added the dhcpd user, which might not have been the problem in the
first place but this part in 'packetfence.postinst' defenitely is:

         # managing services
         for service in snort apache2 snmptrapfmt bind9 freeradius apparmor;
do
             service $service stop  > /dev/null 2>&1
             update-rc.d -f $service remove > /dev/null 2>&1
         done


Apparmor is not installed as a dependency.  Do you really need it?
Otherwise the existence of the init script should be checked before
trying to remove it. No big deal either ;-)

* After this the system fired up!  But trying to reach the configurator
the webserver threw this error which I could not get passed:

Apr 26 21:26:32 httpd.admin(0) INFO: *** Request 1 (0.004/s) [22906] [Fri
Apr 26 21:26:32 2013] *** (Catalyst::__ANON__)
Apr 26 21:26:32 httpd.admin(0) ERROR: Caught exception in engine "Can't use
an undefined value as an ARRAY reference at /usr/share/perl5/Catalyst.pm
line 1663." (Catalyst::__ANON__)


Thanks for your effort.  I very much appreciate you trying to continue
your Debian support!

Cheers Jan



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr


_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel


--
Fabrice Durand
fdur...@inverse.ca ::  +1.514.447.4918 (x135) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org)

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

Reply via email to