CentOS7 安裝Chrome


使用命令下載rpm安裝包:

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

下載包名為google-chrome-stable_current_x86_64.rpm 使用root權限進行安裝

rpm -ivh google-chrome-stable_current_x86_64.rpm

安裝中報錯:

/usr/bin/lsb_release 被 google-chrome-stable-74.0.3729.169-1.x86_64 需要
libXss.so.1()(64bit) 被 google-chrome-stable-74.0.3729.169-1.x86_64 需要
libappindicator3.so.1()(64bit) 被 google-chrome-stable-74.0.3729.169-1.x86_64 需要
liberation-fonts 被 google-chrome-stable-74.0.3729.169-1.x86_64 需要

安裝依賴包:

sudo yum install liberation-fonts
sudo yum -y install libXss*
sudo yum install libappindicator*

還有一個錯誤:

/usr/bin/lsb_release 被 google-chrome-stable-74.0.3729.169-1.x86_64 需要

先查找哪個源包含這個命令

yum provides */lsb_release

image

從上面的輸出可以看到redhat-lsb-core-4.1-27.el7.centos.1.x86_64這個package包含這個命令,安裝這個包。

sudo yum install redhat-lsb-core-4.1-27.el7.centos.1.x86_64

然后使用命令安裝:

sudo rpm -ivh google-chrome-stable_current_x86_64.rpm

image

可以看到Chrome已經成功安裝:

image


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM