Xvfb 启动失败错误

我有 Ubuntu 11.04 我试图安装 Xvfb 和 CutyCapt,以便采取网页快照 我遵循了 https://github.com/jaequery/cutycapt-installer-script-on-ubuntu/blob/master/install的指示 我执行了最后一行,它给了我一个错误

错误: Xvfb 启动失败

有什么解决办法吗? 先谢谢你

84825 次浏览

Run xvfb-run -e /dev/stdout [mycommand] as @wumpus suggested.

I received the server lock message:

Fatal server error:
Could not create server lock file: /tmp/.X99-lock


xvfb-run:


error: Xvfb failed to start

Using sudo resolved the issue for me:

sudo xvfb-run -e /dev/stdout [mycommand]

I was getting this error "xvfb-run: error: Xvfb failed to start" on Ubuntu 14.04, where previously my script had run without problems on Ubuntu 12.04.

My scripts were running calling xvfb-run multiple times, but I was seeing fails due to the error "Server is already active for display 99"

It seemed that the Xvfb wasn't ending when the xvfb-run command returned.

My solution was to use "xvfb-run -a [mycommand]" so xvfb uses another display if 99 is in use.

Found the problem There is hanging process in system with name

Xvfb

I killed it and work fine. I newer found it earlier beacuse I used to try to find process with 'xvfb' name

Had the same issue, solved it by running this instead:

xvfb-run --auto-servernum --server-num=1 [your script]

--auto-servernum : Try to get a free server number, starting at 99, or the argument to --server-num

I came across this error when running a bash script on Mac OS. Opening XQuartz before running the script solved my problem.