Sejak rilis Fedora 22 saya mengaktifkan repository update-testing, kemarin setelah upgrade/update dnf tidak bisa digunakan, selalu muncul error

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 185, 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 115, in _main
    cli.configure(map(ucd, args))
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 984, in configure
    self.base.plugins.run_init(self.base, self)
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 104, in run_init
    plugin = p_cls(base, cli)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/langpacks.py", line 692, in __init__
    conflist = config.get('main', 'langpack_locales')
  File "/usr/lib/python2.7/site-packages/iniparse/compat.py", line 222, in get
    value = RawConfigParser.get(self, section, option, vars)
  File "/usr/lib/python2.7/site-packages/iniparse/compat.py", line 125, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option u'langpack_locales' in section: u'main'

Solusi

Solusi atas masalah di atas adalah downgrade dnf-langpacks

Download dnf-langpacks stable dari koji

wget https://kojipkgs.fedoraproject.org//packages/dnf-langpacks/0.10.0/1.fc22/noarch/dnf-langpacks-0.10.0-1.fc22.noarch.rpm

downgrade dnf-langpacks

su -c "rpm -Uvh --oldpackage dnf-langpacks-0.10.0-1.fc22.noarch.rpm"
## output 
Preparing...                          ################################# [100%]
Updating / installing...
   1:dnf-langpacks-0.10.0-1.fc22      ################################# [ 50%]
Cleaning up / removing...
   2:dnf-langpacks-0.11.0-1.fc22      ################################# [100%]

Fixed!

Leave a comment

Your email address will not be published. Required fields are marked *