What happens if you manually run
sudo update-mime-database -V /usr/share/mime
in a console ?
Do you have the "chemical-mime-data" package installed ?
If I install it and run the mentioned command or reinstall codeblocks I get the exact same messages as you.
We can send all output from "update-mime-database" to /dev/null and hide such messages, even if they do not come from our package.
I will not be able to upload any packages until at least monday or tuesday (if all wents good).