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

yum.sh: No such file or directory: '//var/lib/rpm/Packages'

  • 1.  yum.sh: No such file or directory: '//var/lib/rpm/Packages'

    Posted Wed November 28, 2018 06:19 AM

    Originally posted by: ctremel


    after yum.sh run on a virigin lpar without any rpm packages , yum produces this error. manual mkdir of /var/lib/rpm/Packages  fixes this. dont know what was the problem here.

     

    root@aixtest01: /opt/freeware/etc/yum # yum update
    AIX_Toolbox                                                                                                                                                                             | 2.9 kB  00:00:00
    AIX_Toolbox_72                                                                                                                                                                          | 2.9 kB  00:00:00
    AIX_Toolbox_72/primary_db                                                                                                                                                               |  32 kB  00:00:00
    AIX_Toolbox_noarch                                                                                                                                                                      | 2.9 kB  00:00:00
    Setting up Update Process
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, 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 236, in doCommand
        return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
      File "/opt/freeware/share/yum-cli/cli.py", line 744, in updatePkgs
        self.update()
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 3738, in update
        updates = self.up.getUpdatesTuples()
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 911, in <lambda>
        up = property(fget=lambda self: self._getUpdates(),
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 730, in _getUpdates
        self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())
      File "/opt/freeware/lib/python2.7/site-packages/yum/rpmsack.py", line 495, in simplePkgList
        return self.pkglist
      File "/opt/freeware/lib/python2.7/site-packages/yum/rpmsack.py", line 253, in _get_pkglist
        csumpkgtups = self.preloadPackageChecksums(load_packages=False)
      File "/opt/freeware/lib/python2.7/site-packages/yum/rpmsack.py", line 965, in preloadPackageChecksums
        rpmdbv = self.simpleVersion(main_only=True)[0]
      File "/opt/freeware/lib/python2.7/site-packages/yum/rpmsack.py", line 1120, in simpleVersion
        for pkg in sorted(self.returnPackages()):
      File "/opt/freeware/lib/python2.7/site-packages/yum/rpmsack.py", line 618, in returnPackages
        self._makePackageObject(hdr, idx)
      File "/opt/freeware/lib/python2.7/site-packages/yum/rpmsack.py", line 1272, in _makePackageObject
        self._cached_rpmdb_mtime = os.path.getmtime(rpmdbfname)
      File "/opt/freeware/lib/python2.7/genericpath.py", line 62, in getmtime
        return os.stat(filename).st_mtime
    OSError: [Errno 2] No such file or directory: '//var/lib/rpm/Packages'

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: yum.sh: No such file or directory: '//var/lib/rpm/Packages'

    Posted Thu November 29, 2018 01:33 AM

    Originally posted by: sangameshm


    /var/lib/rpm is a symlink to /usr/opt/freeware/packages path.

    # ls -l /var/lib/rpm
    lrwxrwxrwx    1 root     system           26 Aug 07 02:32 /var/lib/rpm -> /usr/opt/freeware/packages

     

    Was their any error seen during the update of rpm.rte to latest version as part of yum.sh script ?

     

    Thanks,

    Sangamesh


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: yum.sh: No such file or directory: '//var/lib/rpm/Packages'

    Posted Thu November 29, 2018 03:35 AM

    Originally posted by: ctremel


    here an excerpt of the output of yum.sh.
    
    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
                        Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...
    
    SUCCESSES
    ---------
      Filesets listed in this section passed pre-installation verification
      and will be installed.
    
      Selected Filesets
      -----------------
      rpm.rte 4.13.0.5                            # RPM Package Manager
    
      << End of Success Section >>
    
    +-----------------------------------------------------------------------------+
                       BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
        1  Selected to be installed, of which:
            1  Passed pre-installation verification
      ----
        1  Total to be installed
    
    +-----------------------------------------------------------------------------+
                             Installing Software...
    +-----------------------------------------------------------------------------+
    
    installp: APPLYING software for:
            rpm.rte 4.13.0.5
    
    /usr/sbin/rpm_share[470]: /usr/opt/freeware/bin/rpm:  not found
    
    
    . . . . . << Copyright notice for rpm.rte >> . . . . . . .
     Licensed Materials - Property of IBM
    
     5765H4000
       Copyright International Business Machines Corp. 2000, 2018.
       Copyright The Regents of the University of California, 1990, 1993, 1994.
       Copyright Tom Dyas <tdyas@eden.rutgers.edu>, 1998.
       Copyright W. L. Estes <wlestes@uncg.edu>, 1998.
       Copyright Free Software Foundation, Inc., 1999-2014.
       Copyright The Internet Society (1998).
       Copyright Red Hat, Inc., 1998-2003, 2005, 2007, 2009-2011.
       Copyright Red Hat Software, 1995-2002.
       Copyright Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>, 2004.
       Copyright System Design and Research, 2003.
    
     All rights reserved.
     US Government Users Restricted Rights - Use, duplication or disclosure
     restricted by GSA ADP Schedule Contract with IBM Corp.
    . . . . . << End of copyright notice for rpm.rte >>. . . .
    
    ##################################################################
      This version of rpm installs files under the path /usr/opt/rpm.
      More detailed information on new changes can be found in
      /usr/opt/rpm/README file.
    ##################################################################
    
    ln: /usr/lib/libz.a exists.  Specify -f to remove.
    ln: /usr/src/packages/packages exists.  Specify -f to remove.
    Please wait...
    Successfully updated the Kernel Authorization Table.
    Successfully updated the Kernel Role Table.
    Successfully updated the Kernel Command Table.
    Successfully updated the Kernel Device Table.
    Successfully updated the Kernel Object Domain Table.
    Successfully updated the Kernel  Domains Table.
    Finished processing all filesets.  (Total time:  51 secs).
    
    +-----------------------------------------------------------------------------+
                                    Summaries:
    +-----------------------------------------------------------------------------+
    
    Installation Summary
    --------------------
    Name                        Level           Part        Event       Result
    -------------------------------------------------------------------------------
    rpm.rte                     4.13.0.5        USR         APPLY       SUCCESS
    rpm.rte                     4.13.0.5        ROOT        APPLY       SUCCESS
    

     


    #AIX-Open-Source-Software
    #AIXOpenSource