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 :)
[EMAIL PROTECTED]:~/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)
[EMAIL PROTECTED]:~/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:
[EMAIL PROTECTED]:~/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 is 2.0.55-4ubuntu4.
Package apache2-mpm-event is not installed.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mcrypt:
php5-mcrypt 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-mcrypt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5:
php5 depends on libapache2-mod-php5 (>= 5.2.1-0ubuntu1) | php5-cgi (>=
5.2.1-0ubuntu1); however:
Package libapache2-mod-php5 is not installed.
Package php5-cgi is not installed.
dpkg: error processing php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mysql:
php5-mysql 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-mysql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of phpmyadmin:
phpmyadmin depends on libapache2-mod-php5 | libapache-mod-php5 | php5-cgi |
php5 | libapache2-mod-php4 | libapache-mod-php4 | php4 | php4-cgi; however:
Package libapache2-mod-php5 is not installed.
Package libapache-mod-php5 is not installed.
Package php5-cgi is not installed.
Package php5 is not configured yet.
Package libapache2-mod-php4 is not installed.
Package libapache-mod-php4 is not installed.
Package php4 is not installed.
Package php4-cgi is not installed.
phpmyadmin depends on php5-mysql | php5-mysqli | php4-mysql; however:
Package php5-mysql is not configured yet.
Package php5-mysqli is not installed.
Package php4-mysql is not installed.
dpkg: error processing phpmyadmin (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-gd
apache2
php5-mcrypt
php5
php5-mysql
phpmyadmin
So I remove all php-packages above (either with remove or purge).
I also removed apache2-common and apache2-mpm-prefork. Then apt-get install -f
re-installed the apache packages and things started to sort out (and it even
was able to pass the 'failed to start apache'.
Earlier it complained about the versions: it told I had a newer version
of apache installed than the one I was trying to upgrade to, although I
have installed apache from normal edgy repos. Weird - but now dist-
upgrade runs smooth again.
--
Apache2 package requires apache to be running
https://launchpad.net/bugs/88210
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs