如何修复man命令无法查找

How to fix the “No manual entry for {command}” man error
Sometimes you will encounter an error like this when trying to use man:

Announcement
You can find all my latest posts on medium.
$ man vmstat
No manual entry for vmstat
To fix this, first check that you have the following rpms installed:

yum install -y man-pages yum install -y man-db
Next run the mandb command to populate/update the mandb database:

$ mandb
Then run the following command, to try to find the man .gz man file.

$ yum whatprovides /vmstat..gz
In your case you replace ‘vmstat’ with whatever command that you’re having problems with.

Now if that packages isn’t installed, then install it. in my case it was already installed, but the file itself was missing for some reason:

$ file /usr/share/man/man8/vmstat.8.gz
/usr/share/man/man8/vmstat.8.gz: cannot open (No such file or directory)
In this situation, just reinstall the rpm again:

$ yum reinstall procps

I try it:

yum remove procps

yum install procps

语言包提示问题:
LC_CTYPE to default locale: No such file or directory

sudo yum search Chinese
找到这个langpacks-zh_CN.noarch名的包,然后执行

sudo yum install langpacks-zh_CN

//报错解决方案,删除这几个配置文件
rm -rf /etc/profile.d/locale.sh
rm -rf /etc/locale.conf
rm -rf /etc/sysconfig/i18n
rm -rf /etc/environment

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容