LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-28-2013, 03:28 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
Install apache With Error


Hello,
in debian 6.0.5 when i install apache2 .. i get this messages :

root@rayana-p:/etc# aptitude install apache2
The following partially installed packages will be configured:
apache2 apache2-mpm-worker apache2.2-common
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up apache2.2-common (2.2.16-6+squeeze11) ...
insserv: warning: script 'S20webmail' missing LSB tags and overrides
insserv: warning: script 'webmail' missing LSB tags and overrides
insserv: There is a loop between service rmnologin and mountnfs if started
insserv: loop involving service mountnfs at depth 6
insserv: loop involving service networking at depth 5
insserv: loop involving service mountnfs-bootclean at depth 9
insserv: There is a loop between service rmnologin and mountall-bootclean if started
insserv: loop involving service mountall-bootclean at depth 5
insserv: loop involving service mountall at depth 4
insserv: There is a loop between service webmail and lvm2 if started
insserv: loop involving service lvm2 at depth 2
insserv: loop involving service udev at depth 1
insserv: There is a loop at service webmail if started
insserv: There is a loop between service rmnologin and checkroot if started
insserv: loop involving service checkroot at depth 2
insserv: loop involving service keyboard-setup at depth 1
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service rmnologin if started
insserv: There is a loop between service rmnologin and ifupdown-clean if started
insserv: loop involving service ifupdown-clean at depth 1
insserv: loop involving service hostname at depth 3
insserv: loop involving service mountoverflowtmp at depth 9
insserv: There is a loop between service webmail and mtab if started
insserv: loop involving service mtab at depth 5
insserv: There is a loop between service rmnologin and bootlogd if started
insserv: loop involving service bootlogd at depth 2
insserv: loop involving service mountdevsubfs at depth 1
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service rmnologin and mountdevsubfs if started
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: loop involving service checkfs at depth 7
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing apache2.2-common (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
apache2-mpm-worker depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (= 2.2.16-6+squeeze11) | apache2-mpm-prefork (= 2.2.16-6+squeeze11) | apache2-mpm-event (= 2.2.16-6+squeeze11) | apache2-mpm-itk (= 2.2.16-6+squeeze11); however:
Package apache2-mpm-worker is not configured yet.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is not installed.
Package apache2-mpm-itk is not installed.
apache2 depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
configured to not write apport reports
configured to not write apport reports
Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache2.2-common
apache2-mpm-worker
apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up apache2.2-common (2.2.16-6+squeeze11) ...
insserv: warning: script 'S20webmail' missing LSB tags and overrides
insserv: warning: script 'webmail' missing LSB tags and overrides
insserv: There is a loop between service rmnologin and mountnfs if started
insserv: loop involving service mountnfs at depth 6
insserv: loop involving service networking at depth 5
insserv: loop involving service mountnfs-bootclean at depth 9
insserv: There is a loop between service rmnologin and mountall-bootclean if started
insserv: loop involving service mountall-bootclean at depth 5
insserv: loop involving service mountall at depth 4
insserv: There is a loop between service webmail and lvm2 if started
insserv: loop involving service lvm2 at depth 2
insserv: loop involving service udev at depth 1
insserv: There is a loop at service webmail if started
insserv: There is a loop between service rmnologin and checkroot if started
insserv: loop involving service checkroot at depth 2
insserv: loop involving service keyboard-setup at depth 1
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service rmnologin if started
insserv: There is a loop between service rmnologin and ifupdown-clean if started
insserv: loop involving service ifupdown-clean at depth 1
insserv: loop involving service hostname at depth 3
insserv: loop involving service mountoverflowtmp at depth 9
insserv: There is a loop between service webmail and mtab if started
insserv: loop involving service mtab at depth 5
insserv: There is a loop between service rmnologin and bootlogd if started
insserv: loop involving service bootlogd at depth 2
insserv: loop involving service mountdevsubfs at depth 1
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service rmnologin and mountdevsubfs if started
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: loop involving service checkfs at depth 7
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting webmail depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing apache2.2-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
apache2-mpm-worker depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache2.2-common
apache2
apache2-mpm-worker
//////
till now , i tried
apt-get clean
changing repository and apt-get update
aptitude install apache2

any suggestion
 
Old 08-29-2013, 12:39 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Have you tried to run following command?
Code:
sudo dpkg --configure -a
or
Code:
sudo apt-get -f install
 
Old 08-29-2013, 01:28 AM   #3
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
here is the output

apt-get -f install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up apache2.2-common (2.2.16-6+squeeze11) ...
ERROR: Site default does not exist!
dpkg: error processing apache2.2-common (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
apache2-mpm-worker depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (= 2.2.16-6+squeeze11) | apache2-mpm-prefork (= 2.2.16-6+squeeze11) | apache2-mpm-event (= 2.2.16-6+squeeze11) | apache2-mpm-itk (= 2.2.16-6+squeeze11); however:
Package apache2-mpm-worker is not configured yet.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is not installed.
Package apache2-mpm-itk is not installed.
apache2 depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
Package apache2.2-common is not configured yet.
configured to not write apport reports
configured to not write apport reports
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache2.2-common
apache2-mpm-worker
apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 08-29-2013, 01:38 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
You have broken (and probably foreign) init scripts (webmail...) that are preventing the installation scripts from setting up apache properly.

Fix or remove them, then it will install correctly.
 
Old 08-29-2013, 05:11 AM   #5
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
In /etc/init.d/ there is webmail file , written for stop an starting tomcat , so i removed it , then tried apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up apache2.2-common (2.2.16-6+squeeze11) ...
ERROR: Site default does not exist!
dpkg: error processing apache2.2-common (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
apache2-mpm-worker depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (= 2.2.16-6+squeeze11) | apache2-mpm-prefork (= 2.2.16-6+squeeze11) | apache2-mpm-event (= 2.2.16-6+squeeze11) | apache2-mpm-itk (= 2.2.16-6+squeeze11); however:
Package apache2-mpm-worker is not configured yet.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is not installed.
Package apache2-mpm-itk is not installed.
apache2 depends on apache2.2-common (= 2.2.16-6+squeeze11); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
apache2.2-common
apache2-mpm-worker
apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 08-29-2013, 05:47 AM   #6
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
If this command does not solve your problem
Code:
sudo dpkg --configure -a
Remove troubled packages from the file /var/lib/dpkg/status
1) First make back up of status file.

2) Search these three packages
apache2.2-common
apache2-mpm-worker
apache2

and remove the whole paragraph of these packages, it will be appeared in the file like this
Code:
Package: apache2-mpm-prefork
Status: install ok installed
Priority: optional
Section: httpd
Installed-Size: 55
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: apache2
Version: 2.2.22-6ubuntu2.3
Provides: apache2, apache2-mpm, httpd, httpd-cgi
Depends: apache2.2-common (= 2.2.22-6ubuntu2.3), apache2.2-bin (= 2.2.22-6ubuntu2.3)
Conflicts: apache2-common, apache2-mpm
Description: Apache HTTP Server - traditional non-threaded model
 Each Apache Multi-Processing Module provides a different "flavor" of
 web server binary, compiled with a different processing model.
 .
 The prefork MPM provides a non-threaded implementation using a variable
 number of processes where each process handles only one connection
 at the same time. It is not as fast as threaded models, but is considered to
 be more stable. It is appropriate for sites that need to maintain
 compatibility with non-thread-safe libraries, and is the best MPM for
 isolating each request, so that a problem with a single request will not
 affect any other.
Homepage: http://httpd.apache.org/
Original-Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Now try to install it again.
 
Old 08-30-2013, 12:03 AM   #7
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
Problem Solved ,,,
Thank u All
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ERROR when install Apache+Subversion+Trac wwlike2005 Linux - Software 4 10-05-2010 02:27 PM
apache install error kidswipe Linux - Software 9 06-18-2007 12:42 PM
Unable to install Apache: Error: mod_accounting.so does not have a corresponding .in Codeman05 Linux - Software 0 02-03-2004 05:03 PM
Mandrake 8.2: getting error on Apache-2.0.43 install robroto88 Mandriva 2 02-02-2004 04:46 PM
Apache install Error with modules prozach Linux - Software 5 07-27-2002 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration