tput: unknown terminal "xterm-256color" Error

OS: PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" VERSION_CODENAME=stretch ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

When I execute the install.sh and slib.sh during the install they generate in the terminal these errors: tput: unknown terminal "xterm-256color" (see attached image)

Status: 
Active

Comments

Ilia's picture
Submitted by Ilia on Thu, 04/02/2020 - 17:39

Hi,

Try running:

export TERM=xterm


In the end, you could just ignore those and continue with the install.

ChrisMcMullan's picture
Submitted by ChrisMcMullan on Thu, 04/02/2020 - 20:42 Pro Licensee

Tried that, plus added this module: apt-get install ncurses-term. But will run it with the errors

Ilia's picture
Submitted by Ilia on Fri, 04/03/2020 - 03:41

How do you login to your Debian 9, using SSH.

Ilia's picture
Submitted by Ilia on Fri, 04/03/2020 - 05:23

Tried that, plus added this module: apt-get install ncurses-term. But will run it with the errors

Have you logged out/logged in after installing mentioned package, just in case?

Besides, what is the output of:

echo $SHELL

and

cat /etc/screenrc

If you login using SSH, what client do you use to connect?

Hi. I'm having the same problem on one instance on google crated using bitnami

Even before installin, I get this:

tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color" 2020-05-19 01:38:27 URL:https://software.virtualmin.com/lib/slib.sh [22146/22146] -> "slib.sh" [1] tput: unknown terminal "xterm-256color" ./install.sh: 34: [: Illegal number: tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color" tput: unknown terminal "xterm-256color"

echo $SHELL shows this: /bin/bash

cat /etc/screenrc show this

------------------------------------------------------------------------------ SCREEN SETTINGS ------------------------------------------------------------------------------

deflogin on vbell on vbell_msg " Wuff ---- Wuff!! " defscrollback 1024

------------------------------------------------------------------------------ SCREEN KEYBINDINGS ------------------------------------------------------------------------------ Remove some stupid / dangerous key bindings

bind ^k bind ^\ bind \ quit bind K kill bind I login on bind O login off bind } history n-urlview"

------------------------------------------------------------------------------ TERMINAL SETTINGS ------------------------------------------------------------------------------

termcapinfo vt100 dl=5\E[M hardstatus off termcapinfo xterm|rxvt|kterm|Eterm hs:ts=\E]0;:fs=\007:ds=\E]0;\007 hardstatus string "%h%? users: %u%?" termcapinfo xterm|linux|rxvt|Eterm OP termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' defnonblock 5

Ilia's picture
Submitted by Ilia on Tue, 05/19/2020 - 17:11

Does it help if you run /bin/sh install.sh instead?