linux 删除变为空格

遇到问题:

在下载某些依赖或者安装包后发现终端乱序,输入命令时按退格键不能回退反而向后加空格;并且某些快捷键无法使用等问题;

原因:

终端依赖的包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) ...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

aijava1

请我喝咖啡!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值