LinuxQuestions.org
Review your favorite Linux distribution.
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 01-30-2009, 05:31 PM   #1
kalane
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
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!
 
Old 01-30-2009, 06:18 PM   #2
kap4lin
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
Angry

Quote:
Originally Posted by kalane View Post
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.
 
Old 01-30-2009, 07:24 PM   #3
kalane
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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!
 
  


Reply


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
Need help with apt-get and dependencies isuck@linux Linux - Software 3 08-09-2006 11:20 AM
apt-get and dependencies FWSquatch Debian 8 02-02-2006 07:42 PM
Does apt-get has any dependencies Jzarecta Linux - Software 1 01-01-2006 04:15 PM
apt doesn't fix all dependencies :(? darkleaf Debian 4 07-25-2004 04:08 AM
apt-get dependencies problem dchiesa Debian 14 04-15-2004 10:11 PM

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

All times are GMT -5. The time now is 10:26 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