Jump to content

Installing php5-cli on Ubuntu


seventheyejosh

Recommended Posts

Hey guys, quick question. I've installed php5-cli before, and have never had an issue, but the server I'm working on now is being strange. I have it currently set up as a LAMP stack, so php is already installed.

 

Here is my error:

 

sudo apt-get install php5-cli

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:
  php5-cli: Depends: php5-common (= 5.3.2-1ubuntu4) but 5.3.2-1ubuntu4.2 is to be installed
E: Broken packages

 

And here is my version of php5-common:

 

dpkg -s php5-common

Package: php5-common
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 1008
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: php5
Version: 5.3.2-1ubuntu4.2
Provides: php5-json, php5-mhash
Depends: sed (>= 4.1.1-1), libc6 (>= 2.4)
Suggests: php5-suhosin
Conflicts: php5-json, php5-mhash
Conffiles:
/etc/php5/conf.d/pdo.ini 912f18e8b5be5a1d629426461eec9969
/etc/cron.d/php5 38ad4ffd743224f6211259fa13bd7516
Description: Common files for packages built from the php5 source
This package contains the documentation and example files relevant to all
the other packages built from the php5 source.
.
PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed
from C, Java and Perl with a couple of unique PHP-specific features thrown
in. The goal of the language is to allow web developers to write dynamically
generated pages quickly. This version of PHP5 was built with the Suhosin patch.
Homepage: http://www.php.net/
Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>

 

I've tried apt-get update / upgrade, but to no avail, probably because the installed package is higher than the one that is required.

 

Thoughts?

 

Thanks, Josh.

Link to comment
Share on other sites

Is there a reason why it is

 

php5-cli: Depends: php5-common (= 5.3.2-1ubuntu4) but 5.3.2-1ubuntu4.2 is to be installed

 

Likely because its a bug.

 

And if it is a bug, how can it be remedied?

 

Either fix (and maintain) the package yourself or report it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.