Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2016-02-18 09:25:54 -0500

florian gravatar image

dnf needs-restarting crashes

dnf needs-restarting, the dnf replacement of needs-restarting of yum-utils crashes on my Fedora 22 system.

Here is what happens:

$ sudo dnf needs-restarting
Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/", line 60, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/", line 112, in _main
  File "/usr/lib/python2.7/site-packages/dnf/cli/", line 1095, in run
  File "/usr/lib/python2.7/site-packages/dnf-plugins/", line 199, in run
    for ofile in list_opened_files(uid):
  File "/usr/lib/python2.7/site-packages/dnf-plugins/", line 51, in list_opened_files
    ofile = smap2opened_file(pid, line)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/", line 106, in smap2opened_file
    slash = line.find('/')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 148: ordinal not in range(128)

dnf needs-restarting -u (--useronly) leads to the exact same error.

Any ideas?