LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dpkg dependency issue (https://www.linuxquestions.org/questions/linux-software-2/dpkg-dependency-issue-527411/)

tdemers 02-10-2007 04:46 PM

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!

tdemers 02-10-2007 07:01 PM

I think I found a solution:

Code:

dpgk -i --ignore-depends=apache2 installfile.deb
the --ignore-depends switch does just what it says...

farslayer 02-10-2007 11:54 PM

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
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
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
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


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