运行top时,会报unknown terminal type错误

问题:

在板子上执行top时总是提示'vt102': unknown terminal type.

执行了export TERM=xterm,还是不管用

解决:

执行export,方向没有设置TERMINFO环境变量的值。只需设置TERMINFO变量为terminfo的路径即可,比如TERMINFO=/usr/share/terminfo。可以执行下面的命令,或者将该命令写到profile中

export TERMINFO=/usr/share/terminfo

原文地址:https://www.cnblogs.com/pengdonglin137/p/3507568.html