在上篇升完PHP后,其实还附带了一些其他升级,比如,gearman也是PPA的源,当我upgrade之后,居然说有个组件需要更新,libgearman7,说原来的组件是基于libgearman6的。不能运行了,然后,所有的APT操作都无法运行,出现了: E: Sub-process /usr/bin/dpkg returned an error code 。
这,TMD太让人纠结了。最后用了另外的方法处理。。。比较恶心:
XML/HTML代码
- cd /var/lib/dpkg
- sudo mv info info.bak
- sudo mkdir info
只是这样之后,会报一些notice:
XML/HTML代码
- dpkg: warning: files list file for package `liblockfile1' missing, assuming package has no files currently installed.
- dpkg: warning: files list file for package `liblaunchpad-integration1' missing, assuming package has no files currently installed.
- dpkg: warning: files list file for package `libxau6' missing, assuming package has no files currently installed.
- dpkg: warning: files list file for package `gconf-defaults-service' missing, assuming package has no files currently installed.
- dpkg: warning: files list file for package `libio-string-perl' missing, assuming package has no files currently installed.
于是我还是把info.bak目录下的内容看了下。最终决定将与gearman相关的删除,重新恢复。OK一切正常。哈哈
info目录里的东西,其实就是一些更新所涉及的路径、目录等,将出错的删除,重新update一下就OK了