Unable to install 'yum-utils' on CentOS 7.5 due to libxml2 version mismatch

Issues related to applications and software problems
Post Reply
espressobeanies
Posts: 10
Joined: 2018/09/09 20:16:00

Unable to install 'yum-utils' on CentOS 7.5 due to libxml2 version mismatch

Post by espressobeanies » 2018/09/09 20:17:48

I'm not able to install 'yum-utils' on my CentOS 7.5 (AltArch) build due to a libxml2 version mismatch. What should I do to resolve?

Code: Select all

[root@dns yum.repos.d]# yum install yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-46.el7_5 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-46.el7_5.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-46.el7_5.noarch
--> Running transaction check
---> Package libxml2-python.armv7hl 0:2.9.1-6.el7_2.3 will be installed
--> Processing Dependency: libxml2 = 2.9.1-6.el7_2.3 for package: libxml2-python-2.9.1-6.el7_2.3.armv7hl
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
--> Running transaction check
---> Package libxml2-python.armv7hl 0:2.9.1-6.el7_2.3 will be installed
--> Processing Dependency: libxml2 = 2.9.1-6.el7_2.3 for package: libxml2-python-2.9.1-6.el7_2.3.armv7hl
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
--> Finished Dependency Resolution
Error: Package: libxml2-python-2.9.1-6.el7_2.3.armv7hl (base)
           Requires: libxml2 = 2.9.1-6.el7_2.3
           Installed: libxml2-2.9.1-6.el7.3.armv7hl (@centos-base_rbf)
               libxml2 = 2.9.1-6.el7.3
           Available: libxml2-2.9.1-6.el7_2.3.armv7hl (base)
               libxml2 = 2.9.1-6.el7_2.3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to install 'yum-utils' on CentOS 7.5 due to libxml2 version mismatch

Post by TrevorH » 2018/09/09 21:11:40

There was apparently a bug in 7.3 that had the libxml2 package built with the wrong version number. It's now been corrected in 7.5 and the 7.5 version number is correct. To get round this you will need to yum downgrade libxml2 (and any other libxml2* packages that you already have installed) so that the corrected 7.5 package replaces the wrong 7.3 one. Once you've done that then it should install the other libxml2* packages that you need without a problem.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

espressobeanies
Posts: 10
Joined: 2018/09/09 20:16:00

Re: Unable to install 'yum-utils' on CentOS 7.5 due to libxml2 version mismatch

Post by espressobeanies » 2018/09/09 22:38:37

Thanks Trevor,

Looks like that did it. I've never had to do something like this before and appreciate the explanation. Hopefully not an issue in the future.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to install 'yum-utils' on CentOS 7.5 due to libxml2 version mismatch

Post by TrevorH » 2018/09/09 22:42:48

BTW, this was an armhfp 7.3 bug only.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

espressobeanies
Posts: 10
Joined: 2018/09/09 20:16:00

Re: Unable to install 'yum-utils' on CentOS 7.5 due to libxml2 version mismatch

Post by espressobeanies » 2018/09/26 18:33:34

I see. Thanks for letting me know! It'd be nice if there was a way to track these specific ones via email or something.

Post Reply