FreePBX | Register | Issues | Wiki | Portal | Support

Errors Updating System


(Aj) #1

I am getting these errors updating system updates… thoughts? Thank you

Error: Package: glibc-common-2.17-222.el7.x86_64 (@sng-base)
Requires: glibc = 2.17-222.el7
Removing: glibc-2.17-222.el7.x86_64 (@sng-base)
glibc = 2.17-222.el7
Updated By: glibc-2.17-260.el7_6.4.x86_64 (sng-updates)
glibc = 2.17-260.el7_6.4
Available: glibc-2.17-260.el7.i686 (sng-base)
glibc = 2.17-260.el7
Available: glibc-2.17-260.el7_6.3.i686 (sng-updates)
glibc = 2.17-260.el7_6.3
You could try using --skip-broken to work around the problem

** Found 7 pre-existing rpmdb problem(s), ‘yum check’ output follows:
32:bind-license-9.9.4-73.el7_6.noarch is a duplicate with 32:bind-license-9.9.4-61.el7_5.1.noarch
glibc-common-2.17-260.el7_6.4.x86_64 is a duplicate with glibc-common-2.17-222.el7.x86_64
glibc-common-2.17-260.el7_6.4.x86_64 has missing requires of glibc = (‘0’, ‘2.17’, ‘260.el7_6.4’)
1:grub2-common-2.02-0.76.el7.centos.1.noarch is a duplicate with 1:grub2-common-2.02-0.65.el7.centos.2.noarch


(Matteo Bignotti) #2

I feel you may have duplicated rpms on your system.

could you show me the output of this command

rpm -qa --last | egrep ‘glibc|bind|grub2’ | sort

thanks :slight_smile:


(Aj) #3

cannot run RPM, not a valid command

Can run yum should I install RPM?


(Aj) #4

nm, copy/paste issue

image


(Matteo Bignotti) #5

eheh good, without rpm you would not be able to install these :slight_smile:, you should read the whole thing before executing the commands :slight_smile:
anyway…

yes there’s a bit of a mess :slight_smile:, you might have installed packages manually with rpm --force, so we should understand if you have more doubles first.

rpm -qa --qf “%{NAME}\n” | sort | uniq -c | sort -r

this will return a list like

  3 kernel-modules
  3 kernel-core
  3 kernel
  2 perl-File-HomeDir
  2 gpg-pubkey
  1 zvbi
  1 zoneminder-httpd
  1 zoneminder-common
  1 zoneminder

it is fine to have multiple copies of kernel packages as you might want to boot in an earlier kernel, gpg keys as well, but other packages not so much, like my perl-File-Homedir that I tried installing to make this example.

so if you have other packages with more than 1 installed, let me know, otherwise proceed…

ADDITIONALLY if you want to be SUPER careful you should also

rpm -q --whatrequires bind-license-9.9.4-61.el7_5.1.noarch
rpm -q --whatrequires glibc-common-2.17-260.el7_6.4.x86_64
rpm -q --whatrequires grub2-common-2.02-0.65.el7.centos.2.noarch

if these don’t have any packages that requires them by version you will see…

no package requires [the names of the package you asked]

so if everything is ok, bind-license, glibc-common and grub2-common are the only ones, you could:

rpm -e --nodeps bind-license-9.9.4-61.el7_5.1.noarch glibc-common-2.17-260.el7_6.4.x86_64 grub2-common-2.02-0.65.el7.centos.2.noarch

the --nodeps is extremely important or you’ll wipe half installation :smiley: basically it’s telling rpm to JUST uninstall these 3 packages and not their dependencies.
I chose to remove those versions because we should preserve the version for which there’s a matching sibling (like you have glibc-common 222 and 260, but glibc is at 222, so 260 should go, UNLESS you purpusely installed that version because of some particular reason)

at this point you should be able to update.

remember to always do installations with yum as it does package dependency resolution, and does not allow forcing packages in (by design). rpm is what’s behind yum.

hope this was helpful :slight_smile: !


(system) closed #6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.