参考 http://www.khattam.info/2009/08/04/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error/ 我在ubuntu上安装ldap-account-manager的时候出错, 当sudo aptitude install ldap-account-manager 出现如下错误: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be automatically installed: php-fpdf php5 php5-ldap The following NEW packages will be installed: php-fpdf php5 php5-ldap