LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Issue: Yum upgrade (https://www.linuxquestions.org/questions/centos-111/issue-yum-upgrade-4175589120/)

adam.monro 09-09-2016 04:53 PM

Issue: Yum upgrade
 
Hello,

I'm trying to update the system and I'm having trouble with yum upgrade.
here is the output from yum upgrade:

Code:

Loaded plugins: fastestmirror, priorities, replace
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
 * ius: mirror.rackspace.com
drivesrvr                                                                                    | 2.2 kB    00:00
Resolving Dependencies
--> Running transaction check
---> Package coreutils.x86_64 0:8.4-37.el6_7.3 will be updated
--> Processing Dependency: coreutils = 8.4-37.el6_7.3 for package: coreutils-libs-8.4-37.el6_7.3.x86_64
---> Package coreutils.x86_64 0:8.4-43.el6 will be an update
---> Package glibc.i686 0:2.12-1.166.el6_7.7 will be updated
--> Processing Dependency: glibc = 2.12-1.166.el6_7.7 for package: glibc-common-2.12-1.166.el6_7.7.x86_64
---> Package glibc.i686 0:2.12-1.192.el6 will be an update
---> Package krb5-libs.i686 0:1.10.3-42z1.el6_7 will be updated
---> Package krb5-libs.i686 0:1.10.3-57.el6 will be an update
---> Package libselinux.i686 0:2.0.94-5.8.el6 will be updated
---> Package libselinux.i686 0:2.0.94-7.el6 will be an update
---> Package openssl.i686 0:1.0.1e-42.el6_7.4 will be updated
---> Package openssl.i686 0:1.0.1e-48.el6_8.1 will be an update
---> Package python-boto.noarch 0:2.38.0-1.el6 will be obsoleted
---> Package python-rsa.noarch 0:3.1.1-5.el6 will be obsoleted
---> Package python2-boto.noarch 0:2.41.0-1.el6 will be obsoleting
---> Package python2-rsa.noarch 0:3.4.1-1.el6 will be obsoleting
--> Processing Dependency: python-pyasn1 for package: python2-rsa-3.4.1-1.el6.noarch
--> Running transaction check
---> Package coreutils.x86_64 0:8.4-37.el6_7.3 will be updated
--> Processing Dependency: coreutils = 8.4-37.el6_7.3 for package: coreutils-libs-8.4-37.el6_7.3.x86_64
---> Package glibc.i686 0:2.12-1.166.el6_7.7 will be updated
--> Processing Dependency: glibc = 2.12-1.166.el6_7.7 for package: glibc-common-2.12-1.166.el6_7.7.x86_64
---> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: coreutils-libs-8.4-37.el6_7.3.x86_64 (@updates)
          Requires: coreutils = 8.4-37.el6_7.3
          Removing: coreutils-8.4-37.el6_7.3.x86_64 (@updates)
              coreutils = 8.4-37.el6_7.3
          Updated By: coreutils-8.4-43.el6.x86_64 (base)
              coreutils = 8.4-43.el6
Error: Package: glibc-common-2.12-1.166.el6_7.7.x86_64 (@updates)
          Requires: glibc = 2.12-1.166.el6_7.7
          Removing: glibc-2.12-1.166.el6_7.7.i686 (@updates)
              glibc = 2.12-1.166.el6_7.7
          Updated By: glibc-2.12-1.192.el6.i686 (base)
              glibc = 2.12-1.192.el6
 You could try using --skip-broken to work around the problem
** Found 8 pre-existing rpmdb problem(s), 'yum check' output follows:
coreutils-libs-8.4-43.el6.x86_64 is a duplicate with coreutils-libs-8.4-37.el6_7.3.x86_64
coreutils-libs-8.4-43.el6.x86_64 has missing requires of coreutils = ('0', '8.4', '43.el6')
glibc-2.12-1.192.el6.x86_64 is a duplicate with glibc-2.12-1.166.el6_7.7.i686
glibc-common-2.12-1.192.el6.x86_64 is a duplicate with glibc-common-2.12-1.166.el6_7.7.x86_64
krb5-libs-1.10.3-57.el6.x86_64 is a duplicate with krb5-libs-1.10.3-42z1.el6_7.i686
libselinux-2.0.94-7.el6.x86_64 is a duplicate with libselinux-2.0.94-5.8.el6.i686
openssl-1.0.1e-48.el6_8.1.x86_64 is a duplicate with openssl-1.0.1e-42.el6_7.4.i686
2:shadow-utils-4.1.5.1-5.el6.x86_64 is a duplicate with 2:shadow-utils-4.1.4.2-19.el6_6.1.x86_64
You have new mail in /var/spool/mail/webmaster

I have already tried all sort of things like yum-complete-transaction, package-cleanup --dupes, package-cleanup --cleandupes and even tried removing the duplicates from the DB with "rpm -e --nodeps --justdb coreutils-libs-8.4-37.el6_7.3.x86_64"
But then I get : " error: Failed dependencies: coreutils-libs = 8.4-37.el6_7.3 is needed by (installed) coreutils-8.4-37.el6_7.3.x86_64"

Thank you

John VV 09-10-2016 03:18 PM

it looks like you installed some unknown random repo

please post the full output of this command
Code:

su -
yum repolist all

and / or
this install was NOT up to date with the updates before trying to upgrade it

and from what version to what ?
6.7 to 6.8 ?

adam.monro 09-10-2016 03:59 PM

Not sure about the second question but here is the output of repolist all:

Code:

Loaded plugins: fastestmirror, priorities, replace
Loading mirror speeds from cached hostfile
 * ius: mirror.rackspace.com
drivesrvr                                                                                    | 2.2 kB    00:00
repo id                  repo name                                                                  status
C6.0-base                CentOS-6.0 - Base                                                          disabled
C6.0-centosplus          CentOS-6.0 - CentOSPlus                                                    disabled
C6.0-contrib              CentOS-6.0 - Contrib                                                        disabled
C6.0-extras              CentOS-6.0 - Extras                                                        disabled
C6.0-updates              CentOS-6.0 - Updates                                                        disabled
C6.1-base                CentOS-6.1 - Base                                                          disabled
C6.1-centosplus          CentOS-6.1 - CentOSPlus                                                    disabled
C6.1-contrib              CentOS-6.1 - Contrib                                                        disabled
C6.1-extras              CentOS-6.1 - Extras                                                        disabled
C6.1-updates              CentOS-6.1 - Updates                                                        disabled
C6.2-base                CentOS-6.2 - Base                                                          disabled
C6.2-centosplus          CentOS-6.2 - CentOSPlus                                                    disabled
C6.2-contrib              CentOS-6.2 - Contrib                                                        disabled
C6.2-extras              CentOS-6.2 - Extras                                                        disabled
C6.2-updates              CentOS-6.2 - Updates                                                        disabled
C6.3-base                CentOS-6.3 - Base                                                          disabled
C6.3-centosplus          CentOS-6.3 - CentOSPlus                                                    disabled
C6.3-contrib              CentOS-6.3 - Contrib                                                        disabled
C6.3-extras              CentOS-6.3 - Extras                                                        disabled
C6.3-updates              CentOS-6.3 - Updates                                                        disabled
C6.4-base                CentOS-6.4 - Base                                                          disabled
C6.4-centosplus          CentOS-6.4 - CentOSPlus                                                    disabled
C6.4-contrib              CentOS-6.4 - Contrib                                                        disabled
C6.4-extras              CentOS-6.4 - Extras                                                        disabled
C6.4-updates              CentOS-6.4 - Updates                                                        disabled
C6.5-base                CentOS-6.5 - Base                                                          disabled
C6.5-centosplus          CentOS-6.5 - CentOSPlus                                                    disabled
C6.5-contrib              CentOS-6.5 - Contrib                                                        disabled
C6.5-extras              CentOS-6.5 - Extras                                                        disabled
C6.5-updates              CentOS-6.5 - Updates                                                        disabled
C6.6-base                CentOS-6.6 - Base                                                          disabled
C6.6-centosplus          CentOS-6.6 - CentOSPlus                                                    disabled
C6.6-contrib              CentOS-6.6 - Contrib                                                        disabled
C6.6-extras              CentOS-6.6 - Extras                                                        disabled
C6.6-updates              CentOS-6.6 - Updates                                                        disabled
base                      CentOS-6 - Base                                                            enabled:  6,696
base-debuginfo            CentOS-6 - Debuginfo                                                        disabled
c6-media                  CentOS-6 - Media                                                            disabled
centosplus                CentOS-6 - Plus                                                            disabled
contrib                  CentOS-6 - Contrib                                                          disabled
drivesrvr                drivesrvr                                                                  enabled:    90
epel                      Extra Packages for Enterprise Linux 6 - x86_64                              enabled: 12,212
epel-debuginfo            Extra Packages for Enterprise Linux 6 - x86_64 - Debug                      disabled
epel-source              Extra Packages for Enterprise Linux 6 - x86_64 - Source                    disabled
epel-testing              Extra Packages for Enterprise Linux 6 - Testing - x86_64                    disabled
epel-testing-debuginfo    Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug            disabled
epel-testing-source      Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source          disabled
extras                    CentOS-6 - Extras                                                          enabled:    62
fasttrack                CentOS-6 - fasttrack                                                        disabled
ius                      IUS Community Packages for Enterprise Linux 6 - x86_64                      enabled:    395
ius-archive              IUS Community Packages for Enterprise Linux 6 - x86_64 - Archive            disabled
ius-archive-debuginfo    IUS Community Packages for Enterprise Linux 6 - x86_64 - Archive Debug      disabled
ius-archive-source        IUS Community Packages for Enterprise Linux 6 - x86_64 - Archive Source    disabled
ius-debuginfo            IUS Community Packages for Enterprise Linux 6 - x86_64 - Debug              disabled
ius-dev                  IUS Community Packages for Enterprise Linux 6 - x86_64 - Dev                disabled
ius-dev-debuginfo        IUS Community Packages for Enterprise Linux 6 - x86_64 - Dev Debug Info    disabled
ius-dev-source            IUS Community Packages for Enterprise Linux 6 - x86_64 - Dev Source        disabled
ius-source                IUS Community Packages for Enterprise Linux 6 - x86_64 - Source            disabled
ius-testing              IUS Community Packages for Enterprise Linux 6 - x86_64 - Testing            disabled
ius-testing-debuginfo    IUS Community Packages for Enterprise Linux 6 - x86_64 - Testing Debug      disabled
ius-testing-source        IUS Community Packages for Enterprise Linux 6 - x86_64 - Testing Source    disabled
updates                  CentOS-6 - Updates                                                          enabled:    478


DavidMcCann 09-11-2016 11:07 AM

Looking at this
http://serverfault.com/questions/644...nstall-updates
suggests "yum clean all" may be needed.

The problem of not being able to remove a duplicate because it's a dependency could just mean removing the two items in the right order!

Have you set priorities for the repositories? ius should be safe, but it's as well to make sure.
https://wiki.centos.org/AdditionalRe...s/Repositories
https://wiki.centos.org/PackageManag...Yum/Priorities

adam.monro 09-12-2016 12:40 PM

Thanks David, yum clean all did the trick.


All times are GMT -5. The time now is 11:24 PM.