5

I can't purge libapache2-mod-php5. Give me this error.

ucfr: Corrupt registry: Duplicate entries for /etc/php5/apache2/php.ini
libapache2-mod-php5      /etc/php5/apache2/php.ini
libapache2-mod-php5      /etc/php5/apache2/php.ini

The folder /etc/php5/ doesn't exists.

3

1 Answer 1

7

I got same error. I was able to purge all apache and php stuff, but can't install libapache2-mod-php5 back. Gives me same error:

Creating config file /etc/php5/apache2/php.ini with new version
ucfr: Corrupt registry: Duplicate entries for /etc/php5/apache2/php.ini
libapache2-mod-php5      /etc/php5/apache2/php.ini
libapache2-mod-php5      /etc/php5/apache2/php.ini
libapache2-mod-php5      /etc/php5/apache2/php.ini
dpkg: error processing libapache2-mod-php5 (--configure):
 subprocess installed post-installation script returned error exit status 3
Errors were encountered while processing:
 libapache2-mod-php5
E: Sub-process /usr/bin/dpkg returned an error code (1)

What I did to solve this, was:

$ sudo nano /var/lib/ucf/registry

and remove duplicated php.ini lines from that file. Not sure, was it pretty thing to do, but it helps.

2
  • f you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context.
    – Mitch
    Commented Mar 19, 2014 at 11:38
  • Well it's not. But yeah, I should add this as comment to question, sorry for that. But is is same issue, I wasn't able to purge normally. So I changed my topic and added an solution also
    – mihkelo
    Commented Mar 19, 2014 at 15:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .