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
Expand all | Collapse all

AIX yum repolist command error with local repository

  • 1.  AIX yum repolist command error with local repository

    Posted Tue July 23, 2019 12:13 PM

    Originally posted by: partyboy


    Hi,

    We want to deploy the Yum feature on our AIX Servers with a central repository (RH Satellite), no firewall between them.

    It works fine with the "yum_bundle_v5" on one AIX 7.2 LPAR, with the included default yum.conf (external IBM Repositories) AND internal yum.conf

    
    root@aixgpfstest1:/root
    # yum repolist
    repo id                         repo name                                 status
    AIX_Toolbox                     AIX generic repository                    2,025
    AIX_Toolbox_72                  AIX 7.2 specific repository                  83
    AIX_Toolbox_noarch              AIX noarch repository                       138
    repolist: 2,246
    

     

    The exactly same installation / configuration  on our second LPAR aixgpfstest2 did work with external IBM Repos. but NOT with internal one.

    On both Server LIBPATH is  in /root/.profile like this :

    export LIBPATH=/opt/freeware/lib/:/opt/freeware/lib64/:$LIBPATH

     

    # yum repolist
    AIX_Toolbox                                                                                                                            | 2.1 kB  00:00:00     
    AIX_Toolbox/primary                                                                                                                    | 845 kB  00:00:00     
    Traceback (most recent call last):
      File "/usr/bin/yum", line 32, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
        errcode = main(args)
      File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
        result, resultmsgs = base.doCommands()
      File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
        return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
      File "/opt/freeware/share/yum-cli/yumcommands.py", line 864, in doCommand
        base.repos.populateSack()
      File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
        sack.populate(repo, mdtype, callback, cacheonly)
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 186, in populate
        dobj = repo_cache_function(xml, csum)
      File "/opt/freeware/lib/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
        self.repoid))
    TypeError: Parsing primary.xml error: Start tag expected, '<' not found

     

    Any clue ?

    Thanks a lot, it makes me crazy ;-)

    Alexander

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: AIX yum repolist command error with local repository

    Posted Tue July 23, 2019 12:25 PM


  • 3.  Re: AIX yum repolist command error with local repository

    Posted Thu July 25, 2019 08:41 AM

    Originally posted by: partyboy


    Perfekt, this was the solution thank you !! :-)


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  RE: Re: AIX yum repolist command error with local repository

    Posted Fri July 01, 2022 06:19 AM
    Hi Ayyappan, I'm trying to use Linux local repo server, but failing with same error. i have Installed xzlib and libxml2 rpms.

    Not able to open above solution link. 

    root@qanim01adtest:/ > rpm -qa | grep xz-libs
    xz-libs-5.2.5-1.ppc
    root@qanim01adtest:/ > rpm -qa | grep libxml2
    libxml2-2.9.14-1.ppc
    root@qanim01adtest:/ >



    root@qanim01adtest:/ > yum repolist
    Traceback (most recent call last):
    File "/usr/bin/yum", line 32, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
    File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
    errcode = main(args)
    File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
    result, resultmsgs = base.doCommands()
    File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
    File "/opt/freeware/share/yum-cli/yumcommands.py", line 864, in doCommand
    base.repos.populateSack()
    File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
    File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 186, in populate
    dobj = repo_cache_function(xml, csum)
    File "/opt/freeware/lib/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
    self.repoid))
    TypeError: Parsing primary.xml error: Start tag expected, '<' not found

    root@qanim01adtest:/ >

    ------------------------------
    Tulasiram Morusu
    ------------------------------



  • 5.  RE: Re: AIX yum repolist command error with local repository

    Posted Fri July 01, 2022 10:49 AM
    Hi Tulasiram,

    This error may be due to the older version of expat package.

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



  • 6.  RE: Re: AIX yum repolist command error with local repository

    Posted Mon July 04, 2022 03:32 AM
    Hi Sangamesh,

    I have updated the expat rpm and ran updtvpkg also.
    but still getting the same error.

    root@qanim01adtest:/tmp > rpm -qa | grep expat
    expat-2.4.6-1.ppc
    root@qanim01adtest:/tmp > rpm -qi expat-2.4.6-1.ppc
    Name : expat
    Version : 2.4.6
    Release : 1
    Architecture: ppc
    Install Date: Mon Jul 4 07:13:50 CUT 2022
    Group : System Environment/Libraries
    Size : 3663383
    License : MIT
    Signature : (none)
    Source RPM : expat-2.4.6-1.src.rpm
    Build Date : Sat Mar 5 14:11:03 CUT 2022
    Build Host : pokndd10.pok.stglabs.ibm.com
    Packager : IBM AIX Toolbox <https://ibm.biz/AIXToolbox>
    URL : http://www.libexpat.org/
    Bug URL : https://ibm.biz/aixoss_forum
    Summary : An XML parser library
    Description :
    This is expat, the C library for parsing XML, written by James Clark. Expat
    is a stream oriented XML parser. This means that you register handlers with
    the parser prior to starting the parse. These handlers are called when the
    parser discovers the associated structures in the document being parsed. A
    start tag is an example of the kind of structures for which you may
    register handlers.

    The library is available as 32-bit and 64-bit.
    root@qanim01adtest:/tmp >



    -------------------------------
    Error
    -----------------------------
    root@qanim01adtest:/tmp > yum repolist
    aix-localrepo | 2.0 kB 00:00:00
    Traceback (most recent call last):
    File "/usr/bin/yum", line 32, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
    File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
    errcode = main(args)
    File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
    result, resultmsgs = base.doCommands()
    File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
    File "/opt/freeware/share/yum-cli/yumcommands.py", line 864, in doCommand
    base.repos.populateSack()
    File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
    File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 186, in populate
    dobj = repo_cache_function(xml, csum)
    File "/opt/freeware/lib/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
    self.repoid))
    TypeError: Parsing primary.xml error: Start tag expected, '<' not found

    root@qanim01adtest:/tmp >





    ------------------------------
    Tulasiram Morusu
    ------------------------------



  • 7.  RE: Re: AIX yum repolist command error with local repository

    Posted Mon July 04, 2022 04:44 AM

    Please share "rpm -qa" output. 

    Do you have any LIBPATH exported ? ( output of "echo $LIBPATH" )



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



  • 8.  RE: Re: AIX yum repolist command error with local repository

    Posted Mon July 04, 2022 06:21 AM
    Hi Ayyappan,

    Here is rpms installed and LIB path not exported.

    root@qanim01adtest:/ > rpm -qa
    TWeagent-7.5.3-0.ppc
    bash-3.0-1.ppc
    ganglia-p6-gmond-3.7.2-1.ppc
    libconfuse-2.7-1.ppc
    mlocate-0.26-1.ppc
    pcre-8.41-1.ppc
    sudo-1.9.5-3.ppc
    glib2-2.14.6-2.ppc
    yum-metadata-parser-1.1.4-2.ppc
    db-4.8.24-3.ppc
    gettext-0.19.7-1.ppc
    python-2.7.10-1.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.19.3-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    yum-3.4.3-8.noarch
    libgcc-8-1.ppc
    libiconv-1.16-1.ppc
    libxml2-2.9.14-1.ppc
    expat-2.4.6-1.ppc
    apr-1.6.3-1.ppc
    bzip2-1.0.6-1.ppc
    ganglia-lib-3.7.2-1.ppc
    ganglia-p6-mod_ibmpower-3.7.2-1.ppc
    info-6.4-1.ppc
    pci.df1000fa-1-191A5.noarch
    readline-7.0-3.ppc
    zlib-1.2.11-1.ppc
    unzip-6.0-3.ppc
    sqlite-3.15.2-1.ppc
    ca-certificates-2016.10.7-2.ppc
    gdbm-1.8.3-5.ppc
    python-devel-2.7.10-1.ppc
    curl-7.52.1-1.ppc
    python-tools-2.7.10-1.ppc
    pysqlite-1.1.7-2.ppc
    libgcc8-8.3.0-6.ppc
    xz-libs-5.2.5-1.ppc
    AIX-rpm-7.2.5.100-21.ppc
    root@qanim01adtest:/ >
    root@qanim01adtest:/ > echo $LIBPATH

    root@qanim01adtest:/ >

    ------------------------------
    Tulasiram Morusu
    ------------------------------



  • 9.  RE: Re: AIX yum repolist command error with local repository

    Posted Mon July 04, 2022 06:53 AM
    Edited by Ayappan P Mon July 04, 2022 07:00 AM

    I see the python version 2.7.10 is very old. You need to update the python to 2.7.18. 
     You can do "LIBPATH=/opt/freeware/lib:/usr/lib yum update python python-devel python-tools" 
    Once python is updated , then there is no need for LIBPATH. Yum will work fine. 



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



  • 10.  RE: Re: AIX yum repolist command error with local repository

    Posted Mon July 04, 2022 09:47 AM
    Hi Ayyappa,

    I could not download libffi rpm from IBM open source, it says page not found when I click on that particular RPM. where can I get this rpm package?


    libffi 3.4.2 License RPM SRPM 'A portable foreign function interface library'


    ------------------------------
    Tulasiram Morusu
    ------------------------------



  • 11.  RE: Re: AIX yum repolist command error with local repository

    Posted Tue July 05, 2022 01:29 AM
    libffi rpms are available on AIX toolbox
    Please check following link

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/libffi/libffi-3.4.2-1.aix7.1.ppc.rpm


    ------------------------------
    SANKET RATHI
    ------------------------------



  • 12.  RE: Re: AIX yum repolist command error with local repository

    Posted Tue July 05, 2022 04:12 AM
    Hi Sanke Rathi,

    I have installed libffi and required dependent RPMs, but still gettin gbelow error.

    root@qanim01adtest:/tmp/python > yum repolist
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-130 Symbol resolution failed for /opt/freeware/lib/libintl.a(libintl.so.8) because:
    0509-136 Symbol _GLOBAL__AIXI_libiconv_so (number 4) is not exported from
    dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2).
    0509-136 Symbol _GLOBAL__AIXD_libiconv_so (number 5) is not exported from
    dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2).
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    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.18 (default, May 31 2021, 11:28:01)
    [GCC 8.3.0]

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


    root@qanim01adtest:/tmp/python >
    root@qanim01adtest:/tmp/python >
    root@qanim01adtest:/tmp/python > rpm -qa | grep gcc
    libgcc-8-1.ppc
    gcc8-cpp-8.3.0-6.ppc
    gcc8-8.3.0-6.ppc
    gcc-8-1.ppc
    libgcc8-8.3.0-6.ppc
    root@qanim01adtest:/tmp/python >

    ------------------------------
    Tulasiram Morusu
    ------------------------------



  • 13.  RE: Re: AIX yum repolist command error with local repository

    Posted Tue July 05, 2022 04:23 AM
    Install libiconv 1.16 (or 1.17) rpm from AIX Toolbox.

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



  • 14.  RE: Re: AIX yum repolist command error with local repository

    Posted Tue July 05, 2022 04:20 AM
    I have verified rpm.rte version installed which is latest.


    root@qanim01adtest:/tmp/python > lslpp -l | grep rpm.rte
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
    root@qanim01adtest:/tmp/python >


    root@qanim01adtest:/tmp/python > rpm -qa | grep rpm
    AIX-rpm-7.2.5.100-27.ppc
    root@qanim01adtest:/tmp/python > rpm -qi AIX-rpm-7.2.5.100-27.ppc
    Name : AIX-rpm
    Version : 7.2.5.100
    Release : 27
    Architecture: ppc
    Install Date: Tue Jul 5 07:50:16 CUT 2022
    Group : System Environment/Libraries
    Size : 0
    License : none
    Signature : (none)
    Source RPM : AIX-rpm-7.2.5.100-27.src.rpm
    Build Date : Tue Jul 5 07:50:15 CUT 2022
    Build Host : qanim01adtest.qa.inttra.com
    Packager : auto-generated
    Bug URL : https://ibm.biz/aixoss_forum
    Summary : Virtual Package for libraries and shells installed on system
    Description :
    This package contains no files. It is a package which contains
    information about shared libraries and shell interpreters installed
    on the operating system.


    ------------------------------
    Tulasiram Morusu
    ------------------------------



  • 15.  RE: Re: AIX yum repolist command error with local repository

    Posted Tue July 05, 2022 04:27 AM
    I got the solution.

    I have updated the libiconv-1.17-1.aix7.1.ppc.rpm , it is working!.

    Thanks

    ------------------------------
    Tulasiram Morusu
    ------------------------------