LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2008, 08:34 PM   #1
acm321
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Unhappy E: Sub-process /usr/bin/dpkg returned an error code (1)


Hi, I'm trying to install Apache on Xubuntu 8.10, and I get this:
Code:
aaron@aaron-laptop:~$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  apache2-mpm-worker: Depends: apache2.2-common (= 2.2.9-7ubuntu3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
aaron@aaron-laptop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  apache2-utils apache2.2-common
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom
The following NEW packages will be installed:
  apache2-utils apache2.2-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/966kB of archives.
After this operation, 4211kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 
dpkg: serious warning: files list file for package `apache2' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `apache2-mpm-worker' missing, assuming package has no files currently installed.
93454 files and directories currently installed.)
Unpacking apache2-utils (from .../apache2-utils_2.2.9-7ubuntu3_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2-utils_2.2.9-7ubuntu3_amd64.deb (--unpack):
 trying to overwrite `/usr/sbin/ab', which is also in package httpd
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Unpacking apache2.2-common (from .../apache2.2-common_2.2.9-7ubuntu3_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.9-7ubuntu3_amd64.deb (--unpack):
 trying to overwrite `/usr/sbin/httxt2dbm', which is also in package httpd
Processing triggers for ufw ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/apache2-utils_2.2.9-7ubuntu3_amd64.deb
 /var/cache/apt/archives/apache2.2-common_2.2.9-7ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Does anyone know how to fix this?
Thanks in advance.
 
Old 11-10-2008, 08:35 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
It told you it needed apache2-mpm-worker as a dependency to apache2. the first thing you should have tried is

sudo apt-get install apache2 apache2-mpm-worker

The only guess I have as to why it didn't do that automatically, is because there are several options for the Multi-Processing Module (MPM) package.

Code:
p   apache2-mpm-event                                      - Apache HTTP Server - event driven model                         
p   apache2-mpm-itk                                        - multiuser MPM for Apache 2.2                                    
i A apache2-mpm-prefork                                    - Apache HTTP Server - traditional non-threaded model             
p   apache2-mpm-worker                                     - Apache HTTP Server - high speed threaded model
Here are all the packages installed for my apache2 server, as an example..

Code:
it-etch:/$ aptitude search  ~i | grep apache2
i   apache2                         - Apache HTTP Server metapackage            
i A apache2-mpm-prefork             - Apache HTTP Server - traditional non-threaded
i A apache2-utils                   - utility programs for webservers           
i   apache2.2-common                - Apache HTTP Server common files           
i A libapache2-mod-php5             - server-side, HTML-embedded scripting language
Hope that helps.

Last edited by farslayer; 11-10-2008 at 08:39 AM.
 
Old 11-10-2008, 10:32 PM   #3
acm321
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
When I did sudo apt-get install apache2 apache2-mpm-worker, it gave me the same error.
 
  


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
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 01:21 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) shogun1234 Linux - Software 1 05-17-2008 09:03 AM
Sub-process /usr/bin/dpkg returned an error code kako13 Debian 2 05-15-2008 06:01 PM
Sub-process /usr/bin/dpkg returned an error code (1) rapattack Debian 10 04-24-2008 11:19 PM
Sub-process /usr/bin/dpkg returned an error code (1) adrian1979 Debian 1 11-12-2006 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 AM.

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