Hello I am getting this error trying to run dnf: [root@sesshomaru wmoreno]# rpm -q dnf dnf-1.1.1-1.fc22.noarch [root@sesshomaru wmoreno]# dnf Traceback (most recent call last): File "/usr/bin/dnf", line 36, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 195, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 122, in _main cli.configure(map(ucd, args)) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1007, in configure self.optparser.usage = self.optparser.get_usage() File "/usr/lib/python2.7/site-packages/dnf/cli/option_parser.py", line 273, in get_usage usage += "%-25s %s\n" % (name, summary) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 40: ordinal not in range(128)
Thanks for the report.
Hi, Three systems that got upgraded with latest updates recently: Instalando: dnf-plugin-system-upgrade noarch 0.4.1-1.fc22 updates 44 k reemplazando fedup.noarch 0.9.2-1.fc22 python2-dnf-plugin-system-upgrade noarch 0.4.1-1.fc22 updates 25 k Actualizando: icoutils x86_64 0.31.0-8.fc22 updates 85 k python-ipython-console noarch 2.4.1-8.fc22 updates 1.5 M Started to show this behaviour: [root@Deneb ~]# dnf -y clean expire-cache; dnf -y upgrade Repository kzak-mutt-kz is listed more than once in the configuration Traceback (most recent call last): File "/usr/bin/dnf", line 36, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 198, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 117, in _main cli.configure(map(ucd, args)) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1007, in configure self.optparser.usage = self.optparser.get_usage() File "/usr/lib/python2.7/site-packages/dnf/cli/option_parser.py", line 273, in get_usage usage += "%-25s %s\n" % (name, summary) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 40: ordinal not in range(128) Which breaks DNF
Is there any test package for this to validate the fix and apply it?
In my case, setting LANG=C allows the command to run, so apparently dnf is launching some code and the output it gets comes in local lang (es_ES.utf8) which breaks it.
Same case as Pablo, setting LANG=C allows run. Happens after this update: cat /var/log/dnf.log _Extract_: Sep 18 18:37:20 DEBUG ---> Paquete dnf-plugin-system-upgrade.noarch 0.4.1-1.fc22 será instalado Sep 18 18:37:20 DEBUG ---> Paquete fedup.noarch 0.9.2-1.fc22 será obsoleto Sep 18 18:37:20 DEBUG ---> Paquete python2-dnf-plugin-system-upgrade.noarch 0.4.1-1.fc22 será instalado Sep 18 18:37:20 INFO Dependencias resueltas. Sep 18 18:37:20 DEBUG langpacks: enabled languages are ['es_ES'] Sep 18 18:37:20 INFO ======================================================================================================================================= Paquete Arquitectura Versión Repositorio Tamaño ======================================================================================================================================= Instalando: dnf-plugin-system-upgrade noarch 0.4.1-1.fc22 updates 44 k reemplazando fedup.noarch 0.9.2-1.fc22 python2-dnf-plugin-system-upgrade noarch 0.4.1-1.fc22 updates 25 k Sep 18 18:38:09 INFO Instalado: dnf-plugin-system-upgrade.noarch 0.4.1-1.fc22 python2-dnf-plugin-system-upgrade.noarch 0.4.1-1.fc22 Sep 18 18:38:09 DEBUG Completion plugin: Generating completion cache... Sep 18 18:38:09 INFO ¡Listo! Sep 18 18:38:09 DEBUG_2 Cleaning up. Sep 18 18:38:09 DEBUG_2 /var/cache/dnf/updates-d28e3be95240972f/packages/python2-dnf-plugin-system-upgrade-0.4.1-1.fc22.noarch.rpm eliminado Sep 18 18:38:09 DEBUG_2 /var/cache/dnf/updates-d28e3be95240972f/packages/dnf-plugin-system-upgrade-0.4.1-1.fc22.noarch.rpm eliminado
*** Bug 1264587 has been marked as a duplicate of this bug. ***
Fixed in the upstream: https://github.com/rpm-software-management/dnf/commit/9e8638d59ff2a496f3bb46cd96a4d2aa935230ff Filled issue in system-upgrade: https://github.com/rpm-software-management/dnf-plugin-system-upgrade/issues/17
Pablo Iranzo Gómez: dnf-1.1.2
hawkey-0.6.1-1.fc23 dnf-plugins-core-0.1.12-2.fc23 dnf-1.1.2-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16428
dnf-plugins-core-0.1.12-2.fc22 hawkey-0.6.1-1.fc22 dnf-1.1.2-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16429
Another user experienced a similar problem: dnf upgrade reporter: libreport-2.6.2 cmdline: /usr/bin/python -OO /bin/dnf upgrade -y dso_list: python-dnf-1.1.1-2.fc22.noarch event_log: 2015-09-22-20:27:06> ('report_uReport' completado con éxito) executable: /bin/dnf kernel: 4.1.6-201.fc22.x86_64 package: dnf-1.1.1-2.fc22 reason: option_parser.py:273:get_usage:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 40: ordinal not in range(128) runlevel: N 5 type: Python uid: 0
dnf-1.1.2-2.fc23, dnf-plugins-core-0.1.12-2.fc23, hawkey-0.6.1-1.fc23 has been pushed to the Fedora 23 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 'dnf --enablerepo=updates-testing update dnf-plugins-core dnf hawkey' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16428
dnf-1.1.2-2.fc22, dnf-plugins-core-0.1.12-2.fc22, hawkey-0.6.1-1.fc22 has been pushed to the Fedora 22 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 'dnf --enablerepo=updates-testing update dnf-plugins-core dnf hawkey' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16429
Fix can't be applied: [...]$ su -c 'dnf --enablerepo=updates-testing update dnf-plugins-core dnf hawkey' Contraseña: Traceback (most recent call last): File "/usr/bin/dnf", line 36, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 198, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 117, in _main cli.configure(map(ucd, args)) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1007, in configure self.optparser.usage = self.optparser.get_usage() File "/usr/lib/python2.7/site-packages/dnf/cli/option_parser.py", line 273, in get_usage usage += "%-25s %s\n" % (name, summary) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 40: ordinal not in range(128) ............. And if I run: sudo LANG=C /usr/bin/dnf -v --enablerepo=updates-testing update dnf-plugins-core dnf hawkey Getting: ... --> Starting dependency resolution ---> Package hawkey.x86_64 0.6.0-1.fc22 will be upgraded ---> Package hawkey.x86_64 0.6.1-1.fc22 will be an upgrade ---> Package python3-hawkey.x86_64 0.6.0-1.fc22 will be upgraded ---> Package python3-hawkey.x86_64 0.6.1-1.fc22 will be an upgrade ---> Package python-hawkey.x86_64 0.6.0-1.fc22 will be upgraded ---> Package python-hawkey.x86_64 0.6.1-1.fc22 will be an upgrade --> Finished dependency resolution Dependencies resolved. langpacks: enabled languages are [u'en', 'es_ES'] ======================================================================================================================================= Package Arch Version Repository Size ======================================================================================================================================= Upgrading: hawkey x86_64 0.6.1-1.fc22 updates-testing 91 k python-hawkey x86_64 0.6.1-1.fc22 updates-testing 77 k python3-hawkey x86_64 0.6.1-1.fc22 updates-testing 72 k Skipping packages with conflicts: (add '--best --allowerasing' to command line to force their upgrade): dnf noarch 1.1.2-2.fc22 updates-testing 260 k dnf-conf noarch 1.1.2-2.fc22 updates-testing 87 k dnf-plugins-core noarch 0.1.12-2.fc22 updates-testing 35 k dnf-yum noarch 1.1.2-2.fc22 updates-testing 80 k python-dnf-plugins-core noarch 0.1.12-2.fc22 updates-testing 84 k python2-dnf noarch 1.1.2-2.fc22 updates-testing 445 k python3-dnf noarch 1.1.2-2.fc22 updates-testing 450 k Transaction Summary ======================================================================================================================================= Upgrade 3 Packages I canceled this and tried: [...]$ sudo LANG=C /usr/bin/dnf -v --best --allowerasing --enablerepo=updates-testing update dnf-plugins-core dnf hawkey Getting: --> Starting dependency resolution ---> Package python2-dnf.noarch 1.1.2-2.fc22 will be installed ---> Package dnf.noarch 1.1.1-2.fc22 will be upgraded ---> Package dnf.noarch 1.1.2-2.fc22 will be an upgrade ---> Package dnf-plugins-core.noarch 0.1.11-1.fc22 will be upgraded ---> Package dnf-plugins-core.noarch 0.1.12-2.fc22 will be an upgrade ---> Package hawkey.x86_64 0.6.0-1.fc22 will be upgraded ---> Package hawkey.x86_64 0.6.1-1.fc22 will be an upgrade ---> Package python-dnf-plugins-core.noarch 0.1.11-1.fc22 will be upgraded ---> Package python-dnf-plugins-core.noarch 0.1.12-2.fc22 will be an upgrade ---> Package dnf-conf.noarch 1.1.1-2.fc22 will be upgraded ---> Package dnf-conf.noarch 1.1.2-2.fc22 will be an upgrade ---> Package python-hawkey.x86_64 0.6.0-1.fc22 will be upgraded ---> Package python-hawkey.x86_64 0.6.1-1.fc22 will be an upgrade ---> Package dnf-yum.noarch 1.1.1-2.fc22 will be upgraded ---> Package dnf-yum.noarch 1.1.2-2.fc22 will be an upgrade ---> Package python3-hawkey.x86_64 0.6.0-1.fc22 will be upgraded ---> Package python3-hawkey.x86_64 0.6.1-1.fc22 will be an upgrade ---> Package python3-dnf.noarch 1.1.1-2.fc22 will be upgraded ---> Package python3-dnf.noarch 1.1.2-2.fc22 will be an upgrade ---> Package python-dnf.noarch 1.1.1-2.fc22 will be erased --> Finished dependency resolution Dependencies resolved. langpacks: enabled languages are [u'en', 'es_ES'] ======================================================================================================================================= Package Arch Version Repository Size ======================================================================================================================================= Installing: python2-dnf noarch 1.1.2-2.fc22 updates-testing 445 k Upgrading: dnf noarch 1.1.2-2.fc22 updates-testing 260 k dnf-conf noarch 1.1.2-2.fc22 updates-testing 87 k dnf-plugins-core noarch 0.1.12-2.fc22 updates-testing 35 k dnf-yum noarch 1.1.2-2.fc22 updates-testing 80 k hawkey x86_64 0.6.1-1.fc22 updates-testing 91 k python-dnf-plugins-core noarch 0.1.12-2.fc22 updates-testing 84 k python-hawkey x86_64 0.6.1-1.fc22 updates-testing 77 k python3-dnf noarch 1.1.2-2.fc22 updates-testing 450 k python3-hawkey x86_64 0.6.1-1.fc22 updates-testing 72 k Removing: python-dnf noarch 1.1.1-2.fc22 @System 1.9 M Transaction Summary ======================================================================================================================================= Install 1 Package Upgrade 9 Packages Remove 1 Package Total download size: 1.6 M And finally my system is working properly. Thank you !.
*** Bug 1265788 has been marked as a duplicate of this bug. ***
*** Bug 1266159 has been marked as a duplicate of this bug. ***
dnf-plugins-core-0.1.12-3.fc23 hawkey-0.6.1-2.fc23 dnf-1.1.2-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-38e69423f3
dnf-plugins-core-0.1.12-3.fc22 hawkey-0.6.1-2.fc22 dnf-1.1.2-4.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-3528c659e4
*** Bug 1266313 has been marked as a duplicate of this bug. ***
dnf-1.1.2-4.fc22, dnf-plugins-core-0.1.12-3.fc22, hawkey-0.6.1-2.fc22 has been pushed to the Fedora 22 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 'dnf --enablerepo=updates-testing update hawkey dnf-plugins-core dnf' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-3528c659e4
dnf-1.1.2-4.fc23, dnf-plugins-core-0.1.12-3.fc23, hawkey-0.6.1-2.fc23 has been pushed to the Fedora 23 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 'dnf --enablerepo=updates-testing update hawkey dnf-plugins-core dnf' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-38e69423f3
dnf-1.1.2-4.fc23, dnf-plugins-core-0.1.12-3.fc23, hawkey-0.6.1-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
dnf-1.1.2-4.fc22, dnf-plugins-core-0.1.12-3.fc22, hawkey-0.6.1-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1274986 has been marked as a duplicate of this bug. ***
*** Bug 1278233 has been marked as a duplicate of this bug. ***
This bug is currently preventing a clean upgrade from fc21 to fc22. # LANG=C dnf system-upgrade download --releasever=22 # LANG=C dnf system-upgrade reboot works but will cause a reboot loop because the system upgrade will crash with this bug. A quick fix to get out of the reboot loop is to boot with the kernel parameter: systemd.unit=multi-user.target see also: https://github.com/rpm-software-management/dnf-plugin-system-upgrade#in-case-of-boot-problems the workarount to make the upgrade work is # echo $LANG remember this! and set it temporarily to: # localectl set-locale LANG=C change it back afterwards # localectl set-locale LANG=remembered.UTF-8