yum install sshpass dependency issue

Blake asked:

I am running centos 6.10 and I am trying to install sshpass.

It is telling me that I am missing a dependency, but when I try to install the dependency, it appears to already be present. Does anyone know how to fix an issue like this? Thanks in advance!

[[email protected] bin]# yum install sshpass
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.umflint.edu
 * epel: mirror.steadfastnet.com
 * extras: mirrors.umflint.edu
 * updates: mirror.steadfastnet.com
base/primary_db                                            | 4.7 MB     00:04
epel/primary_db                                            | 6.6 MB     00:00
extras/primary_db                                          |  27 kB     00:00
updates/primary_db                                         | 3.0 MB     00:01
Resolving Dependencies
--> Running transaction check
---> Package sshpass.x86_64 0:1.06-1.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: sshpass-1.06-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: sshpass-1.06-1.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

[[email protected] bin]# yum install libc.so.6
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.umflint.edu
 * epel: mirror.steadfastnet.com
 * extras: mirrors.umflint.edu
 * updates: mirror.steadfastnet.com
Package glibc-2.12-1.212.el6.i686 already installed and latest version
Nothing to do
[[email protected] bin]#

Edit It appears I had centos 7 epel in my repos.d file. I removed that, and added the correct epel.

Now when I run yum repolist, I see EPEL 6, which I believe is the version I need. For some reason it appears that yum it still trying to install the el7 version of sshpass, though.

[[email protected] tmp]# yum install sshpass
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.umflint.edu
 * epel: mirror.steadfastnet.com
 * extras: mirrors.umflint.edu
 * updates: mirrors.umflint.edu
Resolving Dependencies
--> Running transaction check
---> Package sshpass.x86_64 0:1.06-1.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: sshpass-1.06-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: sshpass-1.06-1.el7.x86_64 (epel)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[[email protected] tmp]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.umflint.edu
 * epel: mirror.steadfastnet.com
 * extras: mirrors.umflint.edu
 * updates: mirrors.umflint.edu
repo id           repo name                                                 status
base              CentOS-6 - Base                                            6,713
epel              Extra Packages for Enterprise Linux 6 - x86_64            12,882
extras            CentOS-6 - Extras                                             35
updates           CentOS-6 - Updates                                           311
repolist: 19,941
[[email protected] tmp]#

My answer:


Did you clear your yum cache? yum clean all


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.