本文参考连接:
Ubuntu中clear命令无法找到的解决 - jubincn's blog - ITeye博客
简单描述,重装命令:reinstall
案例:clear,
参考方法:
Ubuntu中clear命令无法找到的解决
问题描述:
在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都是安装了的。
解决方法:
1.通过标准输出获取要安装或修复内容的依赖:
sudo apt install clear
The program 'clear' is currently not installed. You can install it
by typing:
sudo apt-get install ncurses-bin
2.通过reinstall 重装此处依赖,
sudo apt-get --reinstall install ncurses-bin
3.如果是不小心重定向到其他库显示找不到等问题,通过搜索关键字获取依赖后重装或重定向解决,不要再对电脑做深拷贝了~