Bug 1088962 - dnf: AttributeError: No such checksum.
Summary: dnf: AttributeError: No such checksum.
Keywords:
Status: CLOSED DUPLICATE of bug 1086073
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-17 14:13 UTC by Jan Synacek
Modified: 2014-04-18 08:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-18 08:01:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1010879 0 unspecified CLOSED [abrt] dnf-0.3.11-2.git54f55e0.fc19: package.py:53:chksum:AttributeError: No such checksum. 2021-02-22 00:41:40 UTC

Internal Links: 1010879

Description Jan Synacek 2014-04-17 14:13:00 UTC
Description of problem:
Runnning 'dnf update' raises AttributeError.

# dnf update
...

Install    3 Packages
Upgrade  176 Packages
Remove     2 Packages

Downloading Packages:
Traceback (most recent call last):
  File "/usr/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 75, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 156, in _main
    return_code, resultmsgs = base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 214, in do_transaction
    self.download_packages(downloadpkgs, self.output.progress, total_cb)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 909, in download_packages
    errors = dnf.repo.download_payloads(payloads, drpm)
  File "/usr/lib/python2.7/site-packages/dnf/repo.py", line 97, in download_payloads
    targets = [pload.librepo_target() for pload in payloads]
  File "/usr/lib/python2.7/site-packages/dnf/repo.py", line 278, in librepo_target
    target_dct.update(self._target_params())
  File "/usr/lib/python2.7/site-packages/dnf/repo.py", line 289, in _target_params
    ctype, csum = pkg.returnIdSum()
  File "/usr/lib/python2.7/site-packages/dnf/package.py", line 174, in returnIdSum
    (chksum_type, chksum) = self.chksum
  File "/usr/lib/python2.7/site-packages/dnf/package.py", line 52, in chksum
    return super(Package, self).chksum
AttributeError: No such checksum.


Version-Release number of selected component (if applicable):
dnf-0.4.20-1.fc21.noarch


Steps to Reproduce:
1. dnf update


Actual results:
dnf raises an exception.


Expected results:
dnf works as expected.


Additional information:
I didn't want to reopen bug 1010879, but it looks like the same problem.

Comment 1 Radek Holy 2014-04-18 08:01:13 UTC
Hello, thank you for the report. We have fixed it recently.

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


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