运行yum update
有以下输出:
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
* epel: mirror.imt-systems.com
* ius: mirrors.ircam.fr
* remi: mirror.23media.de
* remi-safe: mirror.23media.de
* rpmforge: miroir.univ-paris13.fr
Resolving Dependencies
--> Running transaction check
---> Package gdb.x86_64 0:7.6.1-100.el7 will be updated
---> Package gdb.x86_64 0:8.0-17.1.scylladb.1.el7.centos will be an update
--> Processing Dependency: gdb-headless(x86-64) = 8.0-17.1.scylladb.1.el7.centos for package: gdb-8.0-17.1.scylladb.1.el7.centos.x86_64
--> Running transaction check
---> Package gdb-headless.x86_64 0:8.0-17.1.scylladb.1.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Updating:
gdb x86_64 8.0-17.1.scylladb.1.el7.centos mcepl-vim8 277 k
Installing for dependencies:
gdb-headless x86_64 8.0-17.1.scylladb.1.el7.centos mcepl-vim8 3.0 M
Transaction Summary
=============================================================================================================================================================================================================================================
Install ( 1 Dependent package)
Upgrade 1 Package
Total size: 3.3 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction check error:
file /usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.py from install of gdb-headless-8.0-17.1.scylladb.1.el7.centos.x86_64 conflicts with file from package libstdc++-4.8.5-16.el7_4.1.i686
file /usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyc from install of gdb-headless-8.0-17.1.scylladb.1.el7.centos.x86_64 conflicts with file from package libstdc++-4.8.5-16.el7_4.1.i686
file /usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyo from install of gdb-headless-8.0-17.1.scylladb.1.el7.centos.x86_64 conflicts with file from package libstdc++-4.8.5-16.el7_4.1.i686
Error Summary
-------------
我真的不知道该怎么做,我真的不想破坏任何东西。
答案1
如果您不是特别需要此版本libstdc++ 库,您可能需要删除导致问题的包:
yum remove -y libstdc++-4.8.5-16.el7_4.1.i686
然后再次运行包安装:
yum install gdb -y
通常,这种冲突是由于第三方存储库而发生的。以下是 serverfault.com 上用于禁用/删除它的链接:如何删除 yum 存储库