遇到问题:
在下载某些依赖或者安装包后发现终端乱序,输入命令时按退格键不能回退反而向后加空格;并且某些快捷键无法使用等问题;
原因:
终端依赖的包ncurses-base被删除;安装后需要重新输入bash然后解决问题。
方法:sudo apt install ncurses-base
root@89b697873cdc:/# apt install ncurses-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ncurses-base
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.7 kB of archives.
After this operation, 344 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 ncurses-base all 6.0+20160213-1ubuntu1 [16.7 kB]
Fetched 16.7 kB in 1s (13.2 kB/s)
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 76, <> line 1.)
debconf: falling back to frontend: Readline
Selecting previously unselected package ncurses-base.
(Reading database ... 25436 files and directories currently installed.)
Preparing to unpack .../ncurses-base_6.0+20160213-1ubuntu1_all.deb ...
Unpacking ncurses-base (6.0+20160213-1ubuntu1) ...
Setting up ncurses-base (6.0+20160213-1ubuntu1) ...