Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
[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:
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!
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:
E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question
up vote 2 down vote accepted

I haven't been able to establish what exactly the ndn-php5-cgi packge is or does, but it is certainly the reason why php-pear won't install. Either remove that package entirely or make sure that the debian installer can overwrite the /etc/pear/pear.conf file. It's probably also a good idea to make a backup copy of that file so that you can figure out whether these two packages can actually live side by side.

share|improve this answer

Well, throwing caution to the wind (thankfully on nothing critical) and apt-get remove of nun-php5-cgi which includes: ( ndn-apache22-php5 ndn-php5-cgi ndn-php5-xcache zendoptimizer) allowed me to the fully install php-pear with PECL with the almost the EXACT same error you were getting. What these means down the road, I don't know, but it works for me on the experiment I'm running. (probably not the best programming technique).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.