php - Errors were encountered while processing: libapache2-mod-php5 php5 php5-cli -


i using ubuntu 11.10 now. when struggled install php5 typing

sudo apt-get install php5 

i got error:

...... errors encountered while processing:  libapache2-mod-php5  php5  php5-cli  e: sub-process /usr/bin/dpkg returned error code (1) 

i've tried again, got same error. suggest me remove it. did:

sudo apt-get remove --purge php5 

and got error:

reading package lists... done building dependency tree        reading state information... done following packages removed:   php5* 0 upgraded, 0 newly installed, 1 remove , 27 not upgraded. 3 not installed or removed. after operation, 20.5 kb disk space freed. want continue [y/n]? y (reading database ...  dpkg: warning: files list file package `firefox-locale-en' missing, assuming package has no files installed. (reading database ... 161883 files , directories installed.) removing php5 ... setting libapache2-mod-php5 (5.3.6-13ubuntu3.8) ... cp: reading `/var/lib/ucf/hashfile.5': input/output error dpkg: error processing libapache2-mod-php5 (--configure):  subprocess installed post-installation script returned error exit status 1 setting php5-cli (5.3.6-13ubuntu3.8) ... cp: reading `/var/lib/ucf/hashfile.5': input/output error dpkg: error processing php5-cli (--configure):  subprocess installed post-installation script returned error exit status 1 errors encountered while processing:  libapache2-mod-php5  php5-cli 

then tried install php5-cli , got error:

reading package lists... done building dependency tree        reading state information... done php5-cli newest version. 0 upgraded, 0 newly installed, 0 remove , 27 not upgraded. 3 not installed or removed. after operation, 0 b of additional disk space used. want continue [y/n]? y setting libapache2-mod-php5 (5.3.6-13ubuntu3.8) ... cp: reading `/var/lib/ucf/hashfile.5': input/output error dpkg: error processing libapache2-mod-php5 (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of php5:  php5 depends on libapache2-mod-php5 (>= 5.3.6-13ubuntu3.8) | libapache2-mod-php5filter (>= 5.3.6-13ubuntu3.8) | php5-cgi (>= 5.3.6-13ubuntu3.8) | php5-fpm (>= 5.3.6-13ubuntu3.8); however:   package libapache2-mod-php5 not configured yet.   package libapache2-mod-php5filter not installed.   package php5-cgi not installed.   package php5-fpm not installed. dpkg: error processing php5 (--configure):  dependency problems - leaving unconfigured setting php5-cli (5.3.6-13ubuntu3.8) ... no apport report written because error message indicates followup error previous failure. cp: reading `/var/lib/ucf/hashfile.5': input/output error dpkg: error processing php5-cli (--configure):  subprocess installed post-installation script returned error exit status 1 errors encountered while processing:  libapache2-mod-php5  php5  php5-cli e: sub-process /usr/bin/dpkg returned error code (1) 

i can't open php5-cli though. what's wrong , should do?

open terminal , type

sudo apt-get install -f


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -