PacketFence - BTS - PacketFence
View Issue Details
0001642PacketFencepackagingpublic2013-05-14 21:442013-05-15 07:13
adamashley 
francis 
normalmajoralways
resolvedfixed 
4.0.0 
+1 
https://github.com/inverse-inc/packetfence/commit/0816032722c3b4c99be2010667b2e585c0acc756 [^]
0001642: Ubuntu package install fails when trying to stop services that don't exist
Clean ubuntu 12.04.2 LTS install with minimal install. Only SSH and requirements to boot are installed.

Add repository and install package as documented at http://www.packetfence.org/support/faqs/article/how-to-install-packetfence-on-ubuntu.html [^]

Install runs until following error message occurs:
dpkg: error processing packetfence (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 packetfence


Edited /var/lib/dpkg/info/packetfence.postinst to add more comments through out the process that is failing. Resulting log:

root@proxy01:/var/lib/dpkg# apt-get install -f
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, 0 B of additional disk space will be used.
Setting up packetfence (4.0.0) ...
DH already exists, won't touch it!
managing services
Stopping snort
dpkg: error processing packetfence (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 packetfence
E: Sub-process /usr/bin/dpkg returned an error code (1)

Install script is failing because there is no service called snort installed on the machine. Only packages installed are those listed as dependancies for packetfence.
No tags attached.
Issue History
2013-05-14 21:44adamashleyNew Issue
2013-05-15 07:13francisfixed in git revision => 0816032722c3b4c99be2010667b2e585c0acc756
2013-05-15 07:13francisStatusnew => resolved
2013-05-15 07:13francisFixed in Version => +1
2013-05-15 07:13francisResolutionopen => fixed
2013-05-15 07:13francisAssigned To => francis
2013-05-15 07:13francisfixed in git revision0816032722c3b4c99be2010667b2e585c0acc756 => https://github.com/inverse-inc/packetfence/commit/0816032722c3b4c99be2010667b2e585c0acc756 [^]

There are no notes attached to this issue.