Quote Originally Posted by The Japanese Geek
Code:
root@TJGCOMPY:~# xhost + ; DISPLAY=:0 sudo kate
...
Your shell prompt indicates you were already root while issuing the suggested command, which should have been typed from a regular, non-privileged shell.

There seems to be a specific problem with kate, though. Kwrite, xedit or mcedit all work.