CentOS 7 安装Google Chrome 您所在的位置:网站首页 Chrome安装失败-9 CentOS 7 安装Google Chrome

CentOS 7 安装Google Chrome

2023-07-15 05:00| 来源: 网络整理| 查看: 265

因为习惯了谷歌浏览器,所以安装完CentOS 7之后,我还是不习惯自带的火狐浏览器,所以自己决定安装一个谷歌浏览器

下载Chrome浏览器的rpm包

①直接下载 rmp包

②google官网下载 选择linux系统,并下载google-chrome-stable_current_x86_64.rpm

安装

在 rmp 包所在文件夹打开终端,输入:

sudo rpm -ivh google-chrome-stable_current_x86_64.rpm

注:google-chrome-stable_current_x86_64.rpm修改为上面下载的 rmp 包名称

问题与解决

这里会出现很多问题,可能每个人出现的问题都不一样,我这里给出解决的方法,大家根据自己的情况去处理

[shibainu@study 下载]$ rpm -ivh google-chrome-stable_current_x86_64.rpm 警告:google-chrome-stable_current_x86_64.rpm: 头V4 DSA/SHA1 Signature, 密钥 ID 7fac5991: NOKEY 错误:依赖检测失败: /usr/bin/lsb_release 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要 libXss.so.1()(64bit) 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要 libappindicator3.so.1()(64bit) 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要 liberation-fonts 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要

出现四个错误:

错误:依赖检测失败: /usr/bin/lsb_release 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要 libXss.so.1()(64bit) 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要 libappindicator3.so.1()(64bit) 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要 liberation-fonts 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要

缺少依赖包,我们将缺少的依赖包安装就可以了

第一个问题:/usr/bin/lsb_release 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要

sudo yum -y install redhat-lsb

如果出现端口被占用的情况,杀掉这个进程即可

sudo kill -9 pid_number

注:pid_number是需要杀死的进程 pid

第二、三个问题:

libXss.so.1()(64bit) 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要

libappindicator3.so.1()(64bit) 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要

sudo yum -y install libXss* sudo yum -y install libappindicator3*

因为直接安装sudo yum -y install libXss.so.1解决不了问题,最后还是提示缺少依赖,所以在不知道缺少哪个依赖包的情况下,我将全部相关的包都安装了,最后解决了问题,第二第三个问题都是这样解决。

第四个问题:liberation-fonts 被 google-chrome-stable-75.0.3770.90-1.x86_64 需要

sudo yum -y install liberation-fonts

将所以依赖安装完之后,再去执行sudo rpm -ivh google-chrome-stable_current_x86_64.rpm

然后就可以正常安装了

安装完成.png

还是Google chrome舒服

安装过程出现其他问题大家可以下方留言

博客原文:https://ipydev.com/article/35/



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有