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了

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

 

posted @ 2019-05-12 21:40  给时光以生命  阅读(17462)  评论(1)    收藏  举报