如题,不管是update还是安装一些包总是提示这个报错,中间尝试过更换源,依然无法解决
yum install -y vim lrzsz tree screen psmisc lsof tcpdump wget ntpdate gcc gcc-c++ glibc glibc-devel pcre pcre-devel openssl openssl-devel systemd-devel net- tools iotop bc zip unzip zlib-devel bash-completion nfs-utils automake libxml2 libxml2-devel libxslt libxslt-devel perl perl-ExtUtils-Embed
--> Finished Dependency Resolution
Error: Package: glibc-common-2.17-55.el7.x86_64 (@anaconda)
Requires: glibc = 2.17-55.el7
Removing: glibc-2.17-55.el7.x86_64 (@anaconda)
glibc = 2.17-55.el7
Updated By: glibc-2.17-326.el7_9.x86_64 (updates)
glibc = 2.17-326.el7_9
Removing: glibc-2.17-325.el7_9.x86_64 (installed)
glibc = 2.17-325.el7_9
Updated By: glibc-2.17-326.el7_9.x86_64 (updates)
glibc = 2.17-326.el7_9
Available: glibc-2.17-317.el7.i686 (base)
glibc = 2.17-317.el7
Available: glibc-2.17-322.el7_9.i686 (updates)
glibc = 2.17-322.el7_9
Available: glibc-2.17-323.el7_9.i686 (updates)
glibc = 2.17-323.el7_9
Available: glibc-2.17-324.el7_9.i686 (updates)
glibc = 2.17-324.el7_9
Error: Package: xz-5.1.2-8alpha.el7.x86_64 (@anaconda)
Requires: xz-libs = 5.1.2-8alpha.el7
Removing: xz-libs-5.1.2-8alpha.el7.x86_64 (@anaconda)
xz-libs = 5.1.2-8alpha.el7
Updated By: xz-libs-5.2.2-2.el7_9.x86_64 (updates)
xz-libs = 5.2.2-2.el7_9
Removing: xz-libs-5.2.2-1.el7.x86_64 (installed)
xz-libs = 5.2.2-1.el7
Updated By: xz-libs-5.2.2-2.el7_9.x86_64 (updates)
xz-libs = 5.2.2-2.el7_9
You could try using --skip-broken to work around the problem
** Found 175 pre-existing rpmdb problem(s), 'yum check' output follows:
ModemManager-glib-1.6.10-4.el7.x86_64 is a duplicate with ModemManager-glib-1.1.0-6.git20130913.el7.x86_64
1:NetworkManager-1.18.8-2.el7_9.x86_64 is a duplicate with 1:NetworkManager-0.9.9.1-13.git20140326.4dba720.el7.x86_64