Raspberry Pi 2 with ubuntu mate and kodi

Hi, welcome! Hardware acceleration / OpenGL isn't enabled by default, so programs that require this (like Kodi) won't run yet.

I don't really know how to enable it myself, but I'm watching this:

Another possible issue is that you appear to be running as root (sudo). Please run it as an ordinary user.

An older thread also matches this error message, but it's not ready yet: