1.下载了google-chrome-stable_current_x86_64.rpm,进行安装:
rpm -ivh google-chrome-stable_current_x86_64.rpm
提示错误,如图:
找了很多,有的直接强制安装,使用rpm -i --force --nodeps 强制安装。忽略依赖关系。然后再逐个安装依赖包。
有的说添加个谷歌源,直接官网安装;
有的说因为google-chrome包的公钥没有安装,还提供了解决方法:
dnf update -y --nogpgcheck,我们用选项 --nogpgcheck暂时跳过包签名验证。
2.后面终于看到有人用yum localinstall安装成功。系统会自己解决依赖问题。命令如下:
yum localinstall google-chrome-stable_current_x86_64.rpm
========================================================
[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:
lsb >= 4.0 is needed by google-chrome-stable-53.0.2785.143-1.x86_64
libnss3.so(NSS_3.19.1)(64bit) is needed by google-chrome-stable-53.0.2785.143-1.x86_64
libstdc++.so.6(GLIBCXX_3.4.18)(64bit) is needed by google-chrome-stable-53.0.2785.143-1.x86_64
libstdc++.so.6(GLIBCXX_3.4.14)(64bit) is needed by google-chrome-stable-53.0.2785.143-1.x86_64
libstdc++.so.6(GLIBCXX_3.4.15)(64bit) is needed by google-chrome-stable-53.0.2785.143-1.x86_64
[root@localhost Downloads]# yum localinstall google-chrome-stable_current_x86_64.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Local Package Process
Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-53.0.2785.143-1.x86_64
Marking google-chrome-stable_current_x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: lsb >= 4.0 for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libnss3.so(NSS_3.19.1)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
---> Package nss.x86_64 0:3.15.1-15.el6 will be updated
--> Processing Dependency: nss = 3.15.1-15.el6 for package: nss-sysinit-3.15.1-15.el6.x86_64
--> Processing Dependency: nss(x86-64) = 3.15.1-15.el6 for package: nss-tools-3.15.1-15.el6.x86_64
---> Package nss.x86_64 0:3.21.3-2.el6_8 will be an update
--> Processing Dependency: nss-util >= 3.21.0 for package: nss-3.21.3-2.el6_8.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.14.3-22 for package: nss-3.21.3-2.el6_8.x86_64
--> Processing Dependency: nspr >= 4.11.0 for package: nss-3.21.3-2.el6_8.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.21)(64bit) for package: nss-3.21.3-2.el6_8.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.17.1)(64bit) for package: nss-3.21.3-2.el6_8.x86_64
---> Package redhat-lsb.x86_64 0:4.0-7.el6.centos will be installed
--> Processing Dependency: redhat-lsb-printing(x86-64) = 4.0-7.el6.centos for package: redhat-lsb-4.0-7.el6.centos.x86_64
--> Processing Dependency: redhat-lsb-graphics(x86-64) = 4.0-7.el6.centos for package: redhat-lsb-4.0-7.el6.centos.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.0-7.el6.centos for package: redhat-lsb-4.0-7.el6.centos.x86_64
--> Processing Dependency: redhat-lsb-compat(x86-64) = 4.0-7.el6.centos for package: redhat-lsb-4.0-7.el6.centos.x86_64
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
---> Package nspr.x86_64 0:4.10.0-1.el6 will be updated
---> Package nspr.x86_64 0:4.11.0-1.el6 will be an update
---> Package nss-softokn.x86_64 0:3.14.3-9.el6 will be updated
---> Package nss-softokn.x86_64 0:3.14.3-23.3.el6_8 will be an update
--> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.14.3-23.3.el6_8 for package: nss-softokn-3.14.3-23.3.el6_8.x86_64
---> Package nss-sysinit.x86_64 0:3.15.1-15.el6 will be updated
---> Package nss-sysinit.x86_64 0:3.21.3-2.el6_8 will be an update
---> Package nss-tools.x86_64 0:3.15.1-15.el6 will be updated
---> Package nss-tools.x86_64 0:3.21.3-2.el6_8 will be an update
---> Package nss-util.x86_64 0:3.15.1-3.el6 will be updated
---> Package nss-util.x86_64 0:3.21.3-1.el6_8 will be an update
---> Package redhat-lsb-compat.x86_64 0:4.0-7.el6.centos will be installed
---> Package redhat-lsb-core.x86_64 0:4.0-7.el6.centos will be installed
--> Processing Dependency: perl-Test-Simple for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: perl-Test-Harness for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: perl-ExtUtils-MakeMaker for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: perl-CGI for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/pax for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /usr/bin/msgfmt for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
--> Processing Dependency: /bin/gettext for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
---> Package redhat-lsb-graphics.x86_64 0:4.0-7.el6.centos will be installed
--> Processing Dependency: libqt-mt.so.3()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
--> Processing Dependency: libQtXml.so.4()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
--> Processing Dependency: libQtSvg.so.4()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
--> Processing Dependency: libQtSql.so.4()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
--> Processing Dependency: libQtOpenGL.so.4()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
--> Processing Dependency: libQtNetwork.so.4()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
--> Processing Dependency: libQtGui.so.4()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
--> Processing Dependency: libQtCore.so.4()(64bit) for package: redhat-lsb-graphics-4.0-7.el6.centos.x86_64
---> Package redhat-lsb-printing.x86_64 0:4.0-7.el6.centos will be installed
--> Running transaction check
---> Package gettext.x86_64 0:0.17-18.el6 will be installed
--> Processing Dependency: cvs for package: gettext-0.17-18.el6.x86_64
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
---> Package nss-softokn-freebl.x86_64 0:3.14.3-9.el6 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.14.3-23.3.el6_8 will be an update
---> Package pax.x86_64 0:3.4-10.1.el6 will be installed
---> Package perl-CGI.x86_64 0:3.51-141.el6_7.1 will be installed
--> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: perl-CGI-3.51-141.el6_7.1.x86_64
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-141.el6_7.1 will be installed
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64
---> Package perl-Test-Harness.x86_64 0:3.17-141.el6_7.1 will be installed
---> Package perl-Test-Simple.x86_64 0:0.92-141.el6_7.1 will be installed
---> Package qt.x86_64 1:4.6.2-28.el6_5 will be installed
---> Package qt-x11.x86_64 1:4.6.2-28.el6_5 will be installed
--> Processing Dependency: qt-sqlite(x86-64) = 1:4.6.2-28.el6_5 for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
--> Processing Dependency: phonon-backend(x86-64) >= 4.3 for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
--> Processing Dependency: libmng.so.1()(64bit) for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
---> Package qt3.x86_64 0:3.3.8b-30.el6 will be installed
--> Running transaction check
---> Package cvs.x86_64 0:1.11.23-16.el6 will be installed
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
---> Package libmng.x86_64 0:1.0.10-4.1.el6 will be installed
---> Package perl.x86_64 4:5.10.1-136.el6 will be updated
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 3:perl-version-0.77-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Escapes-1.04-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Module-Pluggable-3.90-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 4:perl-libs-5.10.1-136.el6.x86_64
---> Package perl.x86_64 4:5.10.1-141.el6_7.1 will be an update
---> Package perl-devel.x86_64 4:5.10.1-141.el6_7.1 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: db4-devel for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
---> Package phonon-backend-gstreamer.x86_64 1:4.6.2-28.el6_5 will be installed
---> Package qt-sqlite.x86_64 1:4.6.2-28.el6_5 will be installed
--> Running transaction check
---> Package db4-devel.x86_64 0:4.7.25-20.el6_8.1 will be installed
--> Processing Dependency: db4-cxx = 4.7.25-20.el6_8.1 for package: db4-devel-4.7.25-20.el6_8.1.x86_64
--> Processing Dependency: db4 = 4.7.25-20.el6_8.1 for package: db4-devel-4.7.25-20.el6_8.1.x86_64
--> Processing Dependency: libdb_cxx-4.7.so()(64bit) for package: db4-devel-4.7.25-20.el6_8.1.x86_64
---> Package gdbm-devel.x86_64 0:1.8.0-39.el6 will be installed
--> Processing Dependency: gdbm = 1.8.0-39.el6 for package: gdbm-devel-1.8.0-39.el6.x86_64
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-141.el6_7.1 will be installed
---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be updated
---> Package perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1 will be an update
---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be updated
---> Package perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1 will be an update
---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be updated
---> Package perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1 will be an update
---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be updated
---> Package perl-libs.x86_64 4:5.10.1-141.el6_7.1 will be an update
---> Package perl-version.x86_64 3:0.77-136.el6 will be updated
---> Package perl-version.x86_64 3:0.77-141.el6_7.1 will be an update
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.el6_4 will be updated
--> Processing Dependency: db4 = 4.7.25-18.el6_4 for package: db4-utils-4.7.25-18.el6_4.x86_64
---> Package db4.x86_64 0:4.7.25-20.el6_8.1 will be an update
---> Package db4-cxx.x86_64 0:4.7.25-20.el6_8.1 will be installed
---> Package gdbm.x86_64 0:1.8.0-36.el6 will be updated
---> Package gdbm.x86_64 0:1.8.0-39.el6 will be an update
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Running transaction check
---> Package db4-utils.x86_64 0:4.7.25-18.el6_4 will be updated
---> Package db4-utils.x86_64 0:4.7.25-20.el6_8.1 will be an update
---> Package google-chrome-stable.x86_64 0:53.0.2785.143-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-53.0.2785.143-1.x86_64
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-53.0.2785.143-1.x86_64 (/google-chrome-stable_current_x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: google-chrome-stable-53.0.2785.143-1.x86_64 (/google-chrome-stable_current_x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.18)(64bit)
Error: Package: google-chrome-stable-53.0.2785.143-1.x86_64 (/google-chrome-stable_current_x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@localhost Downloads]# where is libstdc++.so.6
bash: where: command not found
[root@localhost Downloads]# rpm -q --provides libstdc++
libstdc++ = 4.4.4-15.el6
libstdc++.so.6()(64bit)
libstdc++.so.6(CXXABI_1.3)(64bit)
libstdc++.so.6(CXXABI_1.3.1)(64bit)
libstdc++.so.6(CXXABI_1.3.2)(64bit)
libstdc++.so.6(CXXABI_1.3.3)(64bit)
libstdc++.so.6(GLIBCXX_3.4)(64bit)
libstdc++.so.6(GLIBCXX_3.4.1)(64bit)
libstdc++.so.6(GLIBCXX_3.4.10)(64bit)
libstdc++.so.6(GLIBCXX_3.4.11)(64bit)
libstdc++.so.6(GLIBCXX_3.4.12)(64bit)
libstdc++.so.6(GLIBCXX_3.4.13)(64bit)
libstdc++.so.6(GLIBCXX_3.4.2)(64bit)
libstdc++.so.6(GLIBCXX_3.4.3)(64bit)
libstdc++.so.6(GLIBCXX_3.4.4)(64bit)
libstdc++.so.6(GLIBCXX_3.4.5)(64bit)
libstdc++.so.6(GLIBCXX_3.4.6)(64bit)
libstdc++.so.6(GLIBCXX_3.4.7)(64bit)
libstdc++.so.6(GLIBCXX_3.4.8)(64bit)
libstdc++.so.6(GLIBCXX_3.4.9)(64bit)
libstdc++ = 4.4.7-4.el6
libstdc++(x86-64) = 4.4.7-4.el6