Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to fix a broken dnf

Probably after an interruped dnf update, now I ended up with a broken dnf. Any command on dnf produces the following:

Traceback (most recent call last):
  File "/usr/bin/dnf", line 57, in <module>
    from dnf.cli import main
  File "/usr/lib/python3.6/site-packages/dnf/__init__.py", line 31, in <module>
    import dnf.base
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 31, in <module>
    from dnf.module.repo_module_dict import RepoModuleDict
  File "/usr/lib/python3.6/site-packages/dnf/module/repo_module_dict.py", line 22, in <module>
    import hawkey
  File "/usr/lib64/python3.6/site-packages/hawkey/__init__.py", line 24, in <module>
    from . import _hawkey
ImportError: /lib64/libzck.so.1: file too short

This can be a problem with dnf, the hawkey module or the zck library.

How can I fix this broken dnf?