After upgrading to OSX Lion, I started getting this error on certain (Debian/Ubuntu) servers. The fix is simply to install the “ncurses-term” package which provides the file /usr/share/terminfo/x/xterm-256color.
Works like a charm! Thank you.
Running “sudo apt-get install ncurses-term” on my ubuntu machine solved my problem.
Thanks for sharing–helped me as well! Thanks “O” for adding a few details as well.
Works on CentOS too, much thanks.
Thanks tons, worked perfectly!
Running “sudo apt-get install ncurses-term” on my ubuntu machine solved my problem too. Thanks!
Thank you. That was getting quite annoying.
Thanks a lot
Been bugging me a while now…
Great Info! Is there a workaround that I can do from my Mac’s terminal client? I log into 100+ servers where I don’t have root access and installing anything requires lots of change control.
Nevermind, I found it.
In preferences I changed “declare terminal as” to xterm-color instead of the 256 option.
JV: good tip!
Worked like charm!!! Thanks…
Thanks, worked for me to
you beauty! worked like a charm from my mac connecting to an unraid box
Worked fine for me, thanks for sharing!
Like a charm, thank you.
Works in ubuntu 8.04. Thanks.
A workaround is to start a xterm in OSX and connect to the linux server from it. At least it works for me.
Ran into this on an unsupported Linux server (no way to install new packages).
But I don’t care about color, so the simple fix was:
ln -s xterm-mono xterm-256color
Won’t work for everyone, but will work for others who don’t need/want color.
Worked like a charm!
Thanks. I was able to fix it for my use case (OS X Lion connecting to sdf.org) by changing under Terminal Preferences > Advanced > Emulation: Declare terminal as.
Your email address will not be published. Required fields are marked *
Notify me of follow-up comments by email.
Notify me of new posts by email.