[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: libXss.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64 libappindicator3.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64 libnss3.so(NSS_3.22)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64 libssl3.so(NSS_3.28)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
缺少依赖
针对错误消息中的每个依赖包,执行命令repoquery --nvr --whatprovides <依赖文件>,安装输出包, such as:
如:
[root@pc Downloads]# repoquery --nvr --whatprovides libappindicator3.so.1 libappindicator-gtk3-12.10.0-13.el7 [root@pc Downloads]# yum install -y libappindicator-gtk3-12.10.0-13.el7
下载完后输入:
[root@localhost Downloads]# rpm -ivh google-chrome-stable_current_x86_64.rpm
warning: google-chrome-stable_current_x86_641.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
liberation-fonts is needed by google-chrome-stable-72.0.3626.96-1.x86_64
解决方式:
[root@localhost Downloads]# yum install liberation-fonts
[root@localhost Downloads]# rpm -ivh google-chrome-stable_current_x86_64.rpm
下载成功!