分享

Server版麒麟V10安装后man命令查看帮助手册报错解决方法

朵儿爸 2021-10-10 12:41:23 发表于 已解决 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 2028
<b>问题现象</b>:<p>执行man命令,如man ps命令,查看ps命令具体使用方法时,报错“<span style="background-color: rgb(255, 255, 255); color: rgb(71, 71, 71);">No manual entry for {command}”</span></p><p>现象如图所示:</p><p><img style="max-width:100%" src="https://cdn2.cnxclm.com/187_20211010122445_1.png" alt="Image"><br></p><p><br><p><b>问题原因</b>:</p><p>安装麒麟V10 选择“带UKUI GUI的服务器”时未勾选Man手册导致,如下图所示</p><p><img style="max-width:100%" src="https://cdn2.cnxclm.com/187_20211010122633_1.jpg" alt="Image"><br></p><p><br></p><p><b>解决方法</b>:</p></p><p>网上查询相关解决方式,CentOS的解决方案是<span style="font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre; background-color: rgb(250, 250, 250);">yum install man</span><span class="token operator" style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-size: 14px; overflow-wrap: normal; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; color: rgb(166, 127, 89); word-break: break-all; white-space: pre; font-variant-numeric: normal !important; font-variant-east-asian: normal !important; font-stretch: normal !important; line-height: normal !important;">-</span><span style="font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre; background-color: rgb(250, 250, 250);">pages</span>即可,见</p><p>https://blog.csdn.net/jack_wang128801/article/details/104391427<br></p><p>但方法不适用于Kylin V10 Server版,即使是在未勾选Man手册的情况下,麒麟OS也是安装了man-pages的rpm包的,</p><p>查询结果如下:</p><p><img style="max-width:100%" src="https://cdn2.cnxclm.com/187_20211010123035_1.jpg alt="Image"><br></p><p><br></p><p>麒麟解决方法如下:</p><p>1、查询提供某具体命令提供man手册,如以ps为例</p><p>
  1. [root@pxeserver ~]# yum whatprovides */ps.*.gz
  2. Last metadata expiration check: 1:14:13 ago on Sun Oct 10 11:19:01 2021.
  3. procps-ng-help-3.3.16-11.ky10.noarch : Documents for procps-ng
  4. Repo        : ks10-adv-os
  5. Matched from:
  6. Filename    : /usr/share/man/man1/ps.1.gz
复制代码
2、查看Filename是否存在</p><p>
  1. [root@pxeserver ~]# ls -lrt /usr/share/man/man1/ps.1.gz
  2. ls: cannot access '/usr/share/man/man1/ps.1.gz': No such file or directory
复制代码
3、安装提供Filenname的rpm包,本例是<span style="font-family: Consolas, Monaco, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 17.6px; white-space: pre;">procps-ng-help-3.3.16-11.ky10.noarch</span></p><p>
  1. [root@pxeserver ~]# yum install procps-ng-help
复制代码
4、再次执行man ps,成功</p><p><img style="max-width:100%" src="https://cdn2.cnxclm.com/187_20211010123748_1.jpg" alt="Image"><br></p><span style="font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre; background-color: rgb(250, 250, 250);">
</span><p>备注:此方法只能针对缺少什么命令,安装什么包,无法一次性解决所有的man手册,尚未找到可以批次安装man手册的方法,但安装1个包可以解决批次命令,</p>

版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报

已有(0)人评论

跳转到指定楼层
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系在线客服