Error: libselinux conflicts with systemd-208-11.el7.x86_64 解决方法(卸载旧的冲突版本)

yum install openssl-devel.x86_64没有成功,提示如下错误:

 

Error: libselinux conflicts with systemd-208-11.el7.x86_64
 You could try using --skip-broken to work around the problem
** Found 7 pre-existing rpmdb problem(s), 'yum check' output follows:
cryptsetup-libs-2.0.3-6.el7.x86_64 is a duplicate with cryptsetup-libs-1.6.3-2.el7.x86_64
7:device-mapper-event-1.02.164-7.el7_8.2.x86_64 has installed conflicts lvm2-libs < ('7', '2.02.111', None): 7:lvm2-libs-2.02.105-14.el7.x86_64
dracut-033-568.el7.x86_64 is a duplicate with dracut-033-161.el7.x86_64
systemd-219-73.el7_8.8.x86_64 has installed conflicts dracut < ('0', '033', '243'): dracut-033-161.el7.x86_64
systemd-219-73.el7_8.8.x86_64 has installed conflicts initscripts < ('0', '9.49.28', '1'): initscripts-9.49.17-1.el7.x86_64
systemd-219-73.el7_8.8.x86_64 is a duplicate with systemd-208-11.el7.x86_64
systemd-libs-219-73.el7_8.8.x86_64 is a duplicate with systemd-libs-208-11.el7.x86_64

 

解决方法:

[root@localhost Common]# yum list installed | grep systemd
systemd.x86_64                         208-11.el7                      @anaconda
systemd.x86_64                         219-73.el7_8.8                  installed
systemd-devel.x86_64                   219-73.el7_8.8                  @updates 
systemd-libs.x86_64                    208-11.el7                      @anaconda
systemd-libs.x86_64                    219-73.el7_8.8                  installed
systemd-python.x86_64                  208-11.el7                      @anaconda
systemd-sysv.x86_64                    208-11.el7                      @anaconda

删除208的。

[root@localhost Common]# rpm -e --nodeps systemd.x86_64
error: "systemd.x86_64" specifies multiple packages:
  systemd-208-11.el7.x86_64
  systemd-219-73.el7_8.8.x86_64


[root@localhost Common]# rpm -e --nodeps systemd-208-11.el7.x86_64

 

[root@localhost Common]# rpm -e systemd-sysv.x86_64
[root@localhost Common]# rpm -e systemd-python.x86_64
error: Failed dependencies:
        systemd-python is needed by (installed) abrt-addon-python-2.1.11-12.el7.centos.x86_64
        systemd-python >= 206-1 is needed by (installed) setroubleshoot-server-3.2.17-2.el7.x86_64

使用--nodeps参数
[root@localhost Common]# rpm -e  --nodeps systemd-python.x86_64

 

 

====================================================================

以下为另一种类似的报错处理

====================================================================

 

现象:安装libudev-devel库失败

[root@localhost ~]# yum install libudev-devel -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.ustc.edu.cn
 * extras: mirrors.ustc.edu.cn
 * updates: mirrors.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package systemd-devel.x86_64 0:219-78.el7_9.2 will be installed
--> Processing Dependency: systemd-libs = 219-78.el7_9.2 for package: systemd-devel-219-78.el7_9.2.x86_64
--> Processing Dependency: systemd = 219-78.el7_9.2 for package: systemd-devel-219-78.el7_9.2.x86_64
--> Running transaction check
---> Package systemd.x86_64 0:219-73.el7_8.9 will be updated
--> Processing Dependency: systemd = 219-73.el7_8.9 for package: systemd-sysv-219-73.el7_8.9.x86_64
---> Package systemd.x86_64 0:219-78.el7_9.2 will be an update
---> Package systemd-libs.x86_64 0:219-73.el7_8.9 will be updated
---> Package systemd-libs.x86_64 0:219-78.el7_9.2 will be an update
--> Running transaction check
---> Package systemd-sysv.x86_64 0:219-73.el7_8.9 will be updated
---> Package systemd-sysv.x86_64 0:219-78.el7_9.2 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================
 Package                         Arch                     Version                           Repository                 Size
============================================================================================================================
Installing:
 systemd-devel                   x86_64                   219-78.el7_9.2                    updates                   215 k
Updating for dependencies:
 systemd                         x86_64                   219-78.el7_9.2                    updates                   5.1 M
 systemd-libs                    x86_64                   219-78.el7_9.2                    updates                   418 k
 systemd-sysv                    x86_64                   219-78.el7_9.2                    updates                    96 k

Transaction Summary
============================================================================================================================
Install  1 Package
Upgrade             ( 3 Dependent packages)

Total size: 5.8 M
Downloading packages:
Running transaction check
ERROR with transaction check vs depsolve:
systemd-libs = 219-30.el7_3.8 is needed by (installed) libgudev1-219-30.el7_3.8.x86_64
systemd-libs = 219-30.el7_3.8 is needed by (installed) systemd-python-219-30.el7_3.8.x86_64
systemd = 219-30.el7_3.8 is needed by (installed) systemd-python-219-30.el7_3.8.x86_64
** Found 42 pre-existing rpmdb problem(s), 'yum check' output follows:
avahi-0.6.31-17.el7.x86_64 has missing requires of avahi-libs = ('0', '0.6.31', '17.el7')
avahi-glib-0.6.31-17.el7.x86_64 has missing requires of avahi-libs = ('0', '0.6.31', '17.el7')
avahi-gobject-0.6.31-17.el7.x86_64 has missing requires of avahi-libs = ('0', '0.6.31', '17.el7')
avahi-ui-gtk3-0.6.31-17.el7.x86_64 has missing requires of avahi-libs = ('0', '0.6.31', '17.el7')
colord-1.2.7-2.el7.x86_64 has missing requires of colord-libs(x86-64) = ('0', '1.2.7', '2.el7')
1:control-center-3.14.5-19.el7.x86_64 has missing requires of gsettings-desktop-schemas(x86-64) >= ('0', '3.13.91', None)
cryptsetup-1.7.2-1.el7.x86_64 has missing requires of cryptsetup-libs(x86-64) = ('0', '1.7.2', '1.el7')
cryptsetup-python-1.7.2-1.el7.x86_64 has missing requires of cryptsetup-libs = ('0', '1.7.2', '1.el7')
1:cups-1.6.3-26.el7.x86_64 has missing requires of cups-libs(x86-64) = ('1', '1.6.3', '26.el7')
1:cups-client-1.6.3-26.el7.x86_64 has missing requires of cups-libs(x86-64) = ('1', '1.6.3', '26.el7')
1:dbus-x11-1.6.12-17.el7.x86_64 has missing requires of dbus = ('1', '1.6.12', '17.el7')
eog-3.14.3-1.el7.x86_64 has missing requires of gsettings-desktop-schemas
freetype-devel-2.8-12.el7_6.1.x86_64 has missing requires of freetype = ('0', '2.8', '12.el7_6.1')
gcc-4.8.5-11.el7.x86_64 has missing requires of libgomp = ('0', '4.8.5', '11.el7')
2:gedit-3.14.3-18.el7.x86_64 has missing requires of gsettings-desktop-schemas
gettext-devel-0.18.2.1-4.el7.x86_64 has missing requires of gettext = ('0', '0.18.2.1', '4.el7')
gettext-devel-0.18.2.1-4.el7.x86_64 has missing requires of gettext-libs = ('0', '0.18.2.1', '4.el7')
glib-networking-2.56.1-1.el7.x86_64 has missing requires of gsettings-desktop-schemas
gnome-desktop3-3.14.2-2.el7.x86_64 has missing requires of gsettings-desktop-schemas >= ('0', '3.5.91', None)
gnome-session-3.14.0-5.el7.x86_64 has missing requires of gsettings-desktop-schemas >= ('0', '0.1.7', None)
gnome-settings-daemon-3.14.4-12.el7.x86_64 has missing requires of gsettings-desktop-schemas(x86-64) >= ('0', '3.9.91', None)
gnome-shell-3.14.4-53.el7.x86_64 has missing requires of gsettings-desktop-schemas(x86-64) >= ('0', '3.11.4', None)
gnome-software-3.14.7-2.el7.x86_64 has missing requires of gsettings-desktop-schemas(x86-64) >= ('0', '3.11.5', None)
gnome-terminal-3.14.3-13.el7.x86_64 has missing requires of gsettings-desktop-schemas
gnutls-dane-3.3.24-1.el7.x86_64 has missing requires of gnutls(x86-64) = ('0', '3.3.24', '1.el7')
gnutls-utils-3.3.24-1.el7.x86_64 has missing requires of gnutls(x86-64) = ('0', '3.3.24', '1.el7')
gtk-update-icon-cache-3.22.30-5.el7.x86_64 has installed conflicts gtk2 < ('0', '2.24.29', None): gtk2-2.24.28-8.el7.x86_64
gtk3-immodule-xim-3.14.13-20.el7.x86_64 has missing requires of gtk3(x86-64) = ('0', '3.14.13', '20.el7')
harfbuzz-icu-0.9.36-1.el7.x86_64 has missing requires of harfbuzz(x86-64) = ('0', '0.9.36', '1.el7')
initscripts-9.49.46-1.el7.x86_64 has installed conflicts redhat-release < ('0', '7.5', '0.11'): centos-release-7-3.1611.el7.centos.x86_64
ipa-client-4.4.0-14.el7.centos.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.7.x86_64
ipa-client-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.7.noarch
ipa-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.7.noarch
libblkid-devel-2.23.2-63.el7.x86_64 has missing requires of libblkid = ('0', '2.23.2', '63.el7')
libcurl-devel-7.29.0-57.el7.x86_64 has missing requires of libcurl = ('0', '7.29.0', '57.el7')
libgudev1-219-30.el7_3.8.x86_64 has missing requires of systemd-libs = ('0', '219', '30.el7_3.8')
libproxy-mozjs-0.4.11-10.el7.x86_64 has missing requires of libproxy = ('0', '0.4.11', '10.el7')
metacity-2.34.13-7.el7.x86_64 has missing requires of gsettings-desktop-schemas
nautilus-3.14.3-12.el7.x86_64 has missing requires of gsettings-desktop-schemas(x86-64) >= ('0', '3.8.0', None)
systemd-python-219-30.el7_3.8.x86_64 has missing requires of systemd = ('0', '219', '30.el7_3.8')
systemd-python-219-30.el7_3.8.x86_64 has missing requires of systemd-libs = ('0', '219', '30.el7_3.8')
1:totem-3.14.3-6.el7.x86_64 has missing requires of gsettings-desktop-schemas
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2020-12-10.14-35.aZoNb5.yumtx

 

 

处理:

[root@localhost ~]#  yum list installed | grep systemd
systemd.x86_64                         219-73.el7_8.9                  installed
systemd-libs.x86_64                    219-73.el7_8.9                  installed
systemd-python.x86_64                  219-30.el7_3.8                  @anaconda
systemd-sysv.x86_64                    219-73.el7_8.9                  installed

通过上面结果一看, 第三行与众不同,必然要删除的。

我强行卸载rpm -e systemd-python.x86_64 --nodeps 后,继续安装libudev-devel,还是一样的错误提示。

继续卸载

rpm -e systemd-libs.x86_64 --nodeps

rpm -e systemd-sysv.x86_64 --nodeps

然后再安装libudev-devel, 成功。成功后查询 yum list installed | grep systemd,  发现systemd.x86_64 也变为新版本了。

[root@localhost ~]#  yum list installed | grep systemd
systemd.x86_64                         219-78.el7_9.2                  @updates 
systemd-devel.x86_64                   219-78.el7_9.2                  @updates 
systemd-libs.x86_64                    219-78.el7_9.2                  @updates 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值