`sudo yum update` throws Requires ... Removing ... Obsoleted By

`sudo yum update` throws Requires ... Removing ... Obsoleted By

我在亚马逊 Linux 盒子上:

# this command returns Amazon Linux AMI release 2018.03
cat /etc/system-release

当我尝试 sudo yum update 时,我得到 this output。我无法 post SO 上的完整输出,但这里是轰炸的部分:

--> 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: libdb4 conflicts with filesystem-2.4.30-3.8.amzn1.x86_64
Error: Package: rpm-4.11.3-40.78.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: rpm-build-4.11.3-40.78.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-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: Package: libserf-1.3.7-1.7.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.78.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.78.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.78.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-2.40.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: subversion-libs-1.9.7-1.61.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: python26-2.6.9-2.92.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 (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: subversion-1.9.7-1.61.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: apr-util-1.5.4-6.18.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: python27-libs-2.7.18-2.141.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-libs-4.11.3-40.78.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)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有人知道如何修复我的 yum update 命令吗?任何指示都会非常有帮助!

啊哈,我需要:

sudo yum remove epel-release
sudo yum update