错误时,命令和apt-get安装PHP5-CLI [英] Error when sudo apt-get install php5-cli

查看:566
本文介绍了错误时,命令和apt-get安装PHP5-CLI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Linux Mint的。我试图安装PHP5-CLI,但执行后相应的bash命令我有以下日志:

I'm using linux mint. I'm trying to install php5-cli, but after execution a corresponding bash command I've the following log:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-cli is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 353 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up php5-common (5.4.6-1ubuntu1.5) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up man-db (2.6.3-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
 libapache2-mod-php5 depends on php5-common (= 5.4.6-1ubuntu1.5); however:
  Package php5-common is not configured yet.

dpkg: error processing libapache2-mod-php5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cli:
 php5-cli depends on php5-common (= 5.4.6-1ubuntu1.5); however:
  Package php5-common is not configured yet.

dpkg: error processing php5-cli (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 php5-common
 man-db
 libapache2-mod-php5
 php5-cli
E: Sub-

过程中的/ usr / bin中/ dpkg的返回错误code(1)

process /usr/bin/dpkg returned an error code (1)

如果我试图执行命令和apt-get安装的男人-DB或sudo apt-get的安装中的libapache2-MOD-的php5我有同样的错误。它为什么发生?

If I'm trying to execute sudo apt-get install man-db or sudo apt-get install libapache2-mod-php5 I have the same errors. Why it occurred?

推荐答案

我从/etc/php5/apache/php.ini符号链接的/etc/php5/cli/php.ini后有同样的错误
我删除了符号链接,然后叫

I had this same error after symlinking the /etc/php5/cli/php.ini from /etc/php5/apache/php.ini I deleted the symlink and then called

sudo apt-get -f install

一切都很好!

这篇关于错误时,命令和apt-get安装PHP5-CLI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆