sudo apt remove php-horde
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
php-horde
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 11.3 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 393448 files and directories currently installed.)
Removing php-horde (5.2.23+debian0-6) ...
/var/lib/dpkg/info/php-horde.postrm: 28: /etc/apache2/envvars: /etc/default/locale: Permission denied
dpkg: error processing package php-horde (--remove):
installed php-horde package post-removal script subprocess returned error exit status 126
dpkg: too many errors, stopping
Errors were encountered while processing:
php-horde
Processing was halted because there were too many errors.
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt install libapache2-mod-fcgid
Reading package lists... Done