install package - dependency conflict

0

Hi all,
I'm trying to install cpan. I need it to install missing perl module(s).

$ sudo yum install cpan

Getting error:

Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main                                                                                                                                                                                                             | 2.1 kB  00:00:00     
amzn-updates                                                                                                                                                                                                          | 2.5 kB  00:00:00     
898 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package perl-CPAN.noarch 0:1.9800-294.43.amzn1 will be installed
--> Processing Dependency: perl(local::lib) for package: perl-CPAN-1.9800-294.43.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: perl-CPAN-1.9800-294.43.amzn1.noarch
--> Processing Dependency: perl(Data::Dumper) for package: perl-CPAN-1.9800-294.43.amzn1.noarch
--> Running transaction check
---> Package perl-Data-Dumper.x86_64 0:2.145-3.5.amzn1 will be installed
---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.5.amzn1 will be installed
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Packlist) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Installed) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Install) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
---> Package perl-local-lib.noarch 0:1.008010-3.6.amzn1 will be installed
--> Running transaction check
---> Package perl-ExtUtils-Install.noarch 0:1.58-294.43.amzn1 will be installed
--> Processing Dependency: perl-devel for package: perl-ExtUtils-Install-1.58-294.43.amzn1.noarch
---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.5.amzn1 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.6.amzn1 will be installed
--> Running transaction check
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: db4-devel for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Running transaction check
---> Package gdbm-devel.x86_64 0:1.8.0-36.6.amzn1 will be installed
---> Package libdb4-devel.x86_64 0:4.8.30-13.el7 will be installed
--> Processing Dependency: libdb4(x86-64) = 4.8.30-13.el7 for package: libdb4-devel-4.8.30-13.el7.x86_64
---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-2.5.amzn1 will be installed
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
---> Package systemtap-sdt-devel.x86_64 0:3.2-2.35.amzn1 will be installed
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
--> Processing Dependency: db4 = 4.7.25-18.11.amzn1 for package: db4-utils-4.7.25-18.11.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam_ccreds-10-4.9.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: iproute-4.4.0-3.23.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.8-12.33.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: python27-libs-2.7.16-1.130.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-python27-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: db4-utils-4.7.25-18.11.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-tools-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: apr-util-1.5.4-6.18.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: sendmail-8.14.4-9.14.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.11.3-40.76.amzn1.x86_64
---> Package libdb4.x86_64 0:4.8.30-13.el7 will be obsoleting
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam_ccreds-10-4.9.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: iproute-4.4.0-3.23.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.8-12.33.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: python27-libs-2.7.16-1.130.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-python27-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-tools-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: apr-util-1.5.4-6.18.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: sendmail-8.14.4-9.14.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.11.3-40.76.amzn1.x86_64
---> Package db4-utils.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
---> Package libdb4-utils.x86_64 0:4.8.30-13.el7 will be obsoleting
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Processing Dependency: /usr/bin/db_stat for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem < 3
--> Finished Dependency Resolution
Error: Package: iproute-4.4.0-3.23.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: httpd24-tools-2.4.41-1.88.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: /usr/bin/db_stat
           Removing: db4-utils-4.7.25-18.11.amzn1.x86_64 (installed)
               Not found
           Obsoleted By: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: pam-1.1.8-12.33.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.8.amzn1.x86_64
Error: Package: python27-libs-2.7.16-1.130.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-libs-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: httpd24-2.4.41-1.88.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-python27-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: pam_ccreds-10-4.9.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64 (amzn-updates)
           Requires: /usr/include/db.h
           Available: db4-devel-4.7.25-18.11.amzn1.x86_64 (amzn-main)
               Not found
Error: Package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: sendmail-8.14.4-9.14.amzn1.x86_64 (@amzn-main)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: apr-util-1.5.4-6.18.amzn1.x86_64 (@amzn-main)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Tried with --skip-broken key as suggested

$ sudo yum install cpan --skip-broken

No errors this time, but needed packages skipped and cpan is not installed as result:

Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main                                                                                                                                                                                                             | 2.1 kB  00:00:00     
amzn-updates                                                                                                                                                                                                          | 2.5 kB  00:00:00     
898 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package perl-CPAN.noarch 0:1.9800-294.43.amzn1 will be installed
--> Processing Dependency: perl(local::lib) for package: perl-CPAN-1.9800-294.43.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: perl-CPAN-1.9800-294.43.amzn1.noarch
--> Processing Dependency: perl(Data::Dumper) for package: perl-CPAN-1.9800-294.43.amzn1.noarch
--> Running transaction check
---> Package perl-Data-Dumper.x86_64 0:2.145-3.5.amzn1 will be installed
---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.5.amzn1 will be installed
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Packlist) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Installed) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Install) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
---> Package perl-local-lib.noarch 0:1.008010-3.6.amzn1 will be installed
--> Running transaction check
---> Package perl-ExtUtils-Install.noarch 0:1.58-294.43.amzn1 will be installed
--> Processing Dependency: perl-devel for package: perl-ExtUtils-Install-1.58-294.43.amzn1.noarch
---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.5.amzn1 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.6.amzn1 will be installed
--> Running transaction check
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: db4-devel for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Running transaction check
---> Package gdbm-devel.x86_64 0:1.8.0-36.6.amzn1 will be installed
---> Package libdb4-devel.x86_64 0:4.8.30-13.el7 will be installed
--> Processing Dependency: libdb4(x86-64) = 4.8.30-13.el7 for package: libdb4-devel-4.8.30-13.el7.x86_64
---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-2.5.amzn1 will be installed
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
---> Package systemtap-sdt-devel.x86_64 0:3.2-2.35.amzn1 will be installed
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
--> Processing Dependency: db4 = 4.7.25-18.11.amzn1 for package: db4-utils-4.7.25-18.11.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam_ccreds-10-4.9.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: iproute-4.4.0-3.23.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.8-12.33.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: python27-libs-2.7.16-1.130.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-python27-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: db4-utils-4.7.25-18.11.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-tools-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: apr-util-1.5.4-6.18.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: sendmail-8.14.4-9.14.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.11.3-40.76.amzn1.x86_64
---> Package libdb4.x86_64 0:4.8.30-13.el7 will be obsoleting
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam_ccreds-10-4.9.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: iproute-4.4.0-3.23.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.8-12.33.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: python27-libs-2.7.16-1.130.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-python27-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-tools-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: apr-util-1.5.4-6.18.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: sendmail-8.14.4-9.14.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.11.3-40.76.amzn1.x86_64
---> Package db4-utils.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
---> Package libdb4-utils.x86_64 0:4.8.30-13.el7 will be obsoleting
---> Package perl-devel.x86_64 4:5.16.3-294.43.amzn1 will be installed
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Processing Dependency: /usr/bin/db_stat for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-294.43.amzn1.x86_64
Package db4-devel is obsoleted by libdb4-devel, but obsoleting package does not provide for requirements
--> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem < 3
--> Running transaction check
---> Package perl-CPAN.noarch 0:1.9800-294.43.amzn1 will be installed
---> Package perl-Data-Dumper.x86_64 0:2.145-3.5.amzn1 will be installed
---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.5.amzn1 will be installed
--> Processing Dependency: perl(ExtUtils::Packlist) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Installed) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Install) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.5.amzn1 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.6.amzn1 will be installed
---> Package perl-local-lib.noarch 0:1.008010-3.6.amzn1 will be installed
--> Running transaction check
---> Package perl-ExtUtils-Install.noarch 0:1.58-286.38.amzn1 will be installed
--> Processing Dependency: perl-devel for package: perl-ExtUtils-Install-1.58-286.38.amzn1.noarch
--> Running transaction check
---> Package perl-devel.x86_64 4:5.16.3-286.38.amzn1 will be installed
--> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3-286.38.amzn1.x86_64
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.16.3-286.38.amzn1.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-286.38.amzn1.x86_64
--> Processing Dependency: db4-devel for package: 4:perl-devel-5.16.3-286.38.amzn1.x86_64
--> Processing Dependency: /usr/include/db.h for package: 4:perl-devel-5.16.3-286.38.amzn1.x86_64
--> Running transaction check
---> Package db4-devel.x86_64 0:4.7.25-18.11.amzn1 will be installed
--> Processing Dependency: db4-cxx = 4.7.25-18.11.amzn1 for package: db4-devel-4.7.25-18.11.amzn1.x86_64
Package db4-cxx is obsoleted by libdb4-cxx, but obsoleting package does not provide for requirements
---> Package perl-devel.x86_64 4:5.16.3-286.38.amzn1 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.16.3-286.38.amzn1.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-286.38.amzn1.x86_64
---> Package systemtap-sdt-devel.x86_64 0:3.1-2.34.amzn1 will be installed
--> Running transaction check
---> Package db4-devel.x86_64 0:4.7.25-18.11.amzn1 will be installed
---> Package perl-ExtUtils-Install.noarch 0:1.58-286.38.amzn1 will be installed
--> Processing Dependency: perl(ExtUtils::Install) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Installed) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
--> Processing Dependency: perl(ExtUtils::Packlist) for package: perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch
---> Package perl-devel.x86_64 4:5.16.3-286.38.amzn1 will be installed
---> Package systemtap-sdt-devel.x86_64 0:3.1-2.34.amzn1 will be installed

Packages skipped because of dependency problems:
    db4-devel-4.7.25-18.11.amzn1.x86_64 from amzn-main
    gdbm-devel-1.8.0-36.6.amzn1.x86_64 from amzn-main
    libdb4-4.8.30-13.el7.x86_64 from epel
    libdb4-devel-4.8.30-13.el7.x86_64 from epel
    libdb4-utils-4.8.30-13.el7.x86_64 from epel
    perl-CPAN-1.9800-294.43.amzn1.noarch from amzn-updates
    perl-Data-Dumper-2.145-3.5.amzn1.x86_64 from amzn-main
    perl-ExtUtils-Install-1.58-286.38.amzn1.noarch from amzn-main
    perl-ExtUtils-Install-1.58-294.43.amzn1.noarch from amzn-updates
    perl-ExtUtils-MakeMaker-6.68-3.5.amzn1.noarch from amzn-main
    perl-ExtUtils-Manifest-1.61-244.5.amzn1.noarch from amzn-main
    1:perl-ExtUtils-ParseXS-3.18-2.5.amzn1.noarch from amzn-main
    perl-Test-Harness-3.28-3.6.amzn1.noarch from amzn-main
    4:perl-devel-5.16.3-286.38.amzn1.x86_64 from amzn-main
    4:perl-devel-5.16.3-294.43.amzn1.x86_64 from amzn-updates
    perl-local-lib-1.008010-3.6.amzn1.noarch from amzn-main
    systemtap-sdt-devel-3.1-2.34.amzn1.x86_64 from amzn-main
    systemtap-sdt-devel-3.2-2.35.amzn1.x86_64 from amzn-updates

Tried running

$ rpm -Va --nofiles --nodigest

as suggested, but it doesn't return anything.

Tried also to update:

$ sudo yum update
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main                                                                                                                                                                                                             | 2.1 kB  00:00:00     
amzn-updates                                                                                                                                                                                                          | 2.5 kB  00:00:00     
898 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam_ccreds-10-4.9.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: iproute-4.4.0-3.23.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.8-12.33.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: python27-libs-2.7.16-1.130.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-python27-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-tools-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: apr-util-1.5.4-6.18.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: sendmail-8.14.4-9.14.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.11.3-40.76.amzn1.x86_64
---> Package db4-utils.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
---> Package libdb4.x86_64 0:4.8.30-13.el7 will be obsoleting
---> Package libdb4-utils.x86_64 0:4.8.30-13.el7 will be obsoleting
--> Processing Dependency: /usr/bin/db_stat for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem < 3
--> Finished Dependency Resolution
Error: Package: iproute-4.4.0-3.23.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: httpd24-tools-2.4.41-1.88.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: /usr/bin/db_stat
           Removing: db4-utils-4.7.25-18.11.amzn1.x86_64 (installed)
               Not found
           Obsoleted By: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: pam-1.1.8-12.33.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.8.amzn1.x86_64
Error: Package: python27-libs-2.7.16-1.130.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-libs-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: httpd24-2.4.41-1.88.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-python27-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: pam_ccreds-10-4.9.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64 (installed)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: sendmail-8.14.4-9.14.amzn1.x86_64 (@amzn-main)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64 (@amzn-updates)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
Error: Package: apr-util-1.5.4-6.18.amzn1.x86_64 (@amzn-main)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.11.amzn1.x86_64 (installed)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
              ~libdb-4.8.so()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
$ sudo yum update --skip-broken
Loaded plugins: priorities, update-motd, upgrade-helper
898 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam_ccreds-10-4.9.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-lib-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: ruby20-libs-2.0.0.648-1.32.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: iproute-4.4.0-3.23.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.8-12.33.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: python27-libs-2.7.16-1.130.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-python27-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: cyrus-sasl-2.1.23-13.16.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: httpd24-tools-2.4.41-1.88.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-build-libs-4.11.3-40.76.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: apr-util-1.5.4-6.18.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: sendmail-8.14.4-9.14.amzn1.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.11.3-40.76.amzn1.x86_64
---> Package db4-utils.x86_64 0:4.7.25-18.11.amzn1 will be obsoleted
---> Package libdb4.x86_64 0:4.8.30-13.el7 will be obsoleting
---> Package libdb4-utils.x86_64 0:4.8.30-13.el7 will be obsoleting
--> Processing Dependency: /usr/bin/db_stat for package: rpm-4.11.3-40.76.amzn1.x86_64
--> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem < 3

Packages skipped because of dependency problems:
    libdb4-4.8.30-13.el7.x86_64 from epel
    libdb4-utils-4.8.30-13.el7.x86_64 from epel

OS information:

$ less /etc/os-release

NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

Please advise.

asked 3 years ago189 views
5 Answers
0
Accepted Answer

The error log is saying the EPEL repository (with el7 packages) is causing conflicts with Amazon Linux.

According to https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/, el7 packages may work for Amazon Linux 2.

...and el6 packages may work for Amazon Linux (1).

So you'd want to switch to a EPEL 6 repository

Edited by: JimmyFitbux on Dec 16, 2019 6:00 PM

answered 3 years ago
0

Thanks JimmyFitbux, it worked for me.
I just edited /etc/yum.repos.d/epel.repo and replaced all 7 into 6.
Then ran 'yum install cpan' and it performed successfully.

As I only needed to install cpan, my question is, should I leave /etc/yum.repos.d/epel.repo as is or should I change it back to 7 ?
Please advise.

Edited by: ymarkiv on Dec 17, 2019 8:07 AM

answered 3 years ago
0

I believe Amazon Linux 1 comes with epel.repo set to EPEL 6 by default. So you should leave it at 6.

i.e. The /etc/pki/rpm-gpg directory only contains a file for RPM-GPG-KEY-EPEL-6.

answered 3 years ago
0

Thanks JimmyFitbux.

answered 3 years ago
0

I had the same issue. Sharing what worked for me for the benefit of someone else. Please note that I am no server expert.

I removed epel completely using yum remove epel-release (Thanks to: https://serverfault.com/a/939946)
Then did sudo yum update -y

Hope that helps someone.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions