在 14.04 中执行 Visual Studio Code 时出错

在 14.04 中执行 Visual Studio Code 时出错

我使用 Ubuntu Server 14.04 64bit,使用 Putty 和 xming 进行 ssh 连接。目前,这些是我在运行 VSCode 时收到的错误消息。我尝试过多种方式卸载并重新安装 VSCode,但不起作用,并出现相同的错误消息。

leo@ansible:~/tools/web/visual-studio-code$ ./Code
[22021:0822/155353:ERROR:browser_main_loop.cc(173)] Running without the SUID 
sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more 
information on developing with the sandbox on.
[22021:0822/155356:INFO:audio_manager_pulse.cc(258)] Failed to connect to the context.  
Error: Connection refused
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
ome/leo/tools/web/visual-studio-code/Code: ../../src/xcb_io.c:274:
poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
leo@ansible:~/tools/web/visual-studio-code$[22039:0822/155357:ERROR:gl_surface_glx.cc(347)] GLX 1.3 or later is required.
[22039:0822/155357:ERROR:gl_surface_x11.cc(56)] GLSurfaceGLX::InitializeOneOff failed.
[22039:0822/155357:ERROR:sandbox_linux.cc(340)] InitializeSandbox() called with multiple 
threads in process gpu-process
[22039:0822/155357:WARNING:ipc_message_attachment_set.cc(37)]  MessageAttachmentSet destroyed 
with unconsumed descriptors: 0/1

我可以从无头服务器运行 Visual Studio Code 吗?并收到一个可以使用的 GUI?

答案1

它需要 X 服务器才能运行。您无法在无头模式下运行它。我猜您想在 GUI 上编辑某些内容。您可以通过 FTP/Samba/SCP 执行此操作,在您的 PC 上编辑并将其传输回服务器。

相关内容