man手册不能正常打开 man: command exited with status 159
故障描述:
安装了ubuntu18后,使用man不能正常查看手册
错误信息

man: command exited with status 159: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=64n -rLT=64n -Tutf8)
原因:
经过各种网上查找,发现问题原因:
- man 2.8.3 版本与 linux 的 SECCOMP 机制冲突
参考 :linux man手册返回错误
解决方案:
禁用 man 的 SECCOMP
export MAN_DISABLE_SECCOMP=1
永久解决:修改用户目录下的~/.bashrc文件进行配置
vim ~/.bashrc
在最后一行加上
export MAN_DISABLE_SECCOMP=1
:wq 保存退出
参考 Linux环境变量配置
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号