gpt4 book ai didi

linux - sudo apt-get install php5-cli 时出错

转载 作者:太空狗 更新时间:2023-10-29 12:16:59 27 4
gpt4 key购买 nike

我正在使用 Linux Mint。我正在尝试安装 php5-cli,但在执行相应的 bash 命令后,我有以下日志:

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 返回错误代码 (1)

如果我尝试执行 sudo apt-get install man-db 或 sudo apt-get install libapache2-mod-php5 我会遇到同样的错误。为什么会发生?

最佳答案

从/etc/php5/apache/php.ini 符号链接(symbolic link)/etc/php5/cli/php.ini 后,我遇到了同样的错误我删除了符号链接(symbolic link),然后调用了

sudo apt-get -f install

一切都很好!

关于linux - sudo apt-get install php5-cli 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21354602/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com