Failed to install CPAN using Yum on CentOS 7.3

when trying to install "CPAN" using the Yum command [CentOS 7.3 (64-bit)] I get below the error:

---> Package glibc.i686 0:2.17-157.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-157.el7 for package: glibc-2.17-157.el7.i686
---> Package kernel-headers.x86_64 0:3.10.0-514.el7 will be installed
---> Package nss-softokn-freebl.i686 0:3.16.2.3-14.4.el7 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.17-157.el7.i686 (cent-7_1-os)
           Requires: glibc-common = 2.17-157.el7
           Installed: glibc-common-2.17-157.el7_3.4.x86_64 (@updates_latest)
               glibc-common = 2.17-157.el7_3.4
           Available: glibc-common-2.17-157.el7.x86_64 (cent-7_1-os)
               glibc-common = 2.17-157.el7

Now on the other hand, when in run:

 yum install glibc-2.17-157.el7.i686

This shows, as I have already updated the package:

Package matching glibc-2.17-157.el7.x86_64 already installed. Checking for update

how to get around this? the same error is thrown for many of the Perl modules and glibc-2.17-157.el7.i686 is required .

Listed below are some of the modules that cause the error (although there are many other packages that throw the same error):

yum install perl-ExtUtils-Embed
yum install perl-ExtUtils-ParseXS
yum install perl-ExtUtils-Install

I am also trying to install using the source packages, but without success :(

Please guide me if I ask on the wrong platform (There are no plz votes)

+4
2

yum. :

vim /etc/yum.repos.d/CentOS-Base.repo 

:

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

:

[cent-7_1-os]
name=CentOS-7_1 - os
#baseurl=http://mhxrpmsrv001sas.dsone.3ds.com/rpms/cent/7_1/$basearch/os/latest/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=1
+1

, glibc , .

  • , ,

    yum list --showduplicates glibc
    
  • glibc *

    yum downgrade glibc glibc-common glibc-devel glibc-headers
    
  • gcc

    yum install gcc
    
+1

Source: https://habr.com/ru/post/1681424/


All Articles