Bug 809031 - yum fails to update with TypeError: bad operand type for unary -: 'str' when presto is enabled
yum fails to update with TypeError: bad operand type for unary -: 'str' when ...
Status: CLOSED DUPLICATE of bug 808130
Product: Fedora
Classification: Fedora
Component: yum-presto (Show other bugs)
17
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jonathan Dieter
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-02 05:57 EDT by Elad Alfassa
Modified: 2012-04-02 06:36 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-04-02 06:35:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Elad Alfassa 2012-04-02 05:57:42 EDT
[root@alfmobile elad]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
fedora/metalink                                          |  21 kB     00:00     
fedora                                                   | 4.2 kB     00:00     
fedora/primary_db                                        |  14 MB     01:16     
fedora/group_gz                                          | 426 kB     00:03     
rpmfusion-free-rawhide                                   | 1.2 kB     00:00     
rpmfusion-nonfree                                        | 1.2 kB     00:00     
rpmfusion-nonfree-updates                                | 1.2 kB     00:00     
rpmfusion-nonfree-updates-testing                        | 3.3 kB     00:00     
updates/metalink                                         |  27 kB     00:00     
updates-testing/metalink                                 |  22 kB     00:00     
updates-testing                                          | 4.5 kB     00:00     
updates-testing/primary_db                               | 4.6 MB     00:46     
updates-testing/group_gz                                 | 426 kB     00:05     
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:0.9.3.997-1.git20120321.fc17 will be updated
---> Package NetworkManager.x86_64 1:0.9.4.0-1.git20120328.fc17 will be an update
---> Package NetworkManager-glib.x86_64 1:0.9.3.997-1.git20120321.fc17 will be updated
---> Package NetworkManager-glib.x86_64 1:0.9.4.0-1.git20120328.fc17 will be an update
---> Package NetworkManager-gnome.x86_64 1:0.9.3.997-1.git20120321.fc17 will be updated
---> Package NetworkManager-gnome.x86_64 1:0.9.4.0-1.git20120328.fc17 will be an update
---> Package NetworkManager-gtk.x86_64 1:0.9.3.997-1.git20120321.fc17 will be updated
---> Package NetworkManager-gtk.x86_64 1:0.9.4.0-1.git20120328.fc17 will be an update
---> Package anaconda.x86_64 0:17.15-1.fc17 will be updated
---> Package anaconda.x86_64 0:17.16-1.fc17 will be an update
---> Package at-spi2-core.x86_64 0:2.3.92-1.fc17 will be updated
---> Package at-spi2-core.x86_64 0:2.4.0-1.fc17 will be an update
---> Package clutter.x86_64 0:1.10.0-1.fc17 will be updated
---> Package clutter.x86_64 0:1.10.0-2.fc17 will be an update
---> Package colord.x86_64 0:0.1.18-1.fc17 will be updated
---> Package colord.x86_64 0:0.1.18-2.fc17 will be an update
---> Package cups.x86_64 1:1.5.2-8.fc17 will be updated
---> Package cups.x86_64 1:1.5.2-10.fc17 will be an update
---> Package cups-libs.x86_64 1:1.5.2-8.fc17 will be updated
---> Package cups-libs.x86_64 1:1.5.2-10.fc17 will be an update
---> Package device-mapper.x86_64 0:1.02.74-5.fc17 will be updated
---> Package device-mapper.x86_64 0:1.02.74-6.fc17 will be an update
---> Package device-mapper-event.x86_64 0:1.02.74-5.fc17 will be updated
---> Package device-mapper-event.x86_64 0:1.02.74-6.fc17 will be an update
---> Package device-mapper-event-libs.x86_64 0:1.02.74-5.fc17 will be updated
---> Package device-mapper-event-libs.x86_64 0:1.02.74-6.fc17 will be an update
---> Package device-mapper-libs.x86_64 0:1.02.74-5.fc17 will be updated
---> Package device-mapper-libs.x86_64 0:1.02.74-6.fc17 will be an update
---> Package eekboard.x86_64 0:1.0.5-4.fc17 will be updated
---> Package eekboard.x86_64 0:1.0.6-2.fc17 will be obsoleting
---> Package eekboard-libs.x86_64 0:1.0.5-4.fc17 will be updated
---> Package eekboard-libs.x86_64 0:1.0.6-2.fc17 will be an update
---> Package eekboard-python.x86_64 0:1.0.5-4.fc17 will be obsoleted
---> Package expat.x86_64 0:2.0.1-12.fc17 will be updated
---> Package expat.x86_64 0:2.1.0-1.fc17 will be an update
---> Package fedora-release-notes.noarch 0:16.95.0-1.fc17 will be updated
---> Package fedora-release-notes.noarch 0:16.96.0-1.fc17 will be an update
---> Package folks.x86_64 1:0.6.8-1.fc17 will be updated
---> Package folks.x86_64 1:0.6.8-2.fc17 will be an update
---> Package freetype.x86_64 0:2.4.8-2.fc17 will be updated
---> Package freetype.x86_64 0:2.4.8-3.fc17 will be an update
---> Package gdb.x86_64 0:7.4.50.20120120-33.fc17 will be updated
---> Package gdb.x86_64 0:7.4.50.20120120-35.fc17 will be an update
---> Package ibus-m17n.x86_64 0:1.3.3-9.fc17 will be updated
---> Package ibus-m17n.x86_64 0:1.3.3-11.fc17 will be an update
---> Package ibus-pinyin.x86_64 0:1.4.0-14.fc17 will be updated
---> Package ibus-pinyin.x86_64 0:1.4.0-15.fc17 will be an update
---> Package ibus-pinyin-db-android.noarch 0:1.4.0-14.fc17 will be updated
---> Package ibus-pinyin-db-android.noarch 0:1.4.0-15.fc17 will be an update
---> Package jpackage-utils.x86_64 0:1.7.5-16.fc17 will be updated
---> Package jpackage-utils.x86_64 0:1.7.5-17.fc17 will be an update
---> Package kernel.x86_64 0:3.3.0-8.fc17 will be installed
---> Package kernel-headers.x86_64 0:3.3.0-5.fc17 will be updated
---> Package kernel-headers.x86_64 0:3.3.0-8.fc17 will be an update
---> Package libblkid.x86_64 0:2.21-2.fc17 will be updated
---> Package libblkid.x86_64 0:2.21.1-1.fc17 will be an update
---> Package libdrm.x86_64 0:2.4.32-1.fc17 will be updated
---> Package libdrm.x86_64 0:2.4.33-1.fc17 will be an update
---> Package libmount.x86_64 0:2.21-2.fc17 will be updated
---> Package libmount.x86_64 0:2.21.1-1.fc17 will be an update
---> Package libpciaccess.x86_64 0:0.12.902-5.fc17 will be updated
---> Package libpciaccess.x86_64 0:0.13-2.fc17 will be an update
---> Package libpinyin.x86_64 0:0.5.91-3.fc17 will be updated
---> Package libpinyin.x86_64 0:0.5.92-1.fc17 will be an update
---> Package libpinyin-data.x86_64 0:0.5.91-3.fc17 will be updated
---> Package libpinyin-data.x86_64 0:0.5.92-1.fc17 will be an update
---> Package libquvi.x86_64 0:0.4.0-6.fc17 will be updated
---> Package libquvi.x86_64 0:0.4.1-1.fc17 will be an update
---> Package libquvi-scripts.noarch 0:0.4.3-1.fc17 will be updated
---> Package libquvi-scripts.noarch 0:0.4.4-1.fc17 will be an update
---> Package libsepol.x86_64 0:2.1.4-6.fc17 will be updated
---> Package libsepol.x86_64 0:2.1.5-1.fc17 will be an update
---> Package libuuid.x86_64 0:2.21-2.fc17 will be updated
---> Package libuuid.x86_64 0:2.21.1-1.fc17 will be an update
---> Package lvm2.x86_64 0:2.02.95-5.fc17 will be updated
---> Package lvm2.x86_64 0:2.02.95-6.fc17 will be an update
---> Package lvm2-libs.x86_64 0:2.02.95-5.fc17 will be updated
---> Package lvm2-libs.x86_64 0:2.02.95-6.fc17 will be an update
---> Package mesa-dri-drivers.x86_64 0:8.0.1-7.fc17 will be updated
--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libGL-8.0.1-9.fc17.x86_64
--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libGLES-8.0.1-9.fc17.x86_64
---> Package mesa-dri-drivers.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-dri-filesystem.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-dri-filesystem.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGL.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGL.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGLES.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGLES.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGLU.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGLU.x86_64 0:8.0.1-9.fc17 will be an update
---> Package openssh.x86_64 0:5.9p1-20.fc17 will be updated
---> Package openssh.x86_64 0:5.9p1-21.fc17 will be an update
---> Package openssh-clients.x86_64 0:5.9p1-20.fc17 will be updated
---> Package openssh-clients.x86_64 0:5.9p1-21.fc17 will be an update
---> Package openssh-server.x86_64 0:5.9p1-20.fc17 will be updated
---> Package openssh-server.x86_64 0:5.9p1-21.fc17 will be an update
---> Package os-prober.x86_64 0:1.48-3.fc17 will be updated
---> Package os-prober.x86_64 0:1.51-1.fc17 will be an update
---> Package pcsc-lite-libs.x86_64 0:1.8.2-1.fc17 will be updated
---> Package pcsc-lite-libs.x86_64 0:1.8.3-1.fc17 will be an update
---> Package python-iwlib.x86_64 0:1.1-2.fc17 will be updated
---> Package python-iwlib.x86_64 0:1.2-1.fc17 will be an update
---> Package rp-pppoe.x86_64 0:3.10-11.fc17 will be updated
---> Package rp-pppoe.x86_64 0:3.10-12.fc17 will be an update
---> Package seahorse-nautilus.x86_64 0:3.4.0-2.fc17 will be obsoleting
---> Package seahorse-plugins.x86_64 0:2.91.6-0.4.git1e35fd9.fc17 will be obsoleted
---> Package setroubleshoot-plugins.noarch 0:3.0.35-1.fc17 will be updated
---> Package setroubleshoot-plugins.noarch 0:3.0.36-1.fc17 will be an update
---> Package spice-glib.x86_64 0:0.11-3.fc17 will be updated
---> Package spice-glib.x86_64 0:0.11-4.fc17 will be an update
---> Package spice-gtk3.x86_64 0:0.11-3.fc17 will be updated
---> Package spice-gtk3.x86_64 0:0.11-4.fc17 will be an update
---> Package util-linux.x86_64 0:2.21-2.fc17 will be updated
---> Package util-linux.x86_64 0:2.21.1-1.fc17 will be an update
---> Package webkitgtk.x86_64 0:1.6.3-2.fc17 will be updated
---> Package webkitgtk.x86_64 0:1.8.0-1.fc17 will be an update
---> Package xorg-x11-drv-ati.x86_64 0:6.14.3-11.20120206git36c190671.fc17 will be updated
---> Package xorg-x11-drv-ati.x86_64 0:6.14.4-2.20120329gitde2419e55.fc17 will be an update
---> Package xorg-x11-drv-evdev.x86_64 0:2.7.0-1.fc17 will be updated
---> Package xorg-x11-drv-evdev.x86_64 0:2.7.0-2.fc17 will be an update
---> Package xorg-x11-drv-vmware.x86_64 0:11.0.3-14.fc17 will be updated
---> Package xorg-x11-drv-vmware.x86_64 0:12.0.1-2.fc17 will be an update
--> Processing Dependency: libxatracker >= 8.0.1-4 for package: xorg-x11-drv-vmware-12.0.1-2.fc17.x86_64
--> Processing Dependency: libxatracker.so.1()(64bit) for package: xorg-x11-drv-vmware-12.0.1-2.fc17.x86_64
---> Package yum-presto.noarch 0:0.7.2-1.fc17 will be updated
---> Package yum-presto.noarch 0:0.7.3-1.fc17 will be an update
--> Running transaction check
---> Package mesa-libglapi.x86_64 0:8.0.1-9.fc17 will be installed
---> Package mesa-libxatracker.x86_64 0:8.0.1-9.fc17 will be installed
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:3.3.0-0.rc7.git0.3.fc17 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch   Version                      Repository       Size
================================================================================
Installing:
 eekboard             x86_64 1.0.6-2.fc17                 updates-testing 121 k
     replacing  eekboard-python.x86_64 1.0.5-4.fc17
 kernel               x86_64 3.3.0-8.fc17                 updates-testing  25 M
 seahorse-nautilus    x86_64 3.4.0-2.fc17                 updates-testing 167 k
     replacing  seahorse-plugins.x86_64 2.91.6-0.4.git1e35fd9.fc17
Updating:
 NetworkManager       x86_64 1:0.9.4.0-1.git20120328.fc17 fedora          1.3 M
 NetworkManager-glib  x86_64 1:0.9.4.0-1.git20120328.fc17 fedora          286 k
 NetworkManager-gnome x86_64 1:0.9.4.0-1.git20120328.fc17 fedora          406 k
 NetworkManager-gtk   x86_64 1:0.9.4.0-1.git20120328.fc17 fedora          133 k
 anaconda             x86_64 17.16-1.fc17                 fedora          2.5 M
 at-spi2-core         x86_64 2.4.0-1.fc17                 updates-testing 140 k
 clutter              x86_64 1.10.0-2.fc17                updates-testing 858 k
 colord               x86_64 0.1.18-2.fc17                updates-testing 194 k
 cups                 x86_64 1:1.5.2-10.fc17              updates-testing 2.1 M
 cups-libs            x86_64 1:1.5.2-10.fc17              updates-testing 355 k
 device-mapper        x86_64 1.02.74-6.fc17               updates-testing 152 k
 device-mapper-event  x86_64 1.02.74-6.fc17               updates-testing 107 k
 device-mapper-event-libs
                      x86_64 1.02.74-6.fc17               updates-testing 101 k
 device-mapper-libs   x86_64 1.02.74-6.fc17               updates-testing 179 k
 eekboard-libs        x86_64 1.0.6-2.fc17                 updates-testing 120 k
 expat                x86_64 2.1.0-1.fc17                 updates-testing  75 k
 fedora-release-notes noarch 16.96.0-1.fc17               fedora          313 k
 folks                x86_64 1:0.6.8-2.fc17               updates-testing 478 k
 freetype             x86_64 2.4.8-3.fc17                 updates-testing 368 k
 gdb                  x86_64 7.4.50.20120120-35.fc17      updates-testing 1.9 M
 ibus-m17n            x86_64 1.3.3-11.fc17                updates-testing  45 k
 ibus-pinyin          x86_64 1.4.0-15.fc17                updates-testing 522 k
 ibus-pinyin-db-android
                      noarch 1.4.0-15.fc17                updates-testing 952 k
 jpackage-utils       x86_64 1.7.5-17.fc17                updates-testing  69 k
 kernel-headers       x86_64 3.3.0-8.fc17                 updates-testing 816 k
 libblkid             x86_64 2.21.1-1.fc17                updates-testing 122 k
 libdrm               x86_64 2.4.33-1.fc17                updates-testing 106 k
 libmount             x86_64 2.21.1-1.fc17                updates-testing 125 k
 libpciaccess         x86_64 0.13-2.fc17                  updates-testing  23 k
 libpinyin            x86_64 0.5.92-1.fc17                updates-testing 138 k
 libpinyin-data       x86_64 0.5.92-1.fc17                updates-testing 8.1 M
 libquvi              x86_64 0.4.1-1.fc17                 updates-testing  34 k
 libquvi-scripts      noarch 0.4.4-1.fc17                 updates-testing  52 k
 libsepol             x86_64 2.1.5-1.fc17                 updates-testing 139 k
 libuuid              x86_64 2.21.1-1.fc17                updates-testing  65 k
 lvm2                 x86_64 2.02.95-6.fc17               updates-testing 608 k
 lvm2-libs            x86_64 2.02.95-6.fc17               updates-testing 512 k
 mesa-dri-drivers     x86_64 8.0.1-9.fc17                 fedora           11 M
 mesa-dri-filesystem  x86_64 8.0.1-9.fc17                 fedora           23 k
 mesa-libGL           x86_64 8.0.1-9.fc17                 fedora          147 k
 mesa-libGLES         x86_64 8.0.1-9.fc17                 fedora           39 k
 mesa-libGLU          x86_64 8.0.1-9.fc17                 fedora          179 k
 openssh              x86_64 5.9p1-21.fc17                updates-testing 272 k
 openssh-clients      x86_64 5.9p1-21.fc17                updates-testing 404 k
 openssh-server       x86_64 5.9p1-21.fc17                updates-testing 320 k
 os-prober            x86_64 1.51-1.fc17                  updates-testing  32 k
 pcsc-lite-libs       x86_64 1.8.3-1.fc17                 updates-testing  31 k
 python-iwlib         x86_64 1.2-1.fc17                   updates-testing  15 k
 rp-pppoe             x86_64 3.10-12.fc17                 updates-testing 103 k
 setroubleshoot-plugins
                      noarch 3.0.36-1.fc17                updates-testing 461 k
 spice-glib           x86_64 0.11-4.fc17                  updates-testing 274 k
 spice-gtk3           x86_64 0.11-4.fc17                  updates-testing  35 k
 util-linux           x86_64 2.21.1-1.fc17                updates-testing 1.4 M
 webkitgtk            x86_64 1.8.0-1.fc17                 updates-testing 8.1 M
 xorg-x11-drv-ati     x86_64 6.14.4-2.20120329gitde2419e55.fc17
                                                          updates-testing 373 k
 xorg-x11-drv-evdev   x86_64 2.7.0-2.fc17                 fedora           40 k
 xorg-x11-drv-vmware  x86_64 12.0.1-2.fc17                updates-testing  68 k
 yum-presto           noarch 0.7.3-1.fc17                 updates-testing  34 k
Removing:
 kernel               x86_64 3.3.0-0.rc7.git0.3.fc17      @updates-testing
                                                                          119 M
Installing for dependencies:
 mesa-libglapi        x86_64 8.0.1-9.fc17                 fedora           49 k
 mesa-libxatracker    x86_64 8.0.1-9.fc17                 fedora          386 k

Transaction Summary
================================================================================
Install   3 Packages (+2 Dependent packages)
Upgrade  58 Packages
Remove    1 Package

Total download size: 74 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
updates-testing/prestodelta                              | 668 kB     00:03     
Processing delta metadata
Traceback (most recent call last):
  File "/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'

Suggesting as Beta blocker as per Alpha criteria:
"The installed system must be able to download and install updates with yum and the default graphical package manager in all release-blocking desktops "
Comment 1 Martin Krizek 2012-04-02 06:14:43 EDT
Info: workaround that worked for me was to run 'yum update yum-presto' and then run 'yum update' itself.

Just curious, did you have updates-testing enabled when running 'yum update'?
Comment 2 Elad Alfassa 2012-04-02 06:23:58 EDT
yes, I have updates-testing enabled. You can see by the output that yum pulls stuff from there.
Comment 3 Jonathan Dieter 2012-04-02 06:35:37 EDT
This is a duplicate of bug 808130.  It's not a release blocker because the buggy yum-presto never made it out of updates-testing.

To update yum-presto to the fixed version, run
yum --disablepresto update yum-presto

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

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