Тема: [Fedora][Server][DNF] Не працює system_upgrade
Доброго дня
Вирішив оновити Fedora Server 21 до Fedora Server 22.
Але спіткала проблема.
При спробі оновити за допомогою dnf чи взагалі будь-що зробити через dnf отримую помилку, ось вона сама з /var/log/dnf.log:
Jan 12 15:22:13 INFO --- logging initialized ---
Jan 12 15:22:13 DDEBUG timer: config: 6 ms
Jan 12 15:22:13 DEBUG cachedir: /var/cache/dnf
Jan 12 15:22:13 ERROR Failed loading plugin: system_upgrade
Jan 12 15:22:13 SUBDEBUG
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 124, in import_modules
module = importlib.import_module(name)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/lib/python2.7/site-packages/dnf-plugins/system_upgrade.py", line 348, in <module>
class SystemUpgradeCommand(dnf.cli.Command):
File "/usr/lib/python2.7/site-packages/dnf-plugins/system_upgrade.py", line 354, in SystemUpgradeCommand
_("OPTIONS"), _("VERSION"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
Jan 12 15:22:13 DEBUG Loaded plugins: system-upgrade
Jan 12 15:22:13 DDEBUG Cleaning up.
Знаю що згідно інструкції треба використовувати fedup, але там замість нього:
[root@localhost ~]# cat /usr/bin/fedup
#!/bin/sh
# wrapper script to call `dnf system-upgrade` instead
# fix --network -> download --releasever, since we can't do that in the plugin
set -- "$@" END_OF_OPTIONS
while [ "$1" != END_OF_OPTIONS ]; do
case "$1" in
--network*) set -- "$@" download "${1/--network/--releasever}" ;;
*) set -- "$@" "$1" ;;
esac
shift
done
shift
exec /usr/bin/dnf system-upgrade "$@"
Тому результат спроб той самий.