我试着在我的CentOS框上运行一个更新程序,结果遇到了一个问题。我最后一次更新是在2018-01年,然后是昨天,2018-06-19。
# yum update
...
--> Finished Dependency Resolution
Error: Package: 1:NetworkManager-1.10.2-14.el7_5.x86_64 (updates)
Requires: glib2 >= 2.54.2
Installed: glib2-2.50.3-3.el7.x86_64 (@base)
glib2 = 2.50.3-3.el7
Error: Package: 1:NetworkManager-glib-1.10.2-14.el7_5.x86_64 (updates)
Requires: libdbus-1.so.3(LIBDBUS_1_3)(64bit)
Error: Package: python2-ipalib-4.5.4-10.el7.centos.1.noarch (updates)
Requires: python-netaddr >= 0.7.5-9
Installed: python-netaddr-0.7.5-7.el7.noarch (@anaconda)
python-netaddr = 0.7.5-7.el7
Error: Package: gtk3-3.22.26-4.el7_5.x86_64 (updates)
Requires: libwayland-client(x86-64) >= 1.9.91
Installing: libwayland-client-1.5.0-4.el7.nux.x86_64 (nux-dextop)
libwayland-client(x86-64) = 1.5.0-4.el7.nux
Error: Package: libvirt-daemon-3.9.0-14.el7_5.5.x86_64 (updates)
Requires: libdbus-1.so.3(LIBDBUS_1_3)(64bit)
Error: Package: selinux-policy-targeted-3.13.1-192.el7_5.3.noarch (updates)
Requires: policycoreutils >= 2.5-18
Installed: policycoreutils-2.5-17.1.el7.x86_64 (@base)
policycoreutils = 2.5-17.1.el7
Error: Package: xorgxrdp-0.2.6-2.el7.x86_64 (epel)
Requires: xorg-x11-server-Xorg(x86-64) = 1.19.5
Installed: xorg-x11-server-Xorg-1.19.3-11.el7.x86_64 (@base)
xorg-x11-server-Xorg(x86-64) = 1.19.3-11.el7
Error: Package: libvirt-daemon-driver-nwfilter-3.9.0-14.el7_5.5.x86_64 (updates)
Requires: libdbus-1.so.3(LIBDBUS_1_3)(64bit)
Error: Package: gtk3-3.22.26-4.el7_5.x86_64 (updates)
Requires: libwayland-cursor(x86-64) >= 1.9.91
Installing: libwayland-cursor-1.5.0-4.el7.nux.x86_64 (nux-dextop)
libwayland-cursor(x86-64) = 1.5.0-4.el7.nux
Error: Package: libvirt-daemon-driver-network-3.9.0-14.el7_5.5.x86_64 (updates)
Requires: libdbus-1.so.3(LIBDBUS_1_3)(64bit)
Error: Package: gtk3-3.22.26-4.el7_5.x86_64 (updates)
Requires: libwayland-egl.so.1()(64bit)
Error: Package: openscap-1.2.16-8.el7_5.x86_64 (updates)
Requires: libdbus-1.so.3(LIBDBUS_1_3)(64bit)
Error: Package: selinux-policy-3.13.1-192.el7_5.3.noarch (updates)
Requires: policycoreutils >= 2.5-18
Installed: policycoreutils-2.5-17.1.el7.x86_64 (@base)
policycoreutils = 2.5-17.1.el7
Error: Package: gtk3-3.22.26-4.el7_5.x86_64 (updates)
Requires: libwayland-cursor(x86-64) >= 1.9.91
Available: libwayland-cursor-1.5.0-4.el7.nux.x86_64 (nux-dextop)
libwayland-cursor(x86-64) = 1.5.0-4.el7.nux
Error: Package: libvirt-libs-3.9.0-14.el7_5.5.x86_64 (updates)
Requires: libdbus-1.so.3(LIBDBUS_1_3)(64bit)
Error: Package: gtk3-3.22.26-4.el7_5.x86_64 (updates)
Requires: libwayland-client(x86-64) >= 1.9.91
Available: libwayland-client-1.5.0-4.el7.nux.x86_64 (nux-dextop)
libwayland-client(x86-64) = 1.5.0-4.el7.nux
Error: Package: certmonger-0.78.4-3.el7_5.1.x86_64 (updates)
Requires: libdbus-1.so.3(LIBDBUS_1_3)(64bit)如果手动更新glib2,第一个错误是:
[root@datamover102 .hts]# yum install glib2.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.oit.uci.edu
* epel: mirrors.develooper.com
* extras: mirror.sfo12.us.leaseweb.net
* nux-dextop: mirror.li.nux.ro
* updates: repos.lax.quadranet.com
Package glib2-2.50.3-3.el7.x86_64 already installed and latest version
Nothing to do百胜觉得glib2是最新的版本,而同时说2.54是最起码的需求。我相信2.56是基于Google快速搜索的最新版本。
我试过yum remove glib2,但那没有用。我还尝试了package-clean --dupes,这是我阅读的一篇文章中推荐的解决方案。从那得到的结果什么也没有。
还有其他的错误。
下面是软件更新GUI的截图,这是一个更好的视图。

第一个建议的答案无效,这是输出。
[root@datamover102 .hts]# yum install glib2-2.54.2.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.oit.uci.edu
* epel: mirrors.develooper.com
* extras: mirror.sfo12.us.leaseweb.net
* nux-dextop: mirror.li.nux.ro
* updates: repos.lax.quadranet.com
No package glib2-2.54.2.x86_64 available.
Error: Nothing to do
[root@datamover102 .hts]# 我有几台CentOS 7机器,其中两台需要更新,而且自2018年1月以来一直没有更新过。第一台机器101完美无缺地更新,没有问题,而第二台机器102给出了问题。我刚刚决定做一个清单,这证明很有趣,注意不同的repos使用。
`BAD`
[root@datamover102 yum.repos.d]# yum list glib2
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.oit.uci.edu
* epel: mirrors.develooper.com
* extras: mirror.sfo12.us.leaseweb.net
* nux-dextop: mirror.li.nux.ro
* updates: repos.lax.quadranet.com
Installed Packages
glib2.x86_64 2.50.3-3.el7 @base
Available Packages
glib2.i686 2.50.3-3.el7 base
GOOD
[root@datamover101 yum.repos.d]# yum list glib2
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos-distro.cavecreek.net
* epel: mirrors.develooper.com
* extras: mirror.sfo12.us.leaseweb.net
* nux-dextop: mirror.li.nux.ro
* updates: centos.mirror.ndchost.com
Installed Packages
glib2.x86_64 2.54.2-2.el7 @base
Available Packages
glib2.i686 2.54.2-2.el7 base
[root@datamover101 yum.repos.d]# 基本上,坏机器使用base: mirrors.oit.uci.edu作为基础,而好机器使用centos-distro.cavecreek.net作为基础。
答案是有坏的机器,而不是使用mirrors.oit.uci.edu作为基础。下面是一个清单,它在两台机器上都匹配。
[root@datamover102 yum.repos.d]# ls -la
total 56
drwxr-xr-x. 2 root root 252 Jun 20 16:38 .
drwxr-xr-x. 144 root root 8192 Jun 20 15:33 ..
-rw-r--r-- 1 root root 1664 May 17 06:53 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Sep 27 2017 CentOS-CR.repo
-rw-r--r-- 1 root root 649 May 17 06:53 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 314 May 17 06:53 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 630 May 17 06:53 CentOS-Media.repo
-rw-r--r-- 1 root root 1331 May 17 06:53 CentOS-Sources.repo
-rw-r--r-- 1 root root 4768 May 17 06:53 CentOS-Vault.repo
-rw-r--r-- 1 root root 951 Oct 2 2017 epel.repo
-rw-r--r-- 1 root root 1050 Oct 2 2017 epel-testing.repo
-rw-r--r--. 1 root root 477 Jul 31 2014 nux-dextop.repo发布于 2018-06-20 15:28:48
您是否尝试过强迫它安装特定版本的glib2?
这可能不起作用,但会让你洞察到底出了什么问题。
尝试yum install glib2-2.54.2.x86_64并返回给我输出。
可能需要在安装更新版本之前尝试yum remove glib2。
https://unix.stackexchange.com/questions/450897
复制相似问题