gpt4 book ai didi

php - 删除 php 包时出错

转载 作者:太空宇宙 更新时间:2023-11-04 05:54:20 25 4
gpt4 key购买 nike

如何避免这个错误?

root@excel2012:~# 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)

最佳答案

编辑/var/lib/dpkg/info/php5-imagick.postrm 并删除有关/etc/php5/conf.d/imagick.ini 的行。那么这个包应该可以被删除。请记住根据需要修改/删除/etc/php5/conf.d/imagick.ini。

关于php - 删除 php 包时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12213177/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com