`
jubincn
  • 浏览: 238366 次
  • 性别: Icon_minigender_1
  • 来自: 宁波
文章分类
社区版块
存档分类
最新评论

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都是安装了的。

解决方法:

sudo apt-get --reinstall install ncurses-bin


后记:

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

分享到:
评论

相关推荐

    ubuntu部落(适合初学者,可以作为初学者的手册)

    - **社区支持**:拥有庞大的全球社区支持,用户可以轻松找到解决方案。 - **易于使用**:界面友好,对于新手非常友好。 - **安全性高**:由于其开源特性以及活跃的社区维护,Ubuntu的安全性很高。 - **软件丰富**:...

    Index of the Bash Command Lin for Linux

    4. **apt-get / aptitude**:在Debian和Ubuntu系统中,用于搜索和安装软件包,是软件包管理的重要工具。 5. **aspell**:拼写检查器,有助于检查文本文件中的拼写错误。 6. **awk**:强大的文本处理工具,可进行模式...

    Linux(1).docx

    Linux社区的强大支持也是其一大优势,无论遇到什么问题,都能找到解决方案或得到其他用户的帮助。 总的来说,Linux以其开源、稳定、安全、可定制等特性,成为企业和个人用户的理想选择,尤其是在服务器领域。无论是...

    Qt Creator 的安装和hello world 程序+其他程序的编写--不是一般的好

    9.我们可以看见工程中的所有文件都出现在列表中了。我们可以直接按下下面的 绿色的run 按钮或者按下Ctrl+R 快捷键运行程序。 10.程序运行会出现空白的对话框,如下图。 11.我们双击文件列表的dialog.ui 文件,便出现...

    新版Android开发教程.rar

    • Linux (tested on Linux Ubuntu Dapper Drake) Supported Supported Supported Supported Development Development Development Development Environments Environments Environments Environments Eclipse IDE o...

    uboott移植实验手册及技术文档

    在文件中找到 195-201 代码,并在 201行后面添加如下代码: 195 copy_loop: 196 ldmia r0!, {r3-r10} /* copy from source address [r0] */ 197 stmiar1!, {r3-r10} /* copy to target address [r1] */ 198 cmp ...

Global site tag (gtag.js) - Google Analytics