Ubuntu安装Chrome浏览器及解决启动no-sandbox问题

1.安装浏览器

# apt-get install gonme

# apt-get update 

# apt-get install google-chrome-stable

2.启动Chrome浏览器

# google-chrome

这时会报错:
[31560:31560:0207/085601.085852:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See 

# google-chrome --no-sandbox    //之后重启系统
3.设置快捷方式 
# whereis google-chrome
 google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz
# vim /usr/bin/google-chrome

将 exec -a "$0" "$HERE/chrome" "$@"  改为

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox

以后只要 #google-chrome 就可以打开Chrome了

虽然也会弹出一堆错误,但是终于成功打开了!!

扫描二维码关注公众号,回复: 6214245 查看本文章

猜你喜欢

转载自www.cnblogs.com/jing-tian/p/10853850.html
今日推荐