Phabbits / CNIT470

0 stars 0 forks source link

Cannot `yum update` #1

Closed Phabbits closed 3 years ago

Phabbits commented 3 years ago

When trying to run sudo yum update there are the following errors:

Error: Package: python-linux-procfs-0.4.9-5.el6.noarch (base)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-69.el7_5.x86_64 (@CentOS-Updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.6.6-66.el6_8.x86_64 (base)
               python(abi) = 2.6
           Available: python-2.6.6-68.el6_10.x86_64 (update)
               python(abi) = 2.6
           Available: python34-3.4.10-8.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: libquadmath-devel-4.8.5-28.el7_5.1.x86_64 (@updates)
           Requires: libquadmath = 4.8.5-28.el7_5.1
           Removing: libquadmath-4.8.5-28.el7_5.1.x86_64 (@updates)
               libquadmath = 4.8.2-16.el7_5
               libquadmath = 4.8.5-28.el7_5.1
           Updated By: libquadmath-8.2.1-1.3.1.el6_10.x86_64 (update)
               libquadmath = 8.2.1-1.3.1.el6_10
           Available: libquadmath-7.2.1-1.2.1.el6.i686 (base)
               libquadmath = 7.2.1-1.2.1.el6
Error: Package: gcc-gfortran-4.8.5-28.el7_5.1.x86_64 (@updates)
           Requires: libquadmath = 4.8.5-28.el7_5.1
           Removing: libquadmath-4.8.5-28.el7_5.1.x86_64 (@updates)
               libquadmath = 4.8.2-16.el7_5
               libquadmath = 4.8.5-28.el7_5.1
           Updated By: libquadmath-8.2.1-1.3.1.el6_10.x86_64 (update)
               libquadmath = 8.2.1-1.3.1.el6_10
           Available: libquadmath-7.2.1-1.2.1.el6.i686 (base)
               libquadmath = 7.2.1-1.2.1.el6
Error: Package: 2:vim-enhanced-7.4.629-5.el6_10.2.x86_64 (update)
           Requires: perl(:MODULE_COMPAT_5.10.1)
           Available: 4:perl-5.10.1-144.el6.x86_64 (base)
               perl(:MODULE_COMPAT_5.10.1)
           Installed: 4:perl-5.16.3-292.el7.x86_64 (@anaconda)
              ~perl(:MODULE_COMPAT_5.16.0)
              ~perl(:MODULE_COMPAT_5.16.1)
              ~perl(:MODULE_COMPAT_5.16.2)
              ~perl(:MODULE_COMPAT_5.16.3)
Error: Package: satyr-0.16-2.el6.x86_64 (base)
           Requires: librpm.so.1()(64bit)
           Available: rpm-libs-4.8.0-59.el6.x86_64 (base)
               librpm.so.1()(64bit)
           Installed: rpm-libs-4.11.3-32.el7.x86_64 (@anaconda)
              ~librpm.so.3()(64bit)
Error: Package: libgfortran-4.8.5-28.el7_5.1.x86_64 (@updates)
           Requires: libquadmath = 4.8.5-28.el7_5.1
           Removing: libquadmath-4.8.5-28.el7_5.1.x86_64 (@updates)
               libquadmath = 4.8.2-16.el7_5
               libquadmath = 4.8.5-28.el7_5.1
           Updated By: libquadmath-8.2.1-1.3.1.el6_10.x86_64 (update)
               libquadmath = 8.2.1-1.3.1.el6_10
           Available: libquadmath-7.2.1-1.2.1.el6.i686 (base)
               libquadmath = 7.2.1-1.2.1.el6
Error: Package: grep-2.20-6.el6.x86_64 (base)
           Requires: libpcre.so.0()(64bit)
           Available: pcre-7.8-7.el6.x86_64 (base)
               libpcre.so.0()(64bit)
           Installed: pcre-8.32-17.el7.x86_64 (@anaconda)
              ~libpcre.so.1()(64bit)
              ~libpcre16.so.0()(64bit)
              ~libpcre32.so.0()(64bit)
Phabbits commented 3 years ago

Used yum info python-linux-procfs to get more info. python-linux-procfs is "Python abstractions to extract information from the Linux kernel /proc files.".

Should not install multiple versions of the same package.

  1. Could use sudo yum downgrade python. Need to check first its dependencies with repoquery --requires python.
  2. To confirm error output for python-linux-procfs, could use sudo yum deplist python-linux-procfs to show all dependencies
  3. Could use sudo yum check dependencies to confirm errors.

Try 1: Output for repoquery --requires python

libc.so.6(GLIBC_2.2.5)(64bit)
libdl.so.2()(64bit)
libm.so.6()(64bit)
libpthread.so.0()(64bit)
libpython2.6.so.1.0()(64bit)
libutil.so.1()(64bit)
python-libs(x86-64) = 2.6.6-68.el6_10
rtld(GNU_HASH)

sudo yum downgrade python errored with a long list of packages dependent on the current version. Try 2: yum deplist python-linux-procfs | grep python

package: python-linux-procfs.noarch 0.4.9-5.el6
  dependency: /usr/bin/python
   provider: python.x86_64 2.6.6-68.el6_10
  dependency: python(abi) = 2.6
   provider: python.x86_64 2.6.6-68.el6_10

Try 3:

Loaded plugins: fastestmirror, langpacks
check ['dependencies']

There is a newer release available, tried updating with sudo yum update-to python-linux-procfs-0.4.9-5.el6 got:

Error: Package: python-linux-procfs-0.4.9-5.el6.noarch (base)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-69.el7_5.x86_64 (@CentOS-Updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.6.6-66.el6_8.x86_64 (base)
               python(abi) = 2.6
           Available: python-2.6.6-68.el6_10.x86_64 (update)
               python(abi) = 2.6
           Available: python34-3.4.10-8.el7.x86_64 (epel)
               python(abi) = 3.4

Checked for other packages dependent on it with repoquery --requires --resolve python-linux-procfs output was python-0:2.6.6-68.el6_10.x86_64. This package is required by its dependency, most likely should have been removed.

Removed package successfully with sudo yum remove python-linux-procfs. Package no longer shows up in sudo yum update's list of errors.

Phabbits commented 3 years ago

Followed same procedure with: repoquery --requires --resolve libquadmath-devel, no output, sudo yum remove libquadmath-devel.

All remaining packages have a lot of other dependent on them. Example vim-enhanced: repoquery --requires --resolve vim-enhanced

glibc-0:2.12-1.212.el6_10.3.i686
bash-0:4.1.2-48.el6.x86_64
libselinux-0:2.0.94-7.el6.x86_64
perl-libs-4:5.10.1-144.el6.x86_64
gpm-libs-0:1.20.6-12.el6.x86_64
libacl-0:2.2.49-7.el6_9.1.x86_64
perl-4:5.10.1-144.el6.x86_64
ncurses-libs-0:5.7-4.20090207.el6.x86_64
glibc-0:2.12-1.212.el6_10.3.x86_64
which-0:2.19-6.el6.x86_64
vim-common-2:7.4.629-5.el6_10.2.x86_64

A new release was available. When attempting to update to it: sudo yum update-to vim-enhanced-7.4.629-5.el6_10.2 got:

Error: Package: 2:vim-enhanced-7.4.629-5.el6_10.2.x86_64 (update)
           Requires: perl(:MODULE_COMPAT_5.10.1)
           Available: 4:perl-5.10.1-144.el6.x86_64 (base)
               perl(:MODULE_COMPAT_5.10.1)
           Installed: 4:perl-5.16.3-292.el7.x86_64 (@anaconda)
              ~perl(:MODULE_COMPAT_5.16.0)
              ~perl(:MODULE_COMPAT_5.16.1)
              ~perl(:MODULE_COMPAT_5.16.2)
              ~perl(:MODULE_COMPAT_5.16.3)

Cannot downgrade perl.

Phabbits commented 3 years ago

Followed fix now listed in wiki.