【发布时间】:2016-10-11 21:39:57
【问题描述】:
我在我的 Ubuntu 上将 mysql 版本从 5.5 升级到了 5.7。
但是,在那之后没有任何与 mysql 相关的工作。我也更新了 php5-mysql 包。
我发现我必须使用命令 sudo apt-get install php5-mysqlnd 安装 php5-mysqlnd 包。但是,它无法安装。消息:
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 resolve the situation:
The following packages have unmet dependencies:
php5-mysqlnd : Depends: phpapi-20121212
Depends: php5-common (= 5.5.36+dfsg-1+donate.sury.org~trusty+1) but 5.6.18+dfsg-1+deb.sury.org~trusty+1 is to be installed
E: Unable to correct problems, you have held broken packages.
我的 PHP 版本 5.6.18-1+deb.sury.org~trusty+1
【问题讨论】:
-
您似乎使用了自定义存储库
donate.sury.org,请在问题中添加您的apt配置。并尝试使用默认存储库?
标签: php linux ubuntu ubuntu-14.04 apt-get