Bug 771573 - Software Update Error
Summary: Software Update Error
Keywords:
Status: CLOSED DUPLICATE of bug 808130
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-presto
Version: 17
Hardware: x86_64
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Jonathan Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-04 07:44 UTC by Aydin Demirel
Modified: 2012-03-31 05:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-30 23:03:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Aydin Demirel 2012-01-04 07:44:39 UTC
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:

Comment 1 kopano.fedora 2012-03-29 18:24:35 UTC
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'

Comment 2 Dan Mashal 2012-03-30 22:48:22 UTC
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'

Comment 3 Dan Mashal 2012-03-30 22:53:18 UTC
Running yum update --disablepresto -y is a workaround. This happens on f16 and 17.

Comment 4 Andre Robatino 2012-03-30 22:54:45 UTC
Looks like a duplicate of bug 808130, which is already fixed in updates-testing.

Comment 5 Dan Mashal 2012-03-30 22:57:55 UTC
Thanks Andre, I'm assuming this will trickle down to F16?

Comment 6 Dan Mashal 2012-03-30 23:03:55 UTC

*** This bug has been marked as a duplicate of bug 808130 ***

Comment 7 Jonathan Dieter 2012-03-31 05:44:12 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.