LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2006, 10:21 PM   #1
bioalchemist
Member
 
Registered: Oct 2005
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
problem updating apache2


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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 problem manicman Linux - Server 2 10-30-2006 01:44 PM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt SUSE / openSUSE 14 04-18-2006 11:36 AM
Apache2 problem unkn0wn Debian 12 04-08-2006 01:48 AM
GD with apache2 problem rincewind Linux - Software 1 08-31-2004 07:57 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration