I'm running Debian Etch with Apache2 webserver. While doing a normal apt-get upgrade, I got an error that said it could not remove apache2-common. So anyway, now here is what I get when doing apt-get upgrade:
Code:
server:/etc/apt# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
gallery2: Depends: apache but it is not installed or
apache-ssl but it is not installed or
apache-perl but it is not installed or
apache2 or
httpd
libapache2-mod-perl2: Depends: apache2.2-common but it is not installed
libapache2-mod-php4: Depends: apache2-mpm-prefork (> 2.0.52) but it is not installed or
apache2-mpm-itk but it is not installed
Depends: apache2.2-common but it is not installed
squirrelmail: Depends: apache2 or
httpd
sqwebmail: Depends: apache but it is not installed or
httpd
E: Unmet dependencies. Try using -f.
server:/etc/apt# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
apache apache-common apache2-mpm-prefork apache2.2-common
Suggested packages:
apache-doc apache-ssl apache-perl
The following packages will be REMOVED:
apache2-common
The following NEW packages will be installed:
apache apache-common apache2-mpm-prefork apache2.2-common
0 upgraded, 4 newly installed, 1 to remove and 32 not upgraded.
4 not fully installed or removed.
Need to get 0B/2586kB of archives.
After unpacking 4977kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 133910 files and directories currently installed.)
Removing apache2-common ...
invoke-rc.d: not a symlink: /etc/rc2.d/S91apache2
dpkg: error processing apache2-common (--remove):
subprocess pre-removal script returned error exit status 102
Errors were encountered while processing:
apache2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
server:/etc/apt#
what really sucks is that I can't seem to even be able to re-install apache2 and start over. when i try, i get this:
Code:
server:/etc/apt# apt-get install apache2
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
apache2: Depends: apache2-mpm-worker (>= 2.2.3-3.1) but it is not going to be installed or
apache2-mpm-prefork (>= 2.2.3-3.1) but it is not going to be installed or
apache2-mpm-event (>= 2.2.3-3.1) but it is not going to be installed
libapache2-mod-perl2: Depends: apache2.2-common but it is not going to be installed
libapache2-mod-php4: Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or
apache2-mpm-itk but it is not going to be installed
Depends: apache2.2-common but it is not going to be installed
sqwebmail: Depends: apache but it is not going to be installed or
httpd
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
server:/etc/apt#
but then when I run apt-get -f install, I get this:
Code:
server:/etc/apt# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
apache apache-common apache2-mpm-prefork apache2.2-common
Suggested packages:
apache-doc apache-ssl apache-perl
The following packages will be REMOVED:
apache2-common
The following NEW packages will be installed:
apache apache-common apache2-mpm-prefork apache2.2-common
0 upgraded, 4 newly installed, 1 to remove and 32 not upgraded.
4 not fully installed or removed.
Need to get 0B/2586kB of archives.
After unpacking 4977kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 133910 files and directories currently installed.)
Removing apache2-common ...
invoke-rc.d: not a symlink: /etc/rc2.d/S91apache2
dpkg: error processing apache2-common (--remove):
subprocess pre-removal script returned error exit status 102
Errors were encountered while processing:
apache2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
server:/etc/apt#
Any help is greatly appreciated!