skip-broken to work around the problem rpm -Va --nofiles --nodigest

清除yum缓存 yum clean all 重新安装,见结尾
[root@localhost ~]# yum install libstdc++.so.6
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.njupt.edu.cn
* updates: mirrors.cqu.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.7-23.el6 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.4.7-23.el6.i686
--> Running transaction check
---> Package libgcc.x86_64 0:4.4.7-17.el6 will be updated
---> Package libgcc.i686 0:4.4.7-23.el6 will be installed
---> Package libgcc.x86_64 0:4.4.7-23.el6 will be an update
--> Finished Dependency Resolution
Error: Protected multilib versions: libstdc++-4.4.7-23.el6.i686 != libstdc++-4.4.7-17.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

[root@localhost ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors

[root@localhost ~]# yum install libstdc++.so.6
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.njupt.edu.cn
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
base | 3.7 kB 00:00
http://mirrors.njupt.edu.cn/centos/6.10/os/x86_64/repodata/1aa8754bde2f3921d67cca4bb70d9f587fb858a24cc3d1f66d3315292a89fc20-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
base/primary_db | 4.7 MB 00:02
extras | 3.4 kB 00:00
extras/primary_db | 29 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 4.2 MB 00:02
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.7-23.el6 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.4.7-23.el6.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.4.7-23.el6.i686
--> Running transaction check
---> Package libgcc.x86_64 0:4.4.7-17.el6 will be updated
---> Package libgcc.i686 0:4.4.7-23.el6 will be installed
---> Package libgcc.x86_64 0:4.4.7-23.el6 will be an update
--> Finished Dependency Resolution
Error: Protected multilib versions: libstdc++-4.4.7-23.el6.i686 != libstdc++-4.4.7-17.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@localhost ~]#

错误一样,执行下面最后OK,只是第一步时间有点长
yum --skip-broken update
yum clean all
yum install libstdc++.so.6

posted @ 2019-06-03 14:46  ritchy  阅读(1864)  评论(0编辑  收藏  举报