Bug 600677 - invalid literal for int() with base 10: 'ALL'
Summary: invalid literal for int() with base 10: 'ALL'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 603221 605658 611918 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-05 15:20 UTC by John Reiser
Modified: 2014-01-21 23:15 UTC (History)
14 users (show)

Fixed In Version: PackageKit-0.6.6-1.fc13
Clone Of:
Environment:
Last Closed: 2010-07-07 17:44:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2010-06-05 15:20:04 UTC
Description of problem: PackageKit raises a graphical error dialog whose first detail is "invalid literal for int() with base 10: 'ALL'"


Version-Release number of selected component (if applicable):
yum-3.2.27-14.fc14.noarch
PackageKit-0.6.5-1.fc14.x86_64

How reproducible: unknown


Steps to Reproduce:
1. yum --disablerepo InstallMedia install liveusb-creator
2.
3.
  
Actual results: Graphical error dialog from PackageKit after yum install finishes.  "More details" has:
Error Type: <type 'exceptions.ValueError'>
Error Value: invalid literal for int() with base 10: 'ALL'
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3398, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3395, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 723, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 610, in dispatch_command
    self.get_updates(filters)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2547, in get_updates
    self._check_init()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2971, in _check_init
    root = self.yumbase._media_find_root(repo.mediaid)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3301, in _media_find_root
    disc_number_tmp = int(lines[3].strip())


Expected results: No error.


Additional info:

Comment 1 John Reiser 2010-06-05 15:33:39 UTC
Same error for:
# livecd-iso-to-disk ./Fedora-14-x86_64-DVD.iso /dev/sde1
Command not found. The transaction failed: internal-error, Error Type: <type 'exceptions.ValueError'>
Error Value: invalid literal for int() with base 10: 'ALL'
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3398, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3395, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 723, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 662, in dispatch_command
    self.search_file(options, values)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 726, in search_file
    self._check_init(lazy_cache=True)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2971, in _check_init
    root = self.yumbase._media_find_root(repo.mediaid)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3301, in _media_find_root
    disc_number_tmp = int(lines[3].strip())

Comment 2 Richard Hughes 2010-06-05 21:23:51 UTC
Can you get the output of:

cat /media/*/.discinfo

Thanks.

Comment 3 John Reiser 2010-06-05 22:15:32 UTC
# ls -l /media/*/.discinfo
-rw-r--r--. 1 jreiser jreiser 39 Jun  5 07:46 /media/Fedora 14 x86_64 DVD/.discinfo
# cat /media/*/.discinfo
1275749172.273183
Fedora 14
x86_64
ALL
# df
/dev/sde               2429304   2429304         0 100% /media/Fedora 14 x86_64 DVD
# 

Note that /dev/sde is actually a USB2.0 flash memory device which previously was on the receiving end of a "dd if=./Fedora-14-x86_64-DVD.iso of=/dev/sde" which I ran after the livecd-iso-to-disk failed.  In other words, the initial state is not the same, but I still see the error upon running "livecd-iso-to-disk ./Fedora-14-x86_64-DVD.iso /dev/sde1".  I hope this helps.

Comment 4 Richard Hughes 2010-06-06 21:28:39 UTC
Could you try rebuilding and installing PackageKit from http://people.freedesktop.org/~hughsient/fedora/13/SRPMS/ please. Thanks.

Comment 5 John Reiser 2010-06-06 23:16:42 UTC
Rebuilding produced PackageKit-0.6.6-0.1490.20100605git.fc14.x86_64.rpm plus 15 related PackageKit-* .rpms.  After "yum --disablerepo InstallMedia --nogpg localupdate PackageKit-*" then "livecd-iso-to-disk ./Fedora-14-x86_64-DVD.iso /dev/sde1" worked without complaint.  Thank you.

Comment 6 Richard Hughes 2010-06-18 14:33:59 UTC
*** Bug 605658 has been marked as a duplicate of this bug. ***

Comment 7 Richard Hughes 2010-06-18 14:36:34 UTC
*** Bug 603221 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2010-07-01 11:59:54 UTC
PackageKit-0.6.6-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/PackageKit-0.6.6-1.fc13

Comment 9 Fedora Update System 2010-07-01 19:00:54 UTC
PackageKit-0.6.6-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update PackageKit'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/PackageKit-0.6.6-1.fc13

Comment 10 Richard Hughes 2010-07-07 11:50:09 UTC
*** Bug 611918 has been marked as a duplicate of this bug. ***

Comment 11 Fedora Update System 2010-07-07 17:44:19 UTC
PackageKit-0.6.6-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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