[ps]$ sudo apt-get install php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
php-pear
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Need to get 0B/335kB of archives.
After this operation, 2408kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
php-pear
Authentication warning overridden.
(Reading database ... 160671 files and directories currently installed.)
Unpacking php-pear (from .../php-pear_5.2.6.dfsg.1-1+lenny10_all.deb) ...
dpkg: error processing /var/cache/apt/archives/php-pear_5.2.6.dfsg.1-1+lenny10_a ll.deb (--unpack):
trying to overwrite `/etc/pear/pear.conf', which is also in package ndn-php5-cg i
Errors were encountered while processing:
/var/cache/apt/archives/php-pear_5.2.6.dfsg.1-1+lenny10_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我无法确定 ndn-php5-cgi 包到底是什么或做什么,但它肯定是 php-pear 无法安装的原因。要么完全删除该包,要么确保 debian 安装程序可以覆盖 /etc/pear/pear.conf 文件。备份该文件可能也是个好主意,这样您就可以确定这两个包是否真的可以并存。
答案2
好吧,我把谨慎抛到九霄云外(幸好没有什么关键问题),apt-get remove of nun-php5-cgi 包括:(ndn-apache22-php5 ndn-php5-cgi ndn-php5-xcache zendoptimizer)让我能够使用 PECL 完全安装 php-pear,但得到的错误几乎和你得到的一模一样。我不知道这些在以后意味着什么,但它对我正在进行的实验很有效。(可能不是最好的编程技术)。