Bug 552178
| Summary: | Yum fails to upgrade rawhide | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Kabelac <zkabelac> |
| Component: | yum | Assignee: | Seth Vidal <skvidal> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | ffesti, james.antill, maxamillion, pmatilai, tim.lauridsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-01-06 15:27:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
After some 'iterative' upgrade it looks like the problem is related to gnash upgrade.
Dependencies Resolved
============================================================================
Package Arch Version Repository Size
============================================================================
Updating:
gnash x86_64 1:0.8.6-9.fc13 development 2.6 M
Updating for dependencies:
gnash-klash x86_64 1:0.8.6-9.fc13 development 228 k
gnash-plugin x86_64 1:0.8.6-9.fc13 development 28 k
Transaction Summary
============================================================================
Install 0 Package(s)
Upgrade 3 Package(s)
Total size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
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 244, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 192, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 425, in doTransaction
if msg.startswith('rpmlib('):
AttributeError: 'rpm.prob' object has no attribute 'startswith'
rpm -qa | grep gnash
gnash-klash-0.9.0-0.6.20090809bzr11401.fc12.x86_64
gnash-plugin-0.9.0-0.6.20090809bzr11401.fc12.i686
gnash-0.9.0-0.6.20090809bzr11401.fc12.x86_64
This is due to rpm-python returing problem objects instead of just strings now. Something like this should work for both older and new bindings (but untested):
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -4158,7 +4158,7 @@ class YumBase(depsolve.Depsolve):
self.populateTs(test=1)
self.ts.check()
for prob in self.ts.problems():
- results.append(prob)
+ results.append('%s' % prob)
self.dsCallback = dscb
return results
Sorry, meant to have fixed this before the latest rawhide update ... but forgot about it :o. Being reviewed for upstream now. Well not really sure whether I should reopen this bugzilla - but I still have the exact same problem. Installed: yum-3.2.25-8.fc13.noarch python-2.6.4-4.fc13.x86_64 - with this version I still get today the problem from comment 1. When I modify /usr/lib/python2.6/site-packages/yum/__init__.py according to comment 2 it's different but still not perfect. With my default Czech locales I get this error: CHYBA v rpm_check_debug vs depsolve: 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 252, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 190, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 438, in doTransaction print to_utf8(msg) File "/usr/lib64/python2.6/codecs.py", line 351, in write data, consumed = self.encode(object, self.errors) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 46: ordinal not in range(128) (Note I have another bugzilla opened for locales problem: Bug 543410 - so is my locales with python broken - or what could be the problem here ?) With LANG=C I finally get this error: ERROR with rpm_check_debug vs depsolve: gnash = 0.9.0-0.6.20090809bzr11401.fc12 is needed by (installed) gnash-plugin-0.9.0-0.6.20090809bzr11401.fc12.i686 Please report this error in http://yum.baseurl.org/report You could try running: rpm -Va --nofiles --nodigest |
Description of problem: Today upgrade of rawhide via yum returns this traceback: Transaction Summary ================================================================================ Install 8 Package(s) Upgrade 348 Package(s) Remove 2 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Total size: 708 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug 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 244, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 192, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 425, in doTransaction if msg.startswith('rpmlib('): AttributeError: 'rpm.prob' object has no attribute 'startswith' I've even upgraded to latest rpm and without any help. I'll probably do upgrade manually. Version-Release number of selected component (if applicable): rpm-4.8.0-0.beta1.4.x86_64 yum-3.2.25-7.fc13.noarch How reproducible: yum upgrade Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: