LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get php5 dependencies (https://www.linuxquestions.org/questions/linux-software-2/apt-get-php5-dependencies-701123/)

kalane 01-30-2009 06:31 PM

apt-get php5 dependencies
 
So this is my first post here, I hope this is in the right forum. Please let me know if not.

I just got a new VPS with Debian installed, the lenny version. I'm currently trying to install php5 using apt-get but I'm getting some dependency errors:

# sudo apt-get install php5 libapache2-mod-php5 php5-cgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libapache2-mod-php5: Depends: libdb4.4 but it is not installable
php5-cgi: Depends: libdb4.4 but it is not installable
E: Broken packages

I'm pretty sure that libdb4.4 will not install. I don't think it's available since I can't see it when I do an apt-cache search, but I see that I already have libdb4.6 already installed.

Any ideas? This is my first time doing this from scratch, and as easy as apt-get seems to make all of this, I'm still pretty lost here.

Thank you!

kap4lin 01-30-2009 07:18 PM

Quote:

Originally Posted by kalane (Post 3426765)
libapache2-mod-php5: Depends: libdb4.4 but it is not installable
php5-cgi: Depends: libdb4.4 but it is not installable
E: Broken packages

Hmm, both libapache2-mod-php5 and php5-cgi depend on libdb4.6. You can see this from
Code:

apt-cache show libapache2-mod-php5 php5-cgi.
Do you have any non-trivial repositories in your source.list? If apt is getting this from debian's official lenny repositories and still complaining, then there probably is a bug in the packaging:
Code:

apt-cache policy php5-cgi libapache2-mod-php5
One other thing you could try is just download php5-cgi and see the dependencies:
Code:

apt-get -d install php5-cgi
dpkg -I /var/cache/apt/archives/php5-cgi<tab>

You could do an apt-get update and see if things change.

kalane 01-30-2009 08:24 PM

Problem Solved.
 
My friend and I are administering this server and he added a couple of sources to the list that were trying to install some etch packages. I removed those two sources and everything installed without a problem.

Thanks for your reply!


All times are GMT -5. The time now is 09:47 PM.