[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

seen on upgrade



With2 no apache running:


Unpacking replacement php5-common ...
dpkg: apache2-common: dependency problems, but removing anyway as you request:
 apache2-mpm-prefork depends on apache2-common (= 2.0.55-4.2); however:
  Package apache2-common is to be removed.
(Reading database ... 241457 files and directories currently installed.)
Removing apache2-common ...
Stopping apache 2.0 web server...Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load:
API module structure `php5_module' in file /usr/lib/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
 failed!
invoke-rc.d: initscript apache2, action "stop" failed.
dpkg: error processing apache2-common (--purge):
 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)


$ file /etc/apache2/mods-enabled/php5.load
/etc/apache2/mods-enabled/php5.load: symbolic link to `/etc/apache2/mods-available/php5.load'
$ cat /etc/apache2/mods-enabled/php5.load
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so


Gee, no way to remove a package without trying to stop it even though
it is not running.

Wait, seeming to be able to get out of the mess with
# apt-get -f --purge remove apache2 libapache2-mod-php5
Reading package lists... Done

Now
# apt-get -f --purge install apache2.2-common
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  apache2-mpm-prefork
The following packages will be REMOVED:
  


now what?



Reply to: