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.  nss-devel-3.34.1-1 cpio: Bad magic

    Posted Wed August 29, 2018 01:42 PM

    Originally posted by: Edward Davignon


    I am unable to install nss-devel-3.34.1-1.aix6.1.ppc.rpm due to a problem with the cpio archive.

    
    
    $ sudo rpm -ivh nss-devel-3.34.1-1.aix6.1.ppc.rpm
    Preparing... ################################# [100%]
    Updating / installing...
    1:nss-devel-3.34.1-1 ################################# [100%]
    error: unpacking of archive failed: cpio: Bad magic
    error: nss-devel-3.34.1-1.ppc: install failed
    $ rpm --version
    RPM version 4.13.0.1
    $ type -a cpio
    cpio is /usr/bin/cpio
    $ lslpp -w /usr/bin/cpio
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/bin/cpio                               bos.rte.archive       File
    $ sudo lppchk -cm3 bos.rte.archive
    lppchk: 22 files have been checked.
    lppchk: 4 files have been checked.
    $ oslevel -s
    7200-02-02-1832
    $
    


  • 2.  Re: nss-devel-3.34.1-1 cpio: Bad magic

    Posted Wed August 29, 2018 01:44 PM

    Originally posted by: Edward Davignon


    Same problem with the source rpm.

    
    
    $ sudo rpm -ivh nss-3.34.1-1.src.rpm
    Updating / installing...
    1:nss-3.34.1-1 warning: user reshma does not exist - using root
    warning: user reshma does not exist - using root
    warning: user reshma does not exist - using root
    warning: user reshma does not exist - using root
    warning: user reshma does not exist - using root
    warning: user reshma does not exist - using root
    ################################# [100%]
    error: unpacking of archive failed: cpio: Bad magic
    error: nss-3.34.1-1.src.rpm cannot be installed
    


  • 3.  Re: nss-devel-3.34.1-1 cpio: Bad magic

    Posted Thu August 30, 2018 05:18 AM

    Originally posted by: AyappanP


    Some of our src rpms are affected because of a packaging issue. We are fixing them.

    nss-devel is the only binary rpm which has this issue. We are working on it.



  • 4.  Re: nss-devel-3.34.1-1 cpio: Bad magic

    Posted Thu August 30, 2018 05:26 AM

    Originally posted by: AyappanP


    As a workaround, you can use "rpm2cpio <rpm> | /opt/freeware/bin/cpio -idmv" to extract it. This will extract files in the current directory. 

    /opt/freeware/bin/cpio comes from cpio rpm.