我尝试安装php5-fpm软件包,但我有以下信息:
The following packages have unmet dependencies:
php5-fpm : Depends: php5-common (= 5.5.7+dfsg-1+sury.org~quantal+1) but 5.3.10-1ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
这是完整的终端输出:
root@myserv /home/pw # sudo apt-get install php5-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
Run Code Online (Sandbox Code Playgroud)
和:
root@myserv /home/pw # sudo apt-get install php5-fpm --fix-missing --fix-broken
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:
php5-fpm : Depends: php5-common (= 5.5.7+dfsg-1+sury.org~quantal+1) but 5.3.10-1ubuntu3 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
如何解决?
尝试安装php5-fpm包,通过aptitude它解决所有的依赖问题,
sudo aptitude install php5-fpm
Run Code Online (Sandbox Code Playgroud)
要安装 aptitude,
sudo apt-get install aptitude
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9753 次 |
| 最近记录: |