[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)
我一直无法确定ndn-php5-cgi的包是什么,但肯定是为什么php-pear不能安装的原因。 要么完全删除该软件包,要么确保debian安装程序可以覆盖/etc/pear/pear.conf文件。 制作该文件的备份副本可能也是一个好主意,这样就可以确定这两个软件包是否可以并排居住。
那么,谨慎的风(庆幸没有关键)和apt-get删除的nun-php5-cgi其中包括:(ndn-apache22-php5 ndn-php5-cgi ndn-php5-xcache zendoptimizer)让我充分与PECL一起安装php-pear几乎与你所得到的相同的错误。 这些意味着什么,我不知道,但是对于我正在运行的这个实验来说,它是有效的。 (可能不是最好的编程技术)。