It might be related, I cannot uninstall dolibarr:
# aptitude purge dolibarr The following packages will be REMOVED: dolibarr{p} libgmime2.6-cil{u} libproxy0{u} 0 packages upgraded, 0 newly installed, 3 to remove and 2 not upgraded. Need to get 0 B of archives. After unpacking 35.9 MB will be freed. Do you want to continue? [Y/n/?] (Reading database ... 300021 files and directories currently installed.) Removing dolibarr ... You must invoke apache2-maintscript-helper with an unmodified environment when sourcing it dpkg: error processing dolibarr (--purge): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: dolibarr E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: