vscode ubuntu18.04 root启动无反应

  • Post author:
  • Post category:其他


以root启动网上的方法统一都是 –user-data-dir

就我遇到的情况,单独添加此选项并不能解决问题,启动code无反应

dmesg查看,code段错误

[481342.527681] traps: code[84928] trap int3 ip:55fbc7563653 sp:7fffce6bd1b0 error:0 in code[55fbc4dbc000+5ee2000]

[481342.527681] traps: code[84928] trap int3 ip:55fbc7563653 sp:7fffce6bd1b0 error:0 in code[55fbc4dbc000+5ee2000]

执行code –user-data-dir=~/.vscode –verbose,提示

[0915/091505.731209:FATAL:electron_main_delegate.cc(309)] Running as root without –no-sandbox is not supported. See https://crbug.com/638180.

[0915/091505.731209:FATAL:electron_main_delegate.cc(309)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

因此最终执行命令 code –user-data-dir=~/.vscode –no-sandbox

后面遇到启动问题的小伙伴加个verbos选项看看什么错误吧



版权声明:本文为linglongqiongge原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。