AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Yum install not working

    Posted Tue September 14, 2021 02:42 PM

    Hi Team,

    We are trying hard to install yum. If we try to install Python2 or 3 by rpm it asks for many dependencies. We tried to install them also but few conflicts it asks to remove but we cannot remove all as those are used by many other dependencies.

    How to get these done. RPM is really painful in terms of dependencies and Yum is not at all getting install.

    Getting below error while running yum command, it has been installed but not working.

    root:/opt/freeware/etc/yum # yum install python

    There was a problem importing one of the Python modules

    required to run yum. The error leading to this problem was:

    0509-022 Cannot load module /opt/freeware/lib/libpopt.so.

    0509-150 Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

    0509-152 Member libiconv.so.2 is not found in archive

    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.

    0509-150 Dependent module /opt/freeware/lib/libpopt.so could not be loaded.

    Please install a package which provides this module, or

    verify that the module is installed correctly.

    It's possible that the above module doesn't match the

    current version of Python, which is:

    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to

    the yum faq at:

    http://yum.baseurl.org/wiki/Faq

    Thanks,

    Priya



    #AIX
    #Support
    #SupportMigration


  • 2.  RE: Yum install not working

    Posted Wed November 10, 2021 08:58 AM

    Hy priya,

    Try to run /usr/sbin/updtvpkg first



    #AIX
    #Support
    #SupportMigration


  • 3.  RE: Yum install not working

    Posted Tue December 07, 2021 01:28 PM

    Hi,

    Sorry for late reply!.

    Here is the output:


    root:/opt/freeware/etc/yum # /usr/sbin/updtvpkg

    Please wait...sh: /usr/bin/rpm: cannot execute

    /usr/sbin/updtvpkg[134]: /usr/bin/rpm: cannot execute

    /usr/sbin/updtvpkg[135]: /usr/bin/rpm: cannot execute


    /usr/sbin/updtvpkg[144]: /usr/bin/rpm: cannot execute

    /usr/sbin/updtvpkg[145]: /usr/bin/rpm: cannot execute

    /usr/sbin/updtvpkg[146]: /usr/bin/rpm: cannot execute

    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.x7L7aa

    + umask 022

    + cd /opt/freeware/src/packages/BUILD

    + exit 0

    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.x7L7ab

    + umask 022

    + cd /opt/freeware/src/packages/BUILD

    + exit 0

    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xAL7ac

    + umask 022

    + cd /opt/freeware/src/packages/BUILD

    + exit 0

    Processing files: AIX-rpm-7.1.5.33-1.ppc

    Wrote: /opt/freeware/src/packages/SRPMS/AIX-rpm-7.1.5.33-1.src.rpm

    Wrote: /opt/freeware/src/packages/RPMS/ppc/AIX-rpm-7.1.5.33-1.aix7.1.ppc.rpm

    Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.xEL7ad

    + umask 022

    + cd /opt/freeware/src/packages/BUILD

    + exit 0


    /usr/sbin/updtvpkg[159]: /usr/bin/rpm: cannot execute


    Thanks,

    Priya



    #AIX
    #Support
    #SupportMigration


  • 4.  RE: Yum install not working

    Posted Wed January 19, 2022 01:50 AM

    Hi

    To resolve dependency issues you can use yum, now dnf to install from the IBM repo.

    You can follow

    Ref: https://www.ibm.com/support/pages/aix-old-open-source-rpm-packages-clean-then-use-yum

    to clean up old rpms and start fresh.

    Please review and implement on test first.

    If my answer helps you, please consider "liking" it or selecting it as Best Answer.

    Regards Chris



    #AIX
    #Support
    #SupportMigration