Why yum fails with error 'libcups.so.2 is needed by gtk2-2.20.1-4.el6.ppc' ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux Server v.6.2
  • Red Hat Network v.5.2.4

Issue

  • Updating system with # yum update fails with :
ERROR with rpm_check_debug vs depsolve:
libcups.so.2 is needed by gtk2-2.20.1-4.el6.ppc
** Found 23 pre-existing rpmdb problem(s), 'yum check' output follows:
foomatic-4.0.4-1.el6_1.1.ppc64 has missing requires of cups
foomatic-db-ppds-4.0-7.20091126.el6.noarch has missing requires of cups
ghostscript-8.70-11.el6_1.2.ppc64 has missing requires of libcups.so.2()(64bit)
ghostscript-8.70-11.el6_1.2.ppc64 has missing requires of libcupsimage.so.2()(64bit)
gtk2-2.18.9-6.el6.ppc has missing requires of libcups.so.2
gtk2-2.18.9-6.el6.ppc64 has missing requires of libcups.so.2()(64bit)
1:hpijs-3.10.9-3.el6.ppc64 has missing requires of cups
1:hpijs-3.10.9-3.el6.ppc64 has missing requires of cupsddk-drivers
1:hpijs-3.10.9-3.el6.ppc64 has missing requires of libcups.so.2()(64bit)
1:hpijs-3.10.9-3.el6.ppc64 has missing requires of libcupsimage.so.2()(64bit)
hplip-libs-3.10.9-3.el6.ppc64 has missing requires of libcups.so.2()(64bit)
paps-0.6.8-13.el6.2.ppc64 has missing requires of libcups.so.2()(64bit)
ptouch-driver-1.3-2.1.el6.ppc64 has missing requires of cups
ptouch-driver-1.3-2.1.el6.ppc64 has missing requires of libcups.so.2()(64bit)
ptouch-driver-1.3-2.1.el6.ppc64 has missing requires of libcupsimage.so.2()(64bit)
redhat-lsb-graphics-4.0-3.el6.ppc64 has missing requires of libcups.so.2()(64bit)
redhat-lsb-graphics-4.0-3.el6.ppc64 has missing requires of libcupsimage.so.2()(64bit)
redhat-lsb-printing-4.0-3.el6.ppc64 has missing requires of /usr/bin/lp
redhat-lsb-printing-4.0-3.el6.ppc64 has missing requires of /usr/bin/lpr
redhat-lsb-printing-4.0-3.el6.ppc64 has missing requires of libcups.so.2()(64bit)
redhat-lsb-printing-4.0-3.el6.ppc64 has missing requires of libcupsimage.so.2()(64bit)
system-config-printer-libs-1.1.16-22.el6.ppc64 has missing requires of libcups.so.2()(64bit)
system-config-printer-udev-1.1.16-22.el6.ppc64 has missing requires of libcups.so.2()(64bit)
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2014-04-04-17-34kG4Mg9.yumtx

Resolution

  • Library file libcups.so.2 is provided by package cups-libs.

  • Check if the same is available on system with the command :

#  yum list | grep cups-libs
  • Install the package with the command :
# yum install <package-name>

Root Cause

  • Package cups-libs which provides the library file libcups.so.2 was not installed.
  • Component
  • yum

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments