Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Error trying to remove package.

    Posted Wed June 03, 2020 10:30 PM
    Hi team; we are trying to remove a package from a system running 7200-04-01-1939 and we are getting the following error:

    root@nimmaster:/tmp/yum_bundle> rpm -e readline-6.1-2.ppc
    /var/tmp/rpm-tmp.GRhaea[2]: /sbin/install-info: not found.
    /var/tmp/rpm-tmp.GRhaea[3]: /sbin/install-info: not found.
    error: %preun(readline-6.1-2.ppc) scriptlet failed, exit status 127
    error: readline-6.1-2.ppc: erase failed

    What we have done so far is to remove AIX-rpm-7.2.4.0-8.ppc and run "updtvpkg". Now we have AIX-rpm-7.2.4.0-2.ppc but the error remains.
    We are also trying to reinstall rpm.rte 4.13.0.11 but we get the following error when trying to remove the package: "Deinstallability checks indicate that they should not be removed from the system.".  We've opened a case for this error. 

    Any comment would be welcome.

    Regards and thanks.
    Pablo.



    ------------------------------
    Pablo Pereira
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Error trying to remove package.

    Posted Thu June 04, 2020 02:18 AM
    Why you need to remove readline rpm ? It is a dependency for so many packages.
    And from the error message, it looks like info rpm (which provides /sbin/install-info) is not installed or messed up.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Error trying to remove package.

    Posted Thu June 04, 2020 06:22 AM
    If info rpm isn't installed then the default link would be.
    # ls -l /sbin/install-info
    lrwxrwxrwx 1 root system 29 Jun 01 02:23 /sbin/install-info -> /usr/opt/rpm/bin/install-info

    And readline has a dependency on /sbin/install-info.
    # rpm -qpR https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/readline/readline-6.1-2.aix6.1.ppc.rpm
    /sbin/install-info
    /bin/sh
    libc.a(shr.o)
    libcurses.a(shr42.o)
    libhistory.a(libhistory.so.6)
    libreadline.a(libreadline.so.6)

    I think info package is removed by force.

    We shouldn't be removing AIX-rpm as it is a virtual package to satisfy the many AIX libraries and commands which rpm packages need.
    rpm.rte can't be uninstalled from the system as it is a dependency for many of AIX components like rte.install, geninstall etc.

    ------------------------------
    SANGAMESH MALLAYYA
    ------------------------------



  • 4.  RE: Error trying to remove package.

    Posted Thu June 04, 2020 06:22 AM
    If the info rpm isn't installed then the default link would be.
    # lslpp -w /usr/opt/rpm/bin/install-info
    File Fileset Type
    ----------------------------------------------------------------------------
    /usr/opt/rpm/bin/install-info rpm.rte File

    And readline-6.1-2.aix6.1.ppc.rpm has a dependency on /sbin/install-info.
    # rpm -qpR https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/readline/readline-6.1-2.aix6.1.ppc.rpm
    /sbin/install-info
    /bin/sh
    libc.a(shr.o)
    libcurses.a(shr42.o)
    libhistory.a(libhistory.so.6)
    libreadline.a(libreadline.so.6)

    We shouldn't be removing AIX-rpm, as it is virtual package which provides required AIX libraries and tools for an rpm package.

    rpm.rte can't be uninstalled from the system as it is required for AIX components like rte.install and geninstall.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 5.  RE: Error trying to remove package.

    Posted Thu June 04, 2020 09:27 AM
    Hi, thank you for the responses.
    We were trying to cleanup this system which had a lot of packages installed because we wanted to configure it as yum repo server form scratch.
    We've recreated the link and were able to uninstall the package.  Now we will continue with the procedure to configure yum.

    Thanks again.
    Regards.
    Pablo.

    ------------------------------
    Pablo Pereira
    ------------------------------