一、手动安装

1. 下载 rpm 包
https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

2. 安装依赖包
yum install -y lsb

yum install -y libXScrnSaver

3. 安装chrome
[root@localhost Downloads]# rpm -ivh google-chrome-stable_current_x86_64.rpm
warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:(有一个依赖包还没装)
libappindicator3.so.1()(64bit) is needed by google-chrome-stable-66.0.3359.170-1.x86_64

查找依赖包由谁提供

[root@localhost Downloads]# yum provides */libappindicator3.so.1

安装依赖包

[root@localhost Downloads]# yum -y install libappindicator-gtk3-12.10.0-11.el7.x86_64

再次安装谷歌浏览器

[root@localhost Downloads]# rpm -ivh google-chrome-stable_current_x86_64.rpm warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:google-chrome-stable-66.0.3359.17################################# [100%]
Redirecting to /bin/systemctl start atd.service

4.运行

问题1
[root@localhost bin]# ./google-chrome
[24305:24305:0513/080032.208237:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

报错是说不支持以root运行黑盒子

修改配置文件
[root@localhost bin]# vim google-chrome

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

修改后再次运行就成功

问题2:

[root@localhost app]# sh /usr/bin/google-chrome
/usr/bin/google-chrome: line 45: syntax error near unexpected token `>'
/usr/bin/google-chrome: line 45: `exec > >(exec cat)'

注释以下行:

# Sanitize std{in,out,err} because they'll be shared with untrusted child
# processes (http://crbug.com/376567).
#exec < /dev/null
#exec > >(exec cat)
#exec 2> >(exec cat >&2)

二、自动安装

yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

-----------------------------------------------------分割线---------------------------------------------------

ubuntu安装过程

(1)sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/    (将下载源加入到系统的源列表))

(2) wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -    (导入谷歌软件的公钥,用于下面步骤中对下载软件进行验证,执行完后会出现OK)

(3)sudo apt-get update  (用于对当前系统的可用更新列表进行更新,这也是许多 Linux 发行版经常需要执行的操作,目的是随时获得最新的软件版本信息,执行完后会出现下面的结果)

(4)sudo apt-get install google-chrome-stable    (执行对谷歌 Chrome 浏览器(稳定版)的安装)

centos7.5&ubuntu18.10安装Google浏览器的更多相关文章

  1. 英文版Ubuntu18.10安装搜狗输入法过程(图文并茂,亲自尝试!)

    英文版Ubuntu18.10安装搜狗输入法过程 过程比较艰辛,折腾了好长的时间,不过最终还是装好了,特记录一下! 首先去搜狗输入法网址下载Linux版本:https://pinyin.sogou.co ...

  2. centos7安装google浏览器

    1. 配置yum源 在目录 /etc/yum.repos.d/ 下新建文件 google-chrome.repo cd /ect/yum.repos.d/ vim google-chrome.repo ...

  3. ubuntun 18.04 安装google浏览器

    ---恢复内容开始--- 一:下载谷歌浏览器镜像源 sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/ap ...

  4. kali安装Google浏览器之后的问题

    kali中,在安装完Google浏览器后会出现点击图标却打不开的问题,解决方式如下: 2019-04-10  09:46:00

  5. Ubuntu18.10安装网易云音乐(图文并茂!)

    听音乐,怎么少得了网易云音乐,下面我们在Ubuntu18.10上来安装下: 首先进入网易云音乐的下载页:https://music.163.com/#/download,选择下载Ubuntu版本: 我 ...

  6. Ubuntu 安装Google浏览器

    Ubuntu自带的浏览器是火狐浏览器,使用的时候多多少少有些不方便,这里安装Googel浏览器. 下载 可以到 Ubuntu chrome去下载安装包. 安装 首先到下载的根目录 cd ~/Downl ...

  7. ubuntu18.04安装chrome浏览器

    前几天把系统弄崩溃了,弄了好久也没弄好,索性直接装18.04,下面是安装chrom浏览器的步骤,网络上照着16.04安装的,应该是一样的 启动终端. 输入以下命令: sudo wget http:// ...

  8. Mac 10.12安装Google浏览器

    说明:先安装旧版本后续再升级,主要是资源难找. 下载: (链接: https://pan.baidu.com/s/1eROfQyY 密码: n6ij)

  9. Ubuntu 16.04 安装Google 浏览器

    Ubuntu安装好后,自带Firefox浏览器,有时我们需要再安装几个浏览器,那么Google Chrome,就是首选, 安装如下: 下载浏览器安装包, 下载链接:https://dl.google. ...

随机推荐

  1. [nginx]proxy_pass&rewrite知识点

    While passing request nginx replaces URI part which corresponds to location with one indicated in pr ...

  2. C#或ASP.NET绘图初探

    C#或ASP.NET的简单绘图 public void ProcessRequest (HttpContext context) { context.Response.ContentType = &q ...

  3. vue2路由之指定滑动位置scrollBehavior

    看源码的时候看到这个属性: 新手自然不知道这个是什么东西了,查了下vue  API: https://router.vuejs.org/en/advanced/scroll-behavior.html ...

  4. [LeetCode] 6. ZigZag Conversion ☆☆☆

    The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like ...

  5. 杭电多校第七场-J-Sequence

    题目描述 Let us define a sequence as belowYour job is simple, for each task, you should output Fn module ...

  6. 【Codeforces549F】Yura and Developers [单调栈][二分]

    Yura and Developers Time Limit: 20 Sec  Memory Limit: 512 MB Description Input Output Sample Input 4 ...

  7. 【BZOJ4517】【SDOI2016】排列计数 [数论]

    排列计数 Time Limit: 60 Sec  Memory Limit: 128 MB[Submit][Status][Discuss] Description 求有多少种长度为 n 的序列 A, ...

  8. 【BZOJ2882】工艺 [SAM]

    工艺 Time Limit: 10 Sec  Memory Limit: 128 MB[Submit][Status][Discuss] Description 小敏和小燕是一对好朋友. 他们正在玩一 ...

  9. 【NOIP】提高组2016 愤怒的小鸟

    [题意]Universal Online Judge [算法]状态压缩型DP [题解]看数据范围大概能猜到是状压了. 根据三点确定一条抛物线,枚举两个点之间的抛物线,再枚举有多少点在抛物线上(压缩为状 ...

  10. python学习笔记(七)之列表

    列表:是一个加强版的数组,什么东西都可以往里面放. 创建列表 创建一个普通列表: >>> member = ['operating system', 'data structure' ...