I write this in console:
sudo pacman -S kate
but for any package, I get this error:
warning: database file for 'custom' does not exist
error: failed to prepare transaction (could not find database)
I have tried
sudo pacman -Syu
but I still get the same error.
/etc/pacman.conf
(presumably, you have inadvertently uncommented the custom repo which is intended only as a commented example)... – jasonwryan Apr 01 '15 at 17:59