Po přihlášení na Ubuntu přes Putty/SSH, se můžeme při spouštění některých programů (využívajících termcap/curses) setkat s chybovým hlášením „Unknown terminal: putty-256color„.
1 2 3 4 5 6 |
root@svoci1:/root# mc Unknown terminal: putty-256color Check the TERM environment variable. Also make sure that the terminal is defined in the terminfo database. Alternatively, set the TERMCAP environment variable to the desired termcap entry. |
Jednoduchým, rychlým, ale pouze dočasným řešením je nastavení proměnné TERM na hodnoty např. xterm, vt100 nebo screen.
Trvalým vyřešením je instalace balíčku ncurses-term.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
root@svoci1:/root# apt install ncurses-term Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: ncurses-term 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 267 kB of archives. After this operation, 4351 kB of additional disk space will be used. Get:1 http://eu-frankfurt-1-ad-3.clouds.ports.ubuntu.com/ubuntu-ports jammy/main arm64 ncurses-term all 6.3-2 [267 kB] Fetched 267 kB in 0s (2602 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package ncurses-term. (Reading database ... 84063 files and directories currently installed.) Preparing to unpack .../ncurses-term_6.3-2_all.deb ... Unpacking ncurses-term (6.3-2) ... Setting up ncurses-term (6.3-2) ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.) debconf: falling back to frontend: Readline Scanning processes... Scanning linux images... |