LinuxQuestions.org
Register a domain and help support LQ
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 02-10-2007, 04:46 PM   #1
tdemers
LQ Newbie
 
Registered: Dec 2006
Location: Springfield, MO
Distribution: Linux Mint 2.1
Posts: 6

Rep: Reputation: 0
Question dpkg dependency issue


Trying to install the deb file for particular program that requires apache2 to be installed on the system.

It needs apache 2.2 or higher. I had 2.0, so I uninstalled (well, I did a bit more than that, but it's gone).
Then, because on Debian/Ubuntu, there is no deb package for anything higher than 2.0, I had to do a "manual" install. Found the right file - apache2-mpm-worker_2.2.3-3.2_i386 and installed it.
All is well.
Code:
netstat -an | grep :80
shows port is running
a visit to my machine with a browser shows the default apache stuff.

So, I move on to installing my next piece.

Code:
dpkg -i filename.deb
It fails with an error indicating that "depends on apache2 (>= 2.2.0); however: Package apache2 is not installed."

So, it seems that for some reason dpkg doesn't know about my new apache and when the install runs, it fails because it can't find it.

Where do I:

1. bypass the check for the proper version of apache2?
2. change a file to let dpkg know that package is installed?
3. do something that will make this work?

Thanks!
 
Old 02-10-2007, 07:01 PM   #2
tdemers
LQ Newbie
 
Registered: Dec 2006
Location: Springfield, MO
Distribution: Linux Mint 2.1
Posts: 6

Original Poster
Rep: Reputation: 0
I think I found a solution:

Code:
dpgk -i --ignore-depends=apache2 installfile.deb
the --ignore-depends switch does just what it says...
 
Old 02-10-2007, 11:54 PM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Could it be because it needs more than just the single apache2 package you installed.. when I check the repository for Apache 2..

Code:
aptitude search apache2
p   apache2                         - Next generation, scalable, extendable web
v   apache2-dev                     -
p   apache2-doc                     - documentation for apache2
v   apache2-modules                 -
p   apache2-mpm-event               - Event driven model for Apache HTTPD 2.1
p   apache2-mpm-itk                 - multiuser MPM for Apache 2.2
p   apache2-mpm-perchild            - Transitional package - please remove
p   apache2-mpm-prefork             - Traditional model for Apache HTTPD 2.1
p   apache2-mpm-worker              - High speed threaded model for Apache HTTPD
p   apache2-prefork-dev             - development headers for apache2
p   apache2-src                     - Apache source code
p   apache2-threaded-dev            - development headers for apache2
i   apache2-utils                   - utility programs for webservers
p   apache2.2-common                - Next generation, scalable, extendable web
While you installed apache2-mpm-worker_2.2.3-3.2_i386 did you install apache2 and apache2.2-common
?

that's probably why it's saying apache2 is not installed..

a quick package search shows that apache2 v2.2+ is available in Debian testing and unstable. so I take it you are running Sarge ?
http://packages.debian.org/cgi-bin/s...ywords=apache2

You could look into apt-pinning to install the apache2 packages from etch.. or maybe it's just time for you to move off of stable to something a bit newer..

Just a couple suggestions
 
  


Reply

Tags
dependency, dpkg, install


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can 'dpkg -i' resolve dependency issue automatically? Akhran Debian 13 01-04-2010 09:54 PM
dpkg configure issue...How do I fix it? mitchell7man Linux - Software 2 01-25-2007 09:21 PM
Firefox Dependency issue? synth42 Slackware 4 03-17-2006 04:25 AM
dpkg dependency problems gandhi Debian 3 03-19-2005 02:50 PM
rpm dependency issue afrodocter Linux - Software 1 04-15-2004 02:58 PM


All times are GMT -5. The time now is 07:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration