php5-xxx 5.x.x-1ubuntux.x is to be installed [Solved]

While installing PHP modules using apt-get utility on Ubuntu system, you may end up with following error:

php5-common 5.3.2-1ubuntu4 but 5.3.2-1ubuntu4.2 is to be installed

The above error occurs because the package php5 (5.3.2-1ubuntu4.2) is present on your system bu apt-get utitlity is either trying to install module of higher or lower version.

Solution:

To resolve the issue, download the PHP module manually from canonical archive.

While downloading the module, make sure that it contains "5.3.2-1ubuntu4.2" with correct OS bit else it will not work.

Example:

# apt-get install php5-ldap

..

..

php5-common 5.3.2-1ubuntu4 but 5.3.2-1ubuntu4.2 is to be installed

# wget http://www.archive.canonical.com/pool/public/p/php5/php5-ldap_5.3.2-1ubuntu4.2_i386.deb

# dpkg -i php5-ldap_5.3.2-1ubuntu4.2_i386.deb

# php -m

That's it!

Share on Facebook3
Share on Google+6Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Digg thisPin on Pinterest0Share on Reddit0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA