Last day, after updating the repositories and installing the updated packages on my Debian Lenny, I found that I could no longer run top or use nan or vi to open a file. It threw up this nasty error:
'unknown': unknown terminal type.
After a bit of sleuthing, I came to the conclusion that my default console terminal type was defined as ‘unknown’, which, obviously, isn’t correct. To display your default terminal type, use this :
[code language=”bash”]echo $TERM[/code]
If it says something other than
linux, there is your problem.
To change it to
linux, just type in:
[code language=”bash”]export TERM=linux[/code]
To make the change permanent:
[code language=”bash”]echo ‘export TERM=linux’ >> ~/.bash_profile[/code]