Bit of a newbie here, but couldn't find this problem anywhere on the forums. Running Ubuntu 18.04, default terminal.
Upon entering the clear command, terminal returned
terminals database is inaccessible
Only help I found online was to check the TERM environment variable which was set to xterm-256color
However, I tried sudo clear and this seems to work. Don't understand what's happening. Any fix suggestions would be appreciated.
EDIT : The issue persists with different terminal emulators and even on CLI. Still haven't found a fix.