ubuntu上安装Chrome浏览器

# 安装

1.安装浏览器

# apt-get install gonme
# apt-get update 
# apt-get install google-chrome-stable 
1
2
3

2.启动Chrome浏览器

# google-chrome
1

这时会报错: [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    //之后重启系统
1

3.设置快捷方式

# whereis google-chrome
 google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz
# vim /usr/bin/google-chrome 
1
2
3

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

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

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

# 参考链接

  • https://www.cnblogs.com/jing-tian/p/10853850.html
  • https://www.cnblogs.com/hbsygfz/p/8409517.html
上次更新: 2022/04/15, 05:41:32
×