安装goole浏览器报错

1.下载一个谷歌的rpm包,配置repo源

[root@physical ~]# cat /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub

2.安装出现以下错误

[root@physical ~]# rpm -ivh google-chrome-stable_current7_x86_64.rpm
warning: google-chrome-stable_current7_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
    /usr/bin/lsb_release is needed by google-chrome-stable-70.0.3538.67-1.x86_64
    libXss.so.1()(64bit) is needed by google-chrome-stable-70.0.3538.67-1.x86_64
    libappindicator3.so.1()(64bit) is needed by google-chrome-stable-70.0.3538.67-1.x86_64
    liberation-fonts is needed by google-chrome-stable-70.0.3538.67-1.x86_64
    libnss3.so(NSS_3.22)(64bit) is needed by google-chrome-stable-70.0.3538.67-1.x86_64
    libssl3.so(NSS_3.28)(64bit) is needed by google-chrome-stable-70.0.3538.67-1.x86_64

3.安装依赖包,最好都安装

[root@physical ~]# repoquery --nvr --whatprovides  libappindicator3.so.1
Repository google-chrome is listed more than once in the configuration
libappindicator-gtk3-12.10.0-13.el7
[root@physical ~]#

 

yum install *lsb* -y

yum install libXss*  -y

yum install pax*

yum install -y libX11-devel --nogpg

yum install -y cmake gcc gcc-c++ gtk+-devel gimp-devel gimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devel libpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-devel jasper-devel jasper-utils swig python libtool nasm

#yum install -y gtk2 gtk2-devel gtk2-devel-docs

#yum install -y libgtk*

#yum -y install nss            #这些可以不安装

yum -y install liberation-fonts

4.重新安装

[root@physical ~]# rpm -ivh google-chrome-stable_current7_x86_64.rpm

5.启动

/usr/bin/google-chrome-stable --no-sandbox

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值