Ubuntu中clear命令无法找到的解决

来源:互联网 发布:电脑怎么没网络了 编辑:程序博客网 时间:2024/04/19 12:34

问题描述:

在terminal中输入clear后,提示:

The program 'clear' is currently not installed.  You can install it 
by typing:
sudo apt-get install ncurses-bin

按提示输入sudo apt-get install ncurses-bin后,系统却提示:

ncurses-bin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

我查找了/usr/bin,里面的确没有clear,而libncurses5, libncurses5-dev, 
libncursesw5都是安装了的。

解决方法:

sudo apt-get --reinstall install ncurses-bin


后记:

其实当时我想到了用reinstall,可惜在man apt-get的时候没耐心,草草看了一遍,居然没有找到--reinstall这个选项。在解决问题时,这种烦躁的心态要不得,否则即使能想到解决方式也会擦肩而过。解决方法是水木上一哥们提供的,出问题时到论坛发贴还是很靠谱的,再次感谢那位水木网友:)