0

I need to install php5-xmlrpc, but I see this result:

apt-get install php5-xmlrpc --fix-missing
.
.
.

The following packages have unmet dependencies:
php5-xmlrpc : Depends: php5-common (= 5.6.4+dfsg-4ubuntu6.4) but 5.6.11+dfsg-1ubuntu3.4 is to be installed
E: Unable to correct problems, you have held broken packages.

My sources list :

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid main
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates main
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates main

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid universe
deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid multiverse
# deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid multiverse
# deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
# deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
# deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu vivid partner
# deb-src http://archive.canonical.com/ubuntu vivid partner

deb http://security.ubuntu.com/ubuntu vivid-security main
deb-src http://security.ubuntu.com/ubuntu vivid-security main
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
# deb http://security.ubuntu.com/ubuntu vivid-security multiverse
# deb-src http://security.ubuntu.com/ubuntu vivid-security multiverse
Saeed
  • 111
  • 5
  • type `sudo apt update` and try again, if it does not work post the output of `cat etc/apt/sources.list` – Olimjon Oct 22 '17 at 10:48
  • the package requires (depends on) php5-common (=5.6.4... meaning it must be version 5.6.4) but 5.6.11.. is to be installed. likely you have a mismatch between repositories (ie. php5-common installed is from a more recent repo than the repo providing php5-xmlrpc – guiverc Oct 22 '17 at 10:56
  • @chrisguiver -- most likely backports has a newer version and apt wants to install the newest candidate. – ravery Oct 22 '17 at 11:07
  • @Yaron: Unfortunately that question doesn't ask for an explanation like this one and its answers don't provide one either. – David Foerster Oct 23 '17 at 22:24

1 Answers1

1

Unmet dependencies means that the package you are trying to install requires a specific package but apt can not find it.

In your case php5-xmlpc needs php5-common ver 5.6.4+dfsg-4ubuntu6.4, but apt wants to install ver 5.6.11+dfsg-1ubuntu3.4

You can use your package manager or aptitude to look at available packages. Install the version needed and mark it as "hold". Or install a newer version of php xmlpc

you can get 5.6.4 here: https://launchpad.net/ubuntu/vivid/amd64/php5-common/5.6.4+dfsg-4ubuntu6

ravery
  • 6,824
  • 5
  • 21
  • 40