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-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
网友评论