LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum Dependencies resolution fail (glibc-common) (https://www.linuxquestions.org/questions/linux-newbie-8/yum-dependencies-resolution-fail-glibc-common-4175582316/)

Mycado 06-15-2016 05:07 AM

Yum Dependencies resolution fail (glibc-common)
 
Hello,

I'm trying to install gcc on my XenServer 7.0 (based on CentOS). But I get some problems with dependencies

When I install with yum, I get:

Code:

Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-4.el7 will be installed
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-4.el7.x86_64
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.17-105.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-105.el7 for package: glibc-devel-2.17-105.el7.x86_64
--> Processing Dependency: glibc = 2.17-105.el7 for package: glibc-devel-2.17-105.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-105.el7.x86_64
--> Running transaction check
---> Package glibc.i686 0:2.17-105.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-105.el7 for package: glibc-2.17-105.el7.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-105.el7.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-105.el7.i686
---> Package glibc-headers.x86_64 0:2.17-105.el7 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.17-105.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-105.el7 for package: glibc-2.17-105.el7.i686
---> Package nss-softokn-freebl.i686 0:3.16.2.3-13.el7_1 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.17-105.el7.i686 (centos)
          Requires: glibc-common = 2.17-105.el7
          Installed: glibc-common-2.17-106.el7_2.4.x86_64 (@install/$releasever)
              glibc-common = 2.17-106.el7_2.4
          Available: glibc-common-2.17-105.el7.x86_64 (centos)
              glibc-common = 2.17-105.el
7

Actual installed packages:
Quote:

[root@x-01 tmp]# rpm -qa | grep glibc
glibc-common-2.17-106.el7_2.4.x86_64
glibc-2.17-106.el7_2.4.x86_64
How to handle that? Should I downgrade my glibc-common?


Best regards,

Mycado 06-15-2016 07:43 AM

I finally succeed. For people who have the same issue, this is how I solved it:

1. Check duplicate:
Code:

[root@x-01 tmp]# yum list --showduplicates glibc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
glibc.x86_64                                                                      2.17-106.el7_2.4                                                                      @install/$releasever
Available Packages
glibc.i686                                                                        2.17-105.el7                                                                          centos
glibc.x86_64                                                                      2.17-105.el7                                                                          centos
glibc.x86_64                                                                      2.17-106.el7_2.4                                                                      xeniso

2. Downgrade the glibc (to *.105):
Code:

[root@x-01 tmp]# yum downgrade glibc glibc-common glibc-devel glibc-headers
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No Match for available package: glibc-devel-2.17-105.el7.i686
No Match for available package: glibc-devel-2.17-105.el7.x86_64
No Match for available package: glibc-headers-2.17-105.el7.x86_64
Resolving Dependencies
--> Running transaction check
---> Package glibc.x86_64 0:2.17-105.el7 will be a downgrade
---> Package glibc.x86_64 0:2.17-106.el7_2.4 will be erased
---> Package glibc-common.x86_64 0:2.17-105.el7 will be a downgrade
---> Package glibc-common.x86_64 0:2.17-106.el7_2.4 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================
 Package                                        Arch                                      Version                                          Repository                                Size
============================================================================================================================================================================================
Downgrading:
 glibc                                          x86_64                                    2.17-105.el7                                    centos                                    3.6 M
 glibc-common                                    x86_64                                    2.17-105.el7                                    centos                                    11 M

Transaction Summary
============================================================================================================================================================================================
Downgrade  2 Packages

Total download size: 15 M
Is this ok [y/d/N]: y
Downloading packages:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                        79 MB/s |  15 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : glibc-common-2.17-105.el7.x86_64                                                                                                                                        1/4
  Installing : glibc-2.17-105.el7.x86_64                                                                                                                                                2/4
  Cleanup    : glibc-common-2.17-106.el7_2.4.x86_64                                                                                                                                    3/4
  Cleanup    : glibc-2.17-106.el7_2.4.x86_64                                                                                                                                            4/4
  Verifying  : glibc-2.17-105.el7.x86_64                                                                                                                                                1/4
  Verifying  : glibc-common-2.17-105.el7.x86_64                                                                                                                                        2/4
  Verifying  : glibc-common-2.17-106.el7_2.4.x86_64                                                                                                                                    3/4
  Verifying  : glibc-2.17-106.el7_2.4.x86_64                                                                                                                                            4/4

Removed:
  glibc.x86_64 0:2.17-106.el7_2.4                                                          glibc-common.x86_64 0:2.17-106.el7_2.4

Installed:
  glibc.x86_64 0:2.17-105.el7                                                              glibc-common.x86_64 0:2.17-105.el7

Complete!

3. Install GCC:
Code:

[root@x-01 tmp]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-4.el7 will be installed
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-4.el7.x86_64
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.17-105.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-105.el7 for package: glibc-devel-2.17-105.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-105.el7.x86_64
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-105.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================
 Package                                          Arch                                      Version                                        Repository                                Size
============================================================================================================================================================================================
Installing:
 gcc                                              x86_64                                    4.8.5-4.el7                                    centos                                    16 M
Installing for dependencies:
 glibc-devel                                      x86_64                                    2.17-105.el7                                    centos                                    1.0 M
 glibc-headers                                    x86_64                                    2.17-105.el7                                    centos                                    661 k

Transaction Summary
============================================================================================================================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 18 M
Installed size: 40 M
Is this ok [y/d/N]: y
Downloading packages:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                        73 MB/s |  18 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : glibc-headers-2.17-105.el7.x86_64                                                                                                                                        1/3
  Installing : glibc-devel-2.17-105.el7.x86_64                                                                                                                                          2/3
  Installing : gcc-4.8.5-4.el7.x86_64                                                                                                                                                  3/3
  Verifying  : glibc-headers-2.17-105.el7.x86_64                                                                                                                                        1/3
  Verifying  : gcc-4.8.5-4.el7.x86_64                                                                                                                                                  2/3
  Verifying  : glibc-devel-2.17-105.el7.x86_64                                                                                                                                          3/3

Installed:
  gcc.x86_64 0:4.8.5-4.el7

Dependency Installed:
  glibc-devel.x86_64 0:2.17-105.el7                                                          glibc-headers.x86_64 0:2.17-105.el7

Complete!


Thanks :)

phang98 07-12-2016 09:34 PM

This method is working, I use this to resolve my issue to install glibc.i686 for launch4j-maven-plugin support.
this is what I did,
> yum -y downgrade glibc glibc-common
> yum -y install glibc.i686 ncurses-libs.i686

kiranshashiny 07-20-2016 01:54 AM

Had similar problem with openssl and openssl-libs
 
Below is some cut and paste of how I got this working for openssl and openssl-libs

# rpm -qa|grep openssl
openssl-libs-1.0.1e-51.el7_2.2.x86_64
openssl-1.0.1e-51.el7_2.2.x86_64

# yum downgrade openssl-libs openssl
Loaded plugins: fastestmirror
.....

Removed:
openssl.x86_64 1:1.0.1e-51.el7_2.2 openssl-libs.x86_64 1:1.0.1e-51.el7_2.2

Installed:
openssl.x86_64 1:1.0.1e-42.el7.9 openssl-libs.x86_64 1:1.0.1e-42.el7.9

Complete!


All times are GMT -5. The time now is 10:45 AM.