[Linux] [Ubuntu] Error opening terminal: xterm-256color

$ usec
Error opening terminal: xterm-256color.

1. If the user directory

$ cd ~

2. Add Bash_Profile file

$ vim .bash_profile

3. Add the following two lines to the Bash_profile, save and exit.

export TERMINFO=/usr/share/terminfo
export TERM=xterm-basic

4. Update to make it effective

$ source .bash_profile

Read More: