This workaround seams to resolve the issue:
sudo touch /etc/php5/conf.d/imagick.ini sudo dpkg --purge --force-all php5-imagick
This workaround seams to resolve the issue:
sudo touch /etc/php5/ conf.d/ imagick. ini
sudo dpkg --purge --force-all php5-imagick