AIX

Expand all | Collapse all

RPM problem after latest yum update

  • 1.  RPM problem after latest yum update

    Posted Thu March 22, 2018 11:47 AM

    Originally posted by: rowswell


    Yesterday on an AIX 7.2 TL2 SP2 and AIX 7.2 TL1 SP2 system (both have the problem now) I ran "yum update" to get the latest updates. 

     

    These packages were updated:

     

    ===================================================================================================================

     Package                     Arch               Version                       Repository                      Size

    ===================================================================================================================

    Updating:

     ca-certificates             ppc                2017.07.17-1                  AIX_Toolbox                    191 k

     curl                        ppc                7.58.0-1                      AIX_Toolbox                    1.3 M

     db                          ppc                6.2.32-1                      AIX_Toolbox                    5.8 M

     expect                      ppc                5.45-3                        AIX_Toolbox                    288 k

     gdbm                        ppc                1.12-1                        AIX_Toolbox                    190 k

     glib2                       ppc                2.52.2-1                      AIX_Toolbox                     29 M

     openldap                    ppc                2.4.45-1                      AIX_Toolbox                    4.3 M

     python                      ppc                2.7.13-1                      AIX_Toolbox                     20 M

     python-devel                ppc                2.7.13-1                      AIX_Toolbox                     11 k

     python-pycurl               ppc                7.43.0-1                      AIX_Toolbox                    243 k

     python-tools                ppc                2.7.13-1                      AIX_Toolbox                     12 k

     readline                    ppc                7.0-5                         AIX_Toolbox                    1.5 M

     sqlite                      ppc                3.21.0-1                      AIX_Toolbox                    3.5 M

     sudo                        ppc                1.8.20p2-4                    AIX_Toolbox                    1.3 M

     tcl                         ppc                8.6.6-2                       AIX_Toolbox                    7.8 M

     tk                          ppc                8.6.6-1                       AIX_Toolbox                    5.6 M

     yum                         noarch             3.4.3-6                       AIX_Toolbox_noarch             1.3 M

     zlib                        ppc                1.2.11-1                      AIX_Toolbox                    174 k

    Installing for dependencies:

     expat                       ppc                2.2.4-1                       AIX_Toolbox                    629 k

     fontconfig                  ppc                2.11.95-3                     AIX_Toolbox                    1.4 M

     freetype2                   ppc                2.6.3-2                       AIX_Toolbox                    1.8 M

     libXft                      ppc                2.3.2-3waixX11                AIX_Toolbox                    719 k

     libXrender                  ppc                0.9.8-1waixX11                AIX_Toolbox                    153 k

     libffi                      ppc                3.0.12-1                      AIX_Toolbox_72                  40 k

     libpng                      ppc                1.6.27-2                      AIX_Toolbox                    1.6 M

     libssh2                     ppc                1.8.0-1                       AIX_Toolbox                    741 k

     

    Now I get errors:

    # rpm -qa

    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:

            0509-150   Dependent module libdb.so could not be loaded.

            0509-022 Cannot load module libdb.so.

            0509-026 System error: A file or directory in the path name does not exist.

     

    # oslevel -s
    Could not load program /usr/opt/freeware/bin/rpm:
            Dependent module libdb.so could not be loaded.
    Could not load module libdb.so.
    System error: No such file or directory
    7200-01-02-1717

    # yum check

    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/python2.7/site-packages/rpm/_rpmmodule.so.

            0509-150   Dependent module libdb.so could not be loaded.

            0509-022 Cannot load module libdb.so.

            0509-026 System error: A file or directory in the path name does not exist.

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

            0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/rpm/_rpmmodule.so could not be loaded.

     

     

    This was the libdb files before yum update:

     

    $ ls -l /opt/freeware/lib/libdb* /opt/freeware/lib64/libdb*

    -rw-r--r--    1 root     system      5490772 Jan 29 2015  /opt/freeware/lib/libdb-4.8.a

    -rw-r--r--    1 root     system          925 Jan 29 2015  /opt/freeware/lib/libdb-4.8.la

    -rwxr-xr-x    1 root     system      2518523 Jan 29 2015  /opt/freeware/lib/libdb-4.8.so

    lrwxrwxrwx    1 root     system           11 Feb 13 19:40 /opt/freeware/lib/libdb-4.a -> libdb-4.8.a

    lrwxrwxrwx    1 root     system           12 Feb 13 19:40 /opt/freeware/lib/libdb-4.so -> libdb-4.8.so

    lrwxrwxrwx    1 root     system           11 Feb 13 19:40 /opt/freeware/lib/libdb.a -> libdb-4.8.a

    lrwxrwxrwx    1 root     system           12 Feb 13 19:40 /opt/freeware/lib/libdb.so -> libdb-4.8.so

    lrwxrwxrwx    1 root     system           11 Feb 13 19:40 /opt/freeware/lib/libdb4.a -> libdb-4.8.a

    lrwxrwxrwx    1 root     system           18 Feb 13 19:40 /opt/freeware/lib64/libdb-4.8.a -> ../lib/libdb-4.8.a

    lrwxrwxrwx    1 root     system           16 Feb 13 19:40 /opt/freeware/lib64/libdb-4.a -> ../lib/libdb-4.a

    lrwxrwxrwx    1 root     system           14 Feb 13 19:40 /opt/freeware/lib64/libdb.a -> ../lib/libdb.a

    lrwxrwxrwx    1 root     system           15 Feb 13 19:40 /opt/freeware/lib64/libdb4.a -> ../lib/libdb4.a

     

     

    This is what it is now:

    # ls -l /opt/freeware/lib/libdb* /opt/freeware/lib64/libdb*

    -rw-r--r--    1 root     system     13946858 Feb 28 05:35 /opt/freeware/lib/libdb-6.2.a

    -rw-r--r--    1 root     system          921 Feb 28 05:29 /opt/freeware/lib/libdb-6.2.la

    -rwxr-xr-x    1 root     system      3098962 Feb 28 05:29 /opt/freeware/lib/libdb-6.2.so

    lrwxrwxrwx    1 root     system           11 Mar 21 16:47 /opt/freeware/lib/libdb-6.a -> libdb-6.2.a

    lrwxrwxrwx    1 root     system           12 Mar 21 16:47 /opt/freeware/lib/libdb-6.so -> libdb-6.2.so

    lrwxrwxrwx    1 root     system           11 Mar 21 16:47 /opt/freeware/lib/libdb6.a -> libdb-6.2.a

    lrwxrwxrwx    1 root     system           18 Mar 21 16:47 /opt/freeware/lib64/libdb-6.2.a -> ../lib/libdb-6.2.a

    lrwxrwxrwx    1 root     system           16 Mar 21 16:47 /opt/freeware/lib64/libdb-6.a -> ../lib/libdb-6.a

    lrwxrwxrwx    1 root     system           15 Mar 21 16:47 /opt/freeware/lib64/libdb6.a -> ../lib/libdb6.a

     

    Any idea how to fix this?

    Thanks

    Dean



  • 2.  Re: RPM problem after latest yum update

    Posted Thu March 22, 2018 12:11 PM

    Originally posted by: sangameshm


    Please can you try by creating /opt/freeware/lib/lib.so link pointing to /opt/freeware/lib/libdb-4.8.so ?

    # ls -l /opt/freeware/lib/libdb.so
    lrwxrwxrwx 1 root system 34 Mar 21 00:13 /opt/freeware/lib/libdb.so -> /usr/opt/freeware/lib/libdb-4.8.so

     

    Thanks,

    Sangamesh



  • 3.  Re: RPM problem after latest yum update

    Posted Fri July 20, 2018 06:44 AM

    Originally posted by: sangameshm


    Use the  /usr/linux/bin/cpio command which you can get it from cpio rpm packages.

     

    Thanks,

    Sangamesh



  • 4.  Re: RPM problem after latest yum update

    Posted Wed July 25, 2018 03:34 PM

    Originally posted by: rowswell


    Hi Kris - I had another system (that I had not done "yum update" on) to copy these files:

     

    libdb-4.8.a

    libdb-4.8.la

    libdb-4.8.so

     

    Then I ran these commands:

    root@jp_aixtst4:/opt/freeware/lib:# ln -s libdb-4.8.a libdb.a

     

    root@jp_aixtst4:/opt/freeware/lib:# ln -s libdb-4.8.so libdb.so

     

    Since then I have done other yum update and it's been fine now that the repackaged db package works.

     

    This is the system now:

    root@jp_aixtst4:/:# ls -l /opt/freeware/lib/*libdb*
    -rw-r--r--    1 root     system      5490772 Mar 22 09:49 /opt/freeware/lib/libdb-4.8.a
    -rw-r--r--    1 root     system          925 Mar 22 09:49 /opt/freeware/lib/libdb-4.8.la
    -rwxr-xr-x    1 root     system      2518523 Mar 22 09:49 /opt/freeware/lib/libdb-4.8.so
    -rw-r--r--    1 root     system     13946858 Feb 28 05:35 /opt/freeware/lib/libdb-6.2.a
    -rw-r--r--    1 root     system          921 Feb 28 05:29 /opt/freeware/lib/libdb-6.2.la
    -rwxr-xr-x    1 root     system      3098962 Feb 28 05:29 /opt/freeware/lib/libdb-6.2.so
    lrwxrwxrwx    1 root     system           11 Mar 21 16:47 /opt/freeware/lib/libdb-6.a -> libdb-6.2.a
    lrwxrwxrwx    1 root     system           12 Mar 21 16:47 /opt/freeware/lib/libdb-6.so -> libdb-6.2.so
    lrwxrwxrwx    1 root     system           11 Mar 22 09:50 /opt/freeware/lib/libdb.a -> libdb-4.8.a
    lrwxrwxrwx    1 root     system           12 Mar 22 09:50 /opt/freeware/lib/libdb.so -> libdb-4.8.so
    lrwxrwxrwx    1 root     system           11 Mar 21 16:47 /opt/freeware/lib/libdb6.a -> libdb-6.2.a

    root@jp_aixtst4:/:# rpm -qa|grep -w db
    db-6.2.32-1.ppc



  • 5.  Re: RPM problem after latest yum update

    Posted Tue July 24, 2018 02:32 AM

    Originally posted by: AyappanP


    Please go through this entire thread to fix your problem.



  • 6.  Re: RPM problem after latest yum update

    Posted Wed July 25, 2018 03:19 PM

    Originally posted by: kmusil


    Rowswell,  I'm curious how you installed the 4.8 libs, did you just copy them from another server?  The rpm command is totally broke.

    Can you please send me a screen shot (long listing) of your re-lynced libs in /opt/freeware/lib.  Also, did you need to relync the libs in /usr/lib also?

    Please advise.

    THanks,
    Kris



  • 7.  Re: RPM problem after latest yum update

    Posted Thu March 22, 2018 12:33 PM

    Originally posted by: sangameshm


    Sorry, i overlooked it.

    Also you can extract libd-4.8.so from this rpm package https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/db/db-4.8.24-3.aix6.1.ppc.rpm

     

    Thanks,

    Sangamesh



  • 8.  RE: Re: RPM problem after latest yum update

    Posted Thu August 26, 2021 03:57 PM
    Thank you.  this saved me.  I was updating my version of curl and when db-6.2.32-2.aix6.1.ppc.rpm was installed those libdb-4 links were removed.  luckily the files themselves were still there so I just had to recreate the links.

    ------------------------------
    Tom Lyon
    ------------------------------



  • 9.  Re: RPM problem after latest yum update

    Posted Wed July 25, 2018 03:43 PM

    Originally posted by: kmusil


    great, thanks for your help.  I'm back in business



  • 10.  Re: RPM problem after latest yum update

    Posted Thu March 22, 2018 10:35 PM

    Originally posted by: sangameshm


    Thanks!

    As of now we removed db6 from the YUM repo to and from the download site to avoid this issue.

    Once we correct it we will upload it again.

     

    Thanks,

    Sangamesh



  • 11.  Re: RPM problem after latest yum update

    Posted Thu March 22, 2018 03:27 PM

    Originally posted by: rowswell


    Thanks - once I found the libdb 4.8 .a and .so files and created the symbolic links then it's working properly now.

    Might want to have a technote on this as other people are likely going to run into this same problem once the db v6 rpm update is applied.

    Dean



  • 12.  Re: RPM problem after latest yum update

    Posted Mon July 23, 2018 04:06 PM

    Originally posted by: kmusil


    I have the same problem as rowswell.  How do you extract files from the rpm.  The rpm command does not work at all? 

    # ls -l /opt/freeware/lib/libdb.so
    ls_64: cannot access '/opt/freeware/lib/libdb.so': No such file or directory

    ----------------------------------------------------------------

    # rpm -ivh db-4.8.24-3.aix6.1.ppc.rpm
    Could not load program rpm:
            Dependent module libdb.so could not be loaded.
    Could not load module libdb.so.
    System error: No such file or directory


    # ldd libdb.so
    ldd: libdb.so: File does not exist or is empty.

    -------------------------------------------

    oslevel -s
    Could not load program /usr/opt/freeware/bin/rpm:
            Dependent module libdb.so could not be loaded.
    Could not load module libdb.so.
    System error: No such file or directory
    7200-00-06-1806

    -----------------

    I also try to use yum history to undo what I just installed that updated the libdb from 4.8 to 6.2.  Nothing works

    # yum history
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

       Could not load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
            Dependent module libdb.so could not be loaded.
    Could not load module libdb.so.
    System error: No such file or directory
    Could not load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
            Dependent module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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.13 (default, Oct 17 2017, 05:37:56) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

    Please assist me as things are broke

    THanks

     



  • 13.  Re: RPM problem after latest yum update

    Posted Fri July 20, 2018 06:36 AM

    Originally posted by: Charlie Braun


    How do you extract files from a RPM package ?

    rpm2cpio <RPM> | cpio -idmv doesn't work.



  • 14.  Re: RPM problem after latest yum update

    Posted Thu March 22, 2018 12:27 PM

    Originally posted by: rowswell


    Hi there - the version 4-8 files are removed when the db version 6 is updated.  I will need to find them from another system.