[SOLVED] Yum dependency resolution problem

General support questions
Post Reply
zoof
Posts: 7
Joined: 2016/01/15 17:52:51

[SOLVED] Yum dependency resolution problem

Post by zoof » 2020/11/24 14:32:04

Hi,

I have been running a Centos 7 box for years now and have recently run into a problem with conflicting python2 versions. Particularly,

Code: Select all

$ sudo yum update
Loaded plugins: copr, fastestmirror, product-id, replace, search-disabled-repos
Loading mirror speeds from cached hostfile
 * base: centos.mirror.constant.com
 * centos-sclo-rh: mirrors.advancedhosters.com
 * centos-sclo-sclo: mirrors.rit.edu
 * epel: mirror.math.princeton.edu
 * extras: mirror.trouble-free.net
 * updates: centos.mirror.constant.com
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager-glib.x86_64 1:1.18.8-1.el7 will be updated
---> Package NetworkManager-glib.x86_64 1:1.18.8-2.el7_9 will be an update
---> Package python-devel.x86_64 0:2.7.5-89.el7 will be updated
---> Package python-devel.x86_64 0:2.7.5-90.el7 will be an update
--> Processing Conflict: python-devel-2.7.5-90.el7.x86_64 conflicts python < 2.7.5-90.el7
--> Finished Dependency Resolution
Error: python-devel conflicts with python-2.7.5-89.el7.x86_64
 You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64 has installed conflicts NetworkManager-glib < ('1', '1.18.8', '2.el7_9'): 1:NetworkManager-glib-1.18.8-1.el7.x86_64
kernel-tools-3.10.0-1160.6.1.el7.x86_64 is a duplicate with kernel-tools-3.10.0-1160.2.2.el7.x86_64
kernel-tools-libs-3.10.0-1160.2.2.el7.x86_64 is a duplicate with kernel-tools-libs-3.10.0-1127.19.1.el7.x86_64
kernel-tools-libs-3.10.0-1160.6.1.el7.x86_64 is a duplicate with kernel-tools-libs-3.10.0-1160.2.2.el7.x86_64
python-2.7.5-90.el7.x86_64 is a duplicate with python-2.7.5-89.el7.x86_64
python-libs-2.7.5-90.el7.x86_64 is a duplicate with python-libs-2.7.5-89.el7.x86_64
I've tried package-cleanup, manually installing the newest versions and nothing seems to be working. Any suggestions for how to fix this?

Many thanks!
Last edited by zoof on 2020/11/24 18:06:55, edited 1 time in total.

poky
Posts: 107
Joined: 2013/03/27 12:18:03

Re: Yum dependency resolution problem

Post by poky » 2020/11/24 17:38:37

I use a package yum-priorities to solve dependencies.
Example:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=1

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=2


[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metal ... =$basearch
metalink=https://mirrors.fedoraproject.org/metal ... =$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
priority=30

zoof
Posts: 7
Joined: 2016/01/15 17:52:51

Re: [SOLVED] Yum dependency resolution problem

Post by zoof » 2020/11/24 18:07:39

Thank you! That fixed the problem!

poky
Posts: 107
Joined: 2013/03/27 12:18:03

Re: [SOLVED] Yum dependency resolution problem

Post by poky » 2020/11/25 17:50:26

It was my pleasure to do that.

Post Reply

Return to “CentOS 7 - General Support”