Mimetype mess after calibre installation. How can I fix it?

The problem was solved reinstalling the shared-mime-info package, as suggested by Glutanimate, with

sudo apt-get install --reinstall shared-mime-info