tannenba
Posts: 43
Joined: Tue Dec 24, 2013 5:22 pm
Location: Central Arizona, USA
Contact: Website

Anyone else having problems loading Apache2?

Mon Dec 30, 2013 1:31 am

Finally got my pi to print on my Canon printer (not sure which fixed it), then tried to start for a lamp server...Apache2 common won't configure.

[email protected]:~$ sudo 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 8 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.22-13) ...
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service minidlna and mathkernel if stopped
insserv: loop involving service mathkernel at depth 2
insserv: loop involving service minidlna at depth 1
insserv: Stopping mathkernel depends on minidlna 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-mpm-worker:
apache2-mpm-worker depends on apache2.2-common (= 2.2.22-13); 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.22-13) | apache2-mpm-prefork (= 2.2.22-13) | apache2-mpm-event (= 2.2.22-13) | apache2-mpm-itk (= 2.2.22-13); 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.22-13); however:
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

What is 'mathkernel'?
I removed minidlna, so why is it still a problem?
Is there an easy fix?

plugwash
Forum Moderator
Forum Moderator
Posts: 3420
Joined: Wed Dec 28, 2011 11:45 pm

Re: Anyone else having problems loading Apache2?

Mon Dec 30, 2013 1:56 am

mathkernel appears to come for the raspberry pi foundation's wolfram-engine package.

How did you install minidlna? how did you remove it? what is the output of dpkg -l minidlna?

tannenba
Posts: 43
Joined: Tue Dec 24, 2013 5:22 pm
Location: Central Arizona, USA
Contact: Website

Re: Anyone else having problems loading Apache2?

Mon Dec 30, 2013 2:13 am

Used Apt-get to install and remove. dpkg -l minidlna :


$ dpkg -l minidlna
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
rc minidlna 1.0.24+dfsg- armhf lightweight DLNA/UPnP-AV server t

plugwash
Forum Moderator
Forum Moderator
Posts: 3420
Joined: Wed Dec 28, 2011 11:45 pm

Re: Anyone else having problems loading Apache2?

Mon Dec 30, 2013 3:35 am

Purging the configuration for minidnla with "dpkg -P minidlna" should solve the immediate problem. I'm not positive about the root cause though.

I'm guessing there is something screwy in the dependencies in the minidlna initscript that triggers with certain combinations of other software but I don't know enough about init to figure out exactly what.

mathkernel comes from the raspberry pi foundation's wolfram stuff, but from some googling it appears other packages get into tangles with minidlna as well and the wolfram stuff doesn't specify any dependencies at all so I don't think it's the cause of the problem.

tannenba
Posts: 43
Joined: Tue Dec 24, 2013 5:22 pm
Location: Central Arizona, USA
Contact: Website

Re: Anyone else having problems loading Apache2?

Mon Dec 30, 2013 3:52 am

Thanks, I'll try that tomorrow. On the Pi, it's not a real biggie since it is easy to start over, but it took me most of a day to get cups
to work with my Canon printer and I'm not sure exactly how I got it going.....


I am actually a windows expert, but love playing with different versions on Linux and couldn't resist the Pi. I plan on having
several SD cards to play with.... I also liked the OpenELEC.

Joe

tannenba
Posts: 43
Joined: Tue Dec 24, 2013 5:22 pm
Location: Central Arizona, USA
Contact: Website

Re: Anyone else having problems loading Apache2?

Mon Dec 30, 2013 4:33 pm

You were right! The purge worked.

Thanks
Joe

sander2
Posts: 60
Joined: Wed Jul 04, 2012 2:22 pm

Re: Anyone else having problems loading Apache2?

Sat Feb 01, 2014 1:35 pm

plugwash wrote:Purging the configuration for minidnla with "dpkg -P minidlna" should solve the immediate problem. I'm not positive about the root cause though.
Root cause seems to an incorrect /etc/init.d/mathkernel from the wolfram-engine package. See http://www.raspberrypi.org/phpBB3/viewt ... 66&t=68263

So instead of removing minidlna, you can also remove wolfram-engine. Saves you 450 MB disk space too!

plugwash
Forum Moderator
Forum Moderator
Posts: 3420
Joined: Wed Dec 28, 2011 11:45 pm

Re: Anyone else having problems loading Apache2?

Sat Feb 01, 2014 11:17 pm

sander2 wrote:
plugwash wrote: Root cause seems to an incorrect /etc/init.d/mathkernel from the wolfram-engine package. See http://www.raspberrypi.org/phpBB3/viewt ... 66&t=68263
Unfortunately it seems to be more complex than that. Merely having an init script with no lsb tags on the system along with minidnla seems to sometimes but not always trigger this issue.

In any case given minidlna apparently has a security hole with no maintainer response for over 6 months i'm not sure i'd want it on my systems.

drencor
Posts: 27
Joined: Sun Feb 16, 2014 11:45 pm

Re: Anyone else having problems loading Apache2?

Mon Feb 17, 2014 12:02 am

Actually I am having this same problem right out of the box with the current Raspian image off of raspberrypi.org.

I ran through the raspi-config and as it drops to shell to run commands I see that these error's are there.

I have also been having this problem causing some things I am trying to get done from working as well.

sander2
Posts: 60
Joined: Wed Jul 04, 2012 2:22 pm

Re: Anyone else having problems loading Apache2?

Mon Feb 17, 2014 6:41 am

drencor wrote:Actually I am having this same problem right out of the box with the current Raspian image off of raspberrypi.org.

I ran through the raspi-config and as it drops to shell to run commands I see that these error's are there.

I have also been having this problem causing some things I am trying to get done from working as well.
This thread is specifically about

Code: Select all

insserv: loop involving service mathkernel at depth 2
insserv: loop involving service minidlna at depth 1
Have you got both or one of those two errors?

Return to “Raspbian”