dpkg package pre-removal script returned error

On a Plesk server, MySQL somehow went missing. When I tried to remove a package, I get error

To fix this, i removed the prerm and postrm scripts. These scripts execute before and after a package is removed. It is not recommended to remove it, but if these scripts prevent you from uninstalling a package, you can remove them as last option.

Or you can just edit the file, put

somewhere before the error happens.

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *