Author Topic: [SOLVED]zentyal-ids module problem?  (Read 3367 times)

NanoSurfer

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
[SOLVED]zentyal-ids module problem?
« on: January 20, 2012, 10:25:04 am »
Hi Guys

This is my first post to the forum and my 3rd day of trying Zentyal :) Firstly I want to say WOW! This truly is an amazing piece of sever software and so far I am most impressed! I like the layout and very professional look of the whole package. Nice work guys and especially to the devs!

To give you a brief history of my problem, I have installed Zentyal on top of my existing install of Ubuntu server 10.04 LTS (I also downloaded the iso but haven't used it.) Now this server is my own private home server with a web blog already setup. I had already installed Snort previously and it is working fine, it is still working ok.

I think this is obviously the root of my problem, the issue being that I have managed to install EVERY Zentyal module without any errors except zentyal-ids :'(

Obviously I would imagine that because I have already installed Snort, this is why I am having this problem, but my question is, how do I remove Snort so that I can install the zentyal-ids module? :o

If I issue these commands on the server: sudo dpkg --configure -a

I get the following:

dpkg: dependency problems prevent configuration of zentyal-ids:
 zentyal-ids depends on snort (>= 2.7); however:
  Package snort is not installed.
dpkg: error processing zentyal-ids (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 zentyal-ids

It really confuses me by saying that Package snort is not installed??? It is installed and working if I point my web browser to it ??? BUT! now if I issue sudo /etc/init.d/snort start, I get /etc/init.d/snort: command not found, so clearly I have stuffed it up now :o

Then if I issue: sudo apt-get install -f

I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  snort
Suggested packages:
  snort-doc
The following NEW packages will be installed:
  snort
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/554kB of archives.
After this operation, 1,208kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 95507 files and directories currently installed.)
Unpacking snort (from .../snort_2.8.5.2-2build1_i386.deb) ...
usermod: user snort is currently logged in
dpkg: error processing /var/cache/apt/archives/snort_2.8.5.2-2build1_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 8
Errors were encountered while processing:
 /var/cache/apt/archives/snort_2.8.5.2-2build1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The line above seems to be causing me grief?? ???

Please can anybody tell me how to resolve this problem? I would prefer not doing a fresh install as my server is tweaked to perfection (well, I think it is...Hope it is!) and it would be a mission doing all that again  :'(

Thank you
NanoSurfer

 
« Last Edit: January 23, 2012, 10:46:44 am by NanoSurfer »

stuartiannaylor

  • Guest
Re: zentyal-ids module problem?
« Reply #1 on: January 20, 2012, 10:41:58 am »
Erm you might of ended up in dependency hell.

All I can think of is to remove the zentyal module.

Then see if you can remove the original

Then put back the zentyal module.

Not much of a tip I am afraid.

Stuart

NanoSurfer

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: zentyal-ids module problem?
« Reply #2 on: January 20, 2012, 11:14:42 am »
Hi stuartiannaylor

Thank you very much for your response! I appreciate it :)

Following your advice, I removed the zentyal module by issuing: sudo apt-get remove zentyal-ids

Which gave me:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  zentyal-ids
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 205kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 95499 files and directories currently installed.)
Removing zentyal-ids ...
Processing triggers for zentyal-core ...
 * Restarting Zentyal module: apache                                     [ OK ]
 * Restarting Zentyal module: logs                                       [ OK ]
 * Restarting Zentyal module: events                                     [ OK ]

Cool, then I tried: sudo apt-get remove snort

And got:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package snort is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

AAAHhhh  :o

I guess you're right, I am in dependency hell  :'(

Damn! It' getting hot in here.... let me out!! ;D

PS: I tried issuing: sudo dpkg --configure -a, again which gave me no result, ie: nothing to configure

Then sudo apt-get install -f

and got:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

But if I try to then reinstall zentyal-ids again, it keeps sending me on the same wild goose chase all over again :o




« Last Edit: January 20, 2012, 11:55:12 am by NanoSurfer »

NanoSurfer

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: zentyal-ids module problem? [SOLVED]
« Reply #3 on: January 21, 2012, 02:35:51 pm »
Hey Guys

I managed to solve this in the end.., by re-installing  ;D

Not exactly the solution that I was hoping for but one that I knew would certainly work! I figured that I had broken my system but I am sure that a solution was out there, I just couldnt find it. Being the perfectionist that i am, I thought why not, I felt like a challenge again ;D I am happy to report that it is all working great now.

A big shout out to stuartiannaylor for trying to help! Thanks man.

Cheers
NanoSurfer