未满足的依赖关系是什么意思?

未满足的依赖关系是什么意思?

我需要安装php5-xmlrpc,但我看到的结果是这样的:

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.

我的消息来源列表:

## 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

答案1

未满足的依赖关系意味着您尝试安装的包需要特定的包,但 apt 无法找到它。

在您的情况下,php5-xmlpc 需要 php5-common ver 5.6.4+dfsg-4ubuntu6.4,但 apt 想要安装 ver 5.6.11+dfsg-1ubuntu3.4

您可以使用包管理器或aptitude查看可用包。安装所需版本并将其标记为“保留”。或者安装较新版本的 php xmlpc

你可以在这里获取 5.6.4:https://launchpad.net/ubuntu/vivid/amd64/php5-common/5.6.4+dfsg-4ubuntu6

相关内容