ubuntu16.04下,man: nothing appropriate.问题解决

在Ubuntu 16.04系统中遇到使用man命令时显示"nothing appropriate"的问题,同时whatis也出现相同状况。通过执行`mandb`命令重建man页面索引,成功解决了无法找到手册页的错误。
摘要由CSDN通过智能技术生成

执行man -k或man -f 出现nothing appropriate,同时还发现whatis 也是如此。

root@ubuntu01:~# whatis man
man: nothing appropriate.
root@ubuntu01:~# whatis ls
ls: nothing appropriate.

执行makewhatis无效,需执行mandb建立索引,问题解决。

root@ubuntu01:~# makewhatis
makewhatis: command not found

root@ubuntu01:~# mandb
Processing manual pages under /usr/share/man...
Updating index cache for path `/usr/share/man/man8'. Wait...mandb: can't open /usr/share/man/man8/smtp.8: No such file or directory
mandb: warning: /usr/share/man/man8/lmtp.8postfix.gz: bad symlink or ROFF `.so' request
Updating index cache for path `/usr/share/man/man7'. Wait...done.
Checking for stray cats under /usr/share/man...省略
3237 manual pages were added.
0 stray cats were added.
0 old database entries were purged.

root@ubuntu01:~# whatis ls
ls (1)               - list directory contents

root@ubuntu01:~# m
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值