xvfb-run: error: xauth command not found 解决方式

解决方式转于:http://tokanao.com/blog/2016/07/13/blog.html

 

错误提示

array(2) { 
    [0]=> string(27) "which: no xauth in ((null))"
    [1]=> string(40) "xvfb-run: error: xauth command not found"
}

  

解决方式

   ---解决不了你,我就忽略你。直接注释掉了。

$ vi /usr/bin/xvfb-run

  -if ! which xauth >/dev/null; then
  -    error "xauth command not found"
  -    exit 3
  -fi
  +#if ! which xauth >/dev/null; then
  +#    error "xauth command not found"
  +#    exit 3
  +#fi

显示出bash的行数及修改后的结果

 

 

posted @ 2018-05-24 18:35  MR__Wang  阅读(2267)  评论(0编辑  收藏  举报