When I try to update the latest software updates via software update interface, I'm getting errors. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Select Software Update Interface 2. Push the Update Button 3. Actual results: Traceback (most recent call last): File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2451, in _runYumTransaction rpmDisplay=rpmDisplay) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5002, in processTransaction self._doTransaction(callback,display=rpmDisplay) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5114, in _doTransaction self.runTransaction( cb=cb ) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1499, in runTransaction self.skipped_packages, rpmdb_problems, cmdline) File "/usr/lib/python2.7/site-packages/yum/history.py", line 828, in beg self.trans_with_pid(pid) File "/usr/lib/python2.7/site-packages/yum/history.py", line 719, in trans_with_pid VALUES (?, ?)""", (self._tid, pid)) File "/usr/lib/python2.7/site-packages/yum/sqlutils.py", line 168, in executeSQLQmark return cursor.execute(query, params) IntegrityError: trans_with_pkgs.tid may not be NULL Expected results: Normal update proceed. Additional info:
I have a similar problems. I have tried 3 times but before i go the Error, i had fiddled with yum and eventually run "yum clean all"! Otherwise i have been updating daily without a problem! Dump: Failed to Process Reequest Traceback (most recent call last): File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2451, in _runYumTransaction rpmDisplay=rpmDisplay) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5629, in processTransaction pkgs = self._downloadPackages(callback) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5653, in _downloadPackages probs = self.downloadPkgs(dlpkgs) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2147, in downloadPkgs self.plugins.run('predownload', pkglist=pkglist) File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 187, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/presto.py", line 633, in predownload_hook (problems, more) = downloadPkgs(conduit, pinfo, download_pkgs) File "/usr/lib/yum-plugins/presto.py", line 321, in downloadPkgs delta = getDelta(po, presto, conduit, conf_mp) File "/usr/lib/yum-plugins/presto.py", line 198, in getDelta conduit.info(5, -("Could not find delta rpm for package $s.$s.") TypeError: bad operand type for unary -: 'str'
I am able to reproduce this: Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 321, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 229, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 547, in doTransaction problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2147, in downloadPkgs self.plugins.run('predownload', pkglist=pkglist) File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 187, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/presto.py", line 633, in predownload_hook (problems, more) = downloadPkgs(conduit, pinfo, download_pkgs) File "/usr/lib/yum-plugins/presto.py", line 321, in downloadPkgs delta = getDelta(po, presto, conduit, conf_mp) File "/usr/lib/yum-plugins/presto.py", line 198, in getDelta conduit.info(5, -("Could not find delta rpm for package %s.%s.") TypeError: bad operand type for unary -: 'str'
Running yum update --disablepresto -y is a workaround. This happens on f16 and 17.
Looks like a duplicate of bug 808130, which is already fixed in updates-testing.
Thanks Andre, I'm assuming this will trickle down to F16?
*** This bug has been marked as a duplicate of bug 808130 ***
Just a heads up that the original bug is *not* the same as bug 808130. And bug 808130 only applies to yum-presto-0.7.2 which was never pushed to Fedora 16. If you're having problems in Fedora 16, it's something different that needs a new bug report.