Home>
yum-utils installation failure

CentOS7 is installed in Raspberry Pi and yum-utils is going to be installed referring to the following site.

  

https://qiita.com/k-sh/items/1e4d3ef8d10cc8271963#%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8% E3% 83% 93% E3% 83% AB% E3% 83% 89% E7% 92% B0% E5% A2% 83% E3% 81% AE% E6% A7% 8B% E7% AF% 89

However, the following error occurs when trying to install yum-utils.

# yum install yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base-x86_64: ftp-srv2.kddilabs.jp
 * centosplus-x86_64: ftp-srv2.kddilabs.jp
 * epel: ftp.iij.ad.jp
 * epel-debuginfo: ftp.iij.ad.jp
 * epel-source: ftp.iij.ad.jp
 * extras-x86_64: ftp-srv2.kddilabs.jp
 * nux-dextop: mirror.li.nux.ro
 * updates-x86_64: ftp-srv2.kddilabs.jp
Resolving Dependencies
->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 (@ instCentOS/$releasever)
               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
Tried

If we guessed from the above error, we thought it would fail because there was no "libxml2-python-2.9.1-6.el7_2.3.armv7hl" package.

I tried to install libxml2 and ran like this ...

# yum install libxml2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base-x86_64: ftp.tsukuba.wide.ad.jp
 * centosplus-x86_64: ftp.tsukuba.wide.ad.jp
 * epel: ftp.iij.ad.jp
 * epel-debuginfo: ftp.iij.ad.jp
 * epel-source: ftp.iij.ad.jp
 * extras-x86_64: ftp.tsukuba.wide.ad.jp
 * nux-dextop: mirror.li.nux.ro
 * updates-x86_64: ftp.tsukuba.wide.ad.jp
Package matching libxml2-2.9.1-6.el7_2.3.armv7hl already installed. Checking for update.
Nothing to do


? ? ?
"Libxml2-python-2.9.1-6.el7_2.3.armv7hl" is already installed.
I do not know what to do.

We look forward to your reply.

Prerequisite environment

Raspberry Pi 3 Model B +
CentOS 7.4
microUSB 32G

  • Answer # 1

    Yum-utils requires libxml2-python, and there is libxml2-python-2.9.1-6.el7_2.3.armv7hl in the repository, but libxml2-2.9.1-6.el7.3 in the actual machine .armv7hl is installed.
    It seems that it cannot be installed because the version of libxml2 and libxml2-python do not match.
    The latest version of libxml2 in the base, updates repository is 2.9.1-6.el7_2.3.armv7hl.
    2.9.1-6.el7.3.armv7hl was installed from other than base and updates repository?

    (2018/08/29 00:36) Addendum

    libxml2-2.9.1-6.el7.3.armv7hl was in the 7.2 updates.
    Looking at the changelog, 2.9.1-6.el7.3.armv7hl and 2.9.1-6.el7_2.3.armv7hl appear to be the same.
    I don't know why the release numbers are different, but libxml2-python in the current (7.5) base requires libxml2 with the same version and release number, so libxml2-2.9.1-6. There is no choice but to replace el7_2.3.armv7hl.

    wget -N http://mirror.centos.org/altarch/7/os/armhfp/Packages/libxml2-2.9.1-6.el7_2.3.armv7hl.rpm
    rpm -Uvh --oldpackage --test libxml2-2.9.1-6.el7_2.3.armv7hl.rpm
      (If there is no error, omit --test)
    rpm -Uvh --oldpackage libxml2-2.9.1-6.el7_2.3.armv7hl.rpm
    yum install libxml2-python