Bug 18302 - an internal system error has occurred--PackageKit
Summary: an internal system error has occurred--PackageKit
Status: RESOLVED INVALID
Alias: None
Product: PackageKit
Classification: Unclassified
Component: backend-yum (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 02:12 UTC by Luo Bin
Modified: 2012-01-05 10:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luo Bin 2008-10-30 02:12:34 UTC
I can always receive a notify named "an internal system error has occurred" when packagekit tring to get update information.
My system is Fedora 10 rawhide on i686.
The PackageKit version: 0.3.9-2.fc10.i386
The error detail is below:
Error Type: <type 'exceptions.TypeError'>
Error Value: 'NoneType' object is unsubscriptable
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2200, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2197, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 599, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 507, in dispatch_command
    self.get_updates(filters)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1731, in get_updates
    ygl = self.yumbase.doPackageLists(pkgnarrow='updates')
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 1470, in doPackageLists
    for (n,a,e,v,r) in self.up.getUpdatesList():
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 605, in <lambda>
    up = property(fget=lambda self: self._getUpdates(),
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 490, in _getUpdates
    self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 592, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 435, in _getSacks
    self.repos.populateSack(which=repos)
  File : /usr/lib/python2.5/site-packages/yum/repos.py, line 223, in populateSack
    self.doSetup()
  File : /usr/lib/python2.5/site-packages/yum/repos.py, line 71, in doSetup
    self.ayum.plugins.run('postreposetup')
  File : /usr/lib/python2.5/site-packages/yum/plugins.py, line 176, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File : /usr/lib/yum-plugins/rpm-warm-cache.py, line 31, in postreposetup_hook
    if commands[0] in ('upgrade', 'install', 'remove'):
Comment 1 Richard Hughes 2008-10-30 03:24:16 UTC
What's "rpm -qf /usr/lib/yum-plugins/rpm-warm-cache.py" ?
Comment 2 Luo Bin 2008-10-30 03:29:09 UTC
(In reply to comment #1)
> What's "rpm -qf /usr/lib/yum-plugins/rpm-warm-cache.py" ?
> 

[xelnaga@ASUS6 ~]$ rpm -qf /usr/lib/yum-plugins/rpm-warm-cache.py
yum-rpm-warm-cache-1.1.18-1.fc10.noarch
Comment 3 Richard Hughes 2008-10-30 04:03:30 UTC
It's a problem with that plugin -- I can't find it in the fedora repositories, so I can't even reproduce. It also turned up no results on google. If you uninstall that plugin, does PackageKit work correctly?
Comment 4 Luo Bin 2008-10-30 04:21:12 UTC
(In reply to comment #3)
> It's a problem with that plugin -- I can't find it in the fedora repositories,
> so I can't even reproduce. It also turned up no results on google. If you
> uninstall that plugin, does PackageKit work correctly?
> 
Thanks very much!
This plugin actually caused the problem.
I removed it and PackageKit never report error again!
By the way,you can find the plugin here: http://koji.fedoraproject.org/koji/buildinfo?buildID=67993 
Comment 5 Sandy 2009-03-08 00:46:14 UTC
Hi I am receiving the same error but error output seems different, any help on how to fix this greatly appreciated (n00b)!... 

Error Type: <type 'exceptions.TypeError'>
Error Value: rpmdb open failed
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2314, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2310, in main
    backend = PackageKitYumBackend('', lock=True)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 182, in __init__
    self.yumbase = PackageKitYumBase(self)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2253, in __init__
    self.repos.confirm_func = self._repo_gpg_confirm
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 589, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 395, in _getRepos
    self._getConfig() # touch the config class first
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 192, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File : /usr/lib/python2.5/site-packages/yum/config.py, line 774, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File : /usr/lib/python2.5/site-packages/yum/config.py, line 844, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
Comment 6 Jean-François Fortin Tam 2012-01-05 10:25:22 UTC
Hi there,
This bug report is very old and based on a version not supported anymore. By upgrading to a newer version of PackageKit you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of PackageKit.
Please feel free to reopen this bug if the problem still occurs with the latest version.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.