安装 cpan 时遇到依赖冲突是什么原因?

0

【以下的问题经过翻译处理】 为了安装缺失的 perl 模块,尝试安装 cpan 是遇到如下错误

$ sudo yum  install cpan

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

根据提示添加“--skip-broken”重试,无错误但需要的 perl 包未安装,信息如下:

sudo yum install cpan --skip-broken
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

操作系统信息如下:

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/"
profile picture
专家
已提问 4 个月前20 查看次数
1 回答
0

【以下的回答经过翻译处理】 错误日志显示EPEL仓库(el7的软件包)与Amazon Linux发生冲突。

根据https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/,el7软件包可适用于Amazon Linux 2,而el6软件包可适用于Amazon Linux。因此,需要切换到EPEL 6仓库来解决此冲突。

profile picture
专家
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则