AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  error rpm rebuilddb

    Posted Wed January 30, 2019 08:10 AM

    Originally posted by: HBER2


    Hi, 

     

    Does someone already met this issue on AIX when tried to rebuildb, (with command below)

    root#rpm --rebuilddb
    cp: /bin/bash_64: No such file or directory
    rpm_share: 0645-007 ATTENTION: update_file() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.
     

    Thanks, 



  • 2.  Re: error rpm rebuilddb

    Posted Wed January 30, 2019 08:24 AM

    Originally posted by: AyappanP


    See comment 2 in this thread --> https://www.ibm.com/developerworks/community/forums/html/topic?id=0ad8ca51-9e33-4a04-85c8-2dfa1c3aa73f&ps=25

    These are minor issues and rebuilddb would have already done its job.



  • 3.  Re: error rpm rebuilddb

    Posted Thu February 07, 2019 11:39 AM

    Originally posted by: HBER2


    Hi,

    thanks you, 

    I found also that i received same error too when i installed bash rpm on private wpar AIX ( has /usr private, and i have not this error on lpar AIX), 

    root@XXXX:/# rpm -hiv /mnt/RPMS/aix/bash-4.4-3.aix6.1.ppc.rpm /mnt/RPMS/aix/bash-doc-4.3.30-1.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:bash-doc-4.3.30-1                ################################# [ 50%]
       2:bash-4.4-3                       ################################# [100%]

            ## Binary "bash" is avaible in 32bit and 64bit ##

            The default used is 64bit

            If 32bit is needed, please change symbolic link
            for "bash" in /bin directory
            To do that type:
                    # rm -f /bin/bash
                    # ln -sf /opt/freeware/bin/bash_32 /bin/bash
    cp: /bin/bash: No such file or directory
    rpm_share: 0645-007 ATTENTION: update_file() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.
     

    Yes, i note that it cannot create link  on /bin/bash, but not understand why ? (it can create other link on this folder) and  i can create  it after  manually.

     

    root@xxxx:/root# ls -al /bin/bash*
    lrwxrwxrwx    1 root     system            7 Feb  7 15:55 /bin/bash@ -> bash_64*
     

    but if i execute command rpm --rebuilddb, new link manually created before is removed.

     

    If i try to use verbose mode of bash installation, but not really help  : 

    + echo /opt/freeware/bin/bash
    + 1>> /etc/shells
    + grep -q ^/opt/freeware/bin/bash_64$ /etc/shells
    + echo /opt/freeware/bin/bash_64
    + 1>> /etc/shells
    + echo \n\t## Binary "bash" is avaible in 32bit and 64bit ##\n\n\tThe default used is 64bit\n\n\tIf 32bit is needed, please change symbolic link \n\tfor "bash" in /bin directory\n\tTo do that type:\n\t\t# rm -f /bin/bash\n\t\t# ln -sf /opt/freeware/bin/bash_32 /bin/bash

            ## Binary "bash" is avaible in 32bit and 64bit ##

            The default used is 64bit

            If 32bit is needed, please change symbolic link
            for "bash" in /bin directory
            To do that type:
                    # rm -f /bin/bash
                    # ln -sf /opt/freeware/bin/bash_32 /bin/bash
    D: %post(bash-4.4-3.ppc): waitpid(5439490) rc 5439490 status 0
    ufdio:       6 reads,    32591 total bytes in 0.000055 secs
    D: running post-transaction scripts
    D:  read h#      10 Header sanity check: OK
    D: unknown: bash-doc-4.3.30-1.ppc has 0 files
    D:  read h#      11 Header sanity check: OK
    D: unknown: bash-4.4-3.ppc has 0 files
    D: closed   db index       /opt/freeware/packages/Packages
    D: closed   db index       /opt/freeware/packages/Enhancename
    D: closed   db index       /opt/freeware/packages/Supplementname
    D: closed   db index       /opt/freeware/packages/Suggestname
    D: closed   db index       /opt/freeware/packages/Recommendname
    D: closed   db index       /opt/freeware/packages/Transfiletriggername
    D: closed   db index       /opt/freeware/packages/Filetriggername
    D: closed   db index       /opt/freeware/packages/Sha1header
    D: closed   db index       /opt/freeware/packages/Sigmd5
    D: closed   db index       /opt/freeware/packages/Installtid
    D: closed   db index       /opt/freeware/packages/Dirnames
    D: closed   db index       /opt/freeware/packages/Triggername
    D: closed   db index       /opt/freeware/packages/Obsoletename
    D: closed   db index       /opt/freeware/packages/Conflictname
    D: closed   db index       /opt/freeware/packages/Providename
    D: closed   db index       /opt/freeware/packages/Requirename
    D: closed   db index       /opt/freeware/packages/Group
    D: closed   db index       /opt/freeware/packages/Basenames
    D: closed   db index       /opt/freeware/packages/Name
    D: closed   db environment /opt/freeware/packages
    cp: /bin/bash: No such file or directory
    rpm_share: 0645-007 ATTENTION: update_file() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.

     



  • 4.  Re: error rpm rebuilddb

    Posted Fri February 08, 2019 01:50 AM

    Originally posted by: sangameshm


    You might be hitting this http://www-01.ibm.com/support/docview.wss?uid=isg1IJ05339

     

    Thanks,

    Sangamesh

     



  • 5.  Re: error rpm rebuilddb

    Posted Mon February 11, 2019 07:27 AM

    Originally posted by: HBER2


    Hi, 

    thanks you for reply, 

     

    I checked on AIX wpar and found already this APAR : 

    root@:/mnt/RPMS/aix# instfix -ik IJ05306
        All filesets for IJ05306 were found.
     

    I supposed you can easily reproduce this problem if you can install bash on a private wpar 7.1.



  • 6.  Re: error rpm rebuilddb

    Posted Wed February 13, 2019 06:38 AM

    Originally posted by: AyappanP


    I couldn't able to recreate the problem in AIX 7.1 private wpar.

    (By private wpar, i guess you are mentioning about the writable /usr/ &/opt filesystem. "mkwpar -l" option).

    My testing

    ========

    mkwpar -ln mywpar

    startwpar -v mywpar

    clogin mywpar -l root

    # /usr/bin/rpm -ivh bash-4.4-3.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:bash-4.4-3                       ################################# [100%]

            ## Binary "bash" is avaible in 32bit and 64bit ##

            The default used is 64bit

            If 32bit is needed, please change symbolic link
            for "bash" in /bin directory
            To do that type:
                    # rm -f /bin/bash
                    # ln -sf /opt/freeware/bin/bash_32 /bin/bash
    # ls -l /bin/bash
    lrwxrwxrwx    1 root     system            7 Feb 13 05:32 /bin/bash -> bash_64
     

    I think you can contact AIX regular support for this issue because the failure happens inside a script that is shipped with AIX Base.

     



  • 7.  Re: error rpm rebuilddb

    Posted Wed February 13, 2019 08:05 AM

    Originally posted by: janhar


    FYI - from customer oslevel

    Below output of oslevel,

    For global

    #‌ oslevel -s

    7100-05-03-1846

     

    and wpar

    #‌ oslevel -s

    7100-05-03-1846