Answer the question
In order to leave comments, you need to log in
Problem installing php5 packages?
Good afternoon colleagues!
There was a following problem.
Installed ubuntu server 12.10 and still can't cope with the problem of updating and installing packages.
I registered all the official sources, did everything right, as a result, a bummer.
Now I have encountered a problem that I can’t solve in any way:
I’m trying to install the php5-imap php5-ldap php5-imagick packages as follows:
sudo apt-get install php5-imap php5-ldap php5-imagick
And in the end nothing happens and gives me the following:
Some packages cannot be installed. You may be asking for the impossible. Or you are using an unstable version of the distribution, where the packages you requested have not yet been created or have been removed from Incoming.
The following information may help you:
A package that has unmet dependencies:
php5-imagick: depends: phpapi-20090626
php5-imap: depends: phpapi-20090626
php5-ldap: depends: phpapi-20090626
Depends: php5-common (= 5.3. 10 -1ubuntu3.13) but 5.4.6-1ubuntu1 will be installed.
E: Unable to fix bugs, you have broken packages held.
I really can't figure out what's going on and how to fix it. Dear comrades, help me to analyze in detail what this can be connected with and how to fix it.
My source.list:
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://ru.archive.ubuntu.com/ubuntu/ saucy main restricted universe multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ saucy main restricted universe multiverse
###### Ubuntu Update Repos
deb http://ru.archive.ubuntu.com/ubuntu/ saucy-security main restricted universe multiverse
deb http://ru.archive.ubuntu.com/ubuntu/ saucy-updates main restricted universe multiverse
deb http://ru.archive.ubuntu.com/ubuntu/ saucy-proposed main restricted universe multiverse
deb http://ru.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ saucy-security main restricted universe multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ saucy-updates main restricted universe multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ saucy-proposed main restricted universe multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu saucy partner
deb-src http://archive.canonical.com/ubuntu saucy partner
###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu saucy main
deb-src http://extras.ubuntu.com/ubuntu saucy main
Answer the question
In order to leave comments, you need to log in
The problem is with the package versions, one for PHP 5.3, the other for 5.4. Use dotdeb ( http://www.dotdeb.org) as PHP repositories, or install 14.04 instead of 12.10.
The fact is that the main part of PHP you most likely have is 5.3 and the new packages are in the repository from 5.4 and require a new phpapi, all the necessary packages do not have one version, that's the conflict. There are 2 options either to update everything to 5.4, or to find a rap with old versions of imagick, ldap, imap
For ubuntu, it's better to use this repository instead of dotdeb, since the latter is for debian. I had with him a rake like the one you have in question.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question