我在将owncloud从9.0.1更新到9.0.4时遇到了困难。我为owncloud设置了一个apt豁免,因为之前的系统范围的apt-get upgrade调用都是'upgrading' owncloud from 8.x to 4.x。但到目前为止,使用apt-get upgrade owncloud升级运行良好。现在我正在敲击:
root@raspi:/home/pi# apt-get install owncloud
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:
owncloud : Depends: php-doctrine-dbal (< 2.5) but 2.5.4-2 is to be installed
Depends: php-pimple (< 2) but 3.0.2-2 is to be installed
Recommends: exim4 but it is not going to be installed or
mail-transport-agent
Recommends: php-aws-sdk (< 3) but it is not going to be installed
Recommends: php-crypt-blowfish (>= 1.1.0~RC2-2~) but it is not going to be installed
Recommends: php-dropbox but it is not going to be installed
Recommends: php-google-api-php-client (< 1) but it is not going to be installed
Recommends: php5-imap but it is not going to be installed
Recommends: php5-ldap but it is not going to be installed
Recommends: smbclient but it is not going to be installed
E: Unable to correct problems, you have held broken packages.但是:
root@raspi:/home/pi# apt-get install php-doctrine-dbal php-pimple
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-doctrine-dbal is already the newest version (2.5.4-2).
php-pimple is already the newest version (3.0.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.php-doctrine-dbal和php-pimple都是最新版本,为什么apt-get不这么认为呢?我试过运行apt-get install -f,它会报告0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded。但是并没有解决这个问题。非常感谢您的帮助。
发布于 2016-12-12 00:52:37
尝试使用以下命令安装
aptitude install owncloadaptitude应会自动查看并安装依赖项。
这里的问题似乎是php-dochtrine-dbal和php-pimple包太新了。
https://stackoverflow.com/questions/41088535
复制相似问题