Add/Remove software error

Discussion in 'Linux' started by SDM, Jan 3, 2009.

  1. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Earlier today I was trying to access the add/remove software option of linux. Whilst the list of software was downloading the laptop froze so I had to hold the power button down to shut down. After restarting I get this error when I try to add/remove software. I get the error after entering the root password. I would grateful of any help.

    Component: pirut
    Summary: TBc0c9275d config.py:680:_getsysver:TypeError: rpmdb open failed

    Traceback (most recent call last):
    File "/usr/sbin/pirut", line 476, in <module>
    main()
    File "/usr/sbin/pirut", line 469, in main
    pm = PackageManager(options.config, options.onlyrepo)
    File "/usr/sbin/pirut", line 63, in __init__
    GraphicalYumBase.__init__(self, False, config)
    File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 129, in __init__
    plugin_types=(yum.plugins.TYPE_CORE,))
    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in doConfigSetup
    errorlevel=errorlevel)
    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 159, in _getConfig
    self._conf = config.readMainConfig(startupconf)
    File "/usr/lib/python2.5/site-packages/yum/config.py", line 613, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
    File "/usr/lib/python2.5/site-packages/yum/config.py", line 680, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
    TypeError: rpmdb open failed

    Local variables in innermost frame:
    installroot: /
    ts: <rpmUtils.transaction.TransactionWrapper instance at 0x85da06c>
    distroverpkg: redhat-release
     
    SDM, Jan 3, 2009
    #1
  2. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Can any one tell me how to reinstall Pirut using the terminal?
     
    SDM, Jan 5, 2009
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.