The following error popped up when I was accessing a Ubuntu EC2 instance from my MacOS X system:

xterm-256color’: unknown terminal type.

To fix this error I needed to install ncurses-term via

sudo apt-get install ncurses-term