Apache2 package requires apache to be running

Bug #88210 reported by Brian Pontarelli
This bug report is a duplicate of:  Bug #95325: PHP5 breaks apache update. Edit Remove
4
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apache2-common

When doing a dist-upgrade from Edgy to Feisty, the package for apache2-common (the old edgy version) required the Apache2 server to be running in order to correctly complete. This should check if Apache is not running, it should just continue like normal.

Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :
Download full text (5.7 KiB)

Confirm this, more or less - it fails to stop, I suppose that's because apache isn't running. But somehow php has broken my apache and I can't start apache (all this has happened during feisty upgrade and I'm kind of waiting to finish the upgrade :)

rhk@ribantop:~/datat$ sudo apt-get -f install
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Reading state information... Valmis
Korjataan riippuvuuksia... Valmis
The following packages were automatically installed and are no longer required:
  apache2-common libt1-5 libgd2-xpm
Use 'apt-get autoremove' to remove them.
Seuraavat ylimääräiset paketit on merkitty asennettaviksi:
  apache2-mpm-prefork apache2.2-common libapache2-mod-php5
Ehdotetut paketit:
  php-pear
Seuraavat paketit POISTETAAN:
  apache2-common
Seuraavat UUDET paketit asennetaan:
  apache2.2-common libapache2-mod-php5
Nämä paketit päivitetään:
  apache2-mpm-prefork
1 päivitetty, 2 uutta asennusta, 1 poistettavaa ja 859 päivittämätöntä.
3 ei asennettu kokonaan tai poistettiin.
Noudettavaa arkistoa 0t/3888kt.
Purkamisen jälkeen käytetään 6324kt lisää levytilaa.
Haluatko jatkaa [K/e]? k
dpkg: apache2-common: dependency problems, but removing anyway as you request:
 apache2-mpm-prefork depends on apache2-common (= 2.0.55-4ubuntu4).
(Reading database ... 126043 files and directories currently installed.)
Removing apache2-common ...
 * Stopping apache 2.0 web server... [fail]
invoke-rc.d: initscript apache2, action "stop" failed.
dpkg: error processing apache2-common (--remove):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 apache2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
rhk@ribantop:~/datat$ sudo /etc/init.d/apache2 start
 * Starting apache 2.0 web server... Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load:
Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
                                                                                                                                           [fail]

NOTE - before the message above I already had removed some php5 packages since apt was complaining about them, as you can see below here:

rhk@ribantop:~/datat$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of php5-gd:
 php5-gd depends on phpapi-20060613+lfs; however:
  Package phpapi-20060613+lfs is not installed.
  Package libapache2-mod-php5 which provides phpapi-20060613+lfs is not installed.
dpkg: error processing php5-gd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
 apache2 depends on apache2-mpm-worker (>= 2.2.3-3.2build1) | apache2-mpm-prefork (>= 2.2.3-3.2build1) | apache2-mpm-event (>= 2.2.3-3.2build1); however:
  Package apache2-mpm-worker is not installed.
  Version of apache2-mpm-prefork on system ...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.