2012-08-31 5 views
-2

어떻게이 오류를 피할 수 있습니까?PHP 패키지를 제거하는 중 오류가 발생했습니다.

[email protected]:~# sudo apt-get remove php5-imagick 

Reading package lists... Done 

Building dependency tree... Done 

The following packages will be REMOVED: 

    php5-imagick 

0 upgraded, 0 newly installed, 1 to remove and 43 not upgraded. 

7 not fully installed or removed. 

After this operation, 426 kB disk space will be freed. 

Do you want to continue [Y/n]? y 

(Reading database ... 25121 files and directories currently installed.) 

Removing php5-imagick ... 

sed: can't read /etc/php5/conf.d/imagick.ini: No such file or directory 

dpkg: error processing php5-imagick (--remove): 

subprocess installed post-removal script returned error exit status 2 

configured to not write apport reports 
             Errors were encountered while processing: 
php5-imagick 

E: Sub-process /usr/bin/dpkg returned an error code (1) 
+1

이 SO에 비해 수퍼 유저를위한 더 나은 질문은 아마입니다. – Fluffeh

답변

0

편집 /var/lib/dpkg/info/php5-imagick.postrm 및 /etc/php5/conf.d/imagick.ini에 대한 행을 제거합니다. 그런 다음이 패키지를 제거 할 수 있어야합니다. 원하는대로 /etc/php5/conf.d/imagick.ini를 수정/제거해야합니다.

0

파일 /etc/php5/conf.d/imagick.ini가 없습니다. 할 해결하려면 :

  1. sudo touch /etc/php5/conf.d/imagick.ini
  2. sudo dpkg --purge --force-all php5-imagick
관련 문제