解决Ubuntu14.04安装Chrome浏览器打不开的问题

1、安装Chrome浏览器 

wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
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 https://crbug.com/638180.
google-chrome --no-sandbox

仍会报错:

root@node00:~# [0207/085735.495265:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly

 

 whereis google-chrome

google-chrome: /usr/bin/X11/google-chrome /usr/share/man/man1/google-chrome.1.gz

 vim /usr/bin/X11/google-chrome

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

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

以后就可以在ubuntu系统中正常打开Chrome了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值