Description of problem: Installed fresh Fedora 21 virtual machine. Tried to install packages using 'dnf groupinstall "GNOME Desktop"' command. abrt occurred. Version-Release number of selected component: dnf-0.6.0-1.fc21 Additional info: reporter: libreport-2.2.3 cmdline: /usr/bin/python -OO /bin/dnf groupinstall 'GNOME Desktop' executable: /bin/dnf kernel: 3.16.1-300.fc21.x86_64 runlevel: 3 5 type: Python uid: 0 Truncated backtrace: persistor.py:60:_diff_dcts:AttributeError: 'NoneType' object has no attribute 'keys' Traceback (most recent call last): File "/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 182, 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 141, in _main ret = resolving(cli, base) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving base.do_transaction() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 185, in do_transaction grp_diff = self._groups_diff() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 145, in _groups_diff return self.group_persistor.diff() File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 273, in diff return _GroupsDiff(self._original, self.db) File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 170, in __init__ self.added, self.removed = _diff_dcts(db_old, db_new) File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 60, in _diff_dcts keys1 = set(dct1.keys()) AttributeError: 'NoneType' object has no attribute 'keys' Local variables in innermost frame: dct1: None removed: {} dct2: <dnf.persistor.ClonableDict object at 0x7fd9faf1c090> added: {}
Created attachment 927655 [details] File: backtrace
Created attachment 927656 [details] File: environ
Looks like I was not using above command as root user and also not having dnf-plugins-core installed when this abrt happened.
Hi, thanks for the report. We'll take a look.
Just ran into this: [asinha@localhost ~]$ sudo dnf install @java Dependencies resolved. Traceback (most recent call last): File "/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 182, 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 141, in _main ret = resolving(cli, base) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving base.do_transaction() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 185, in do_transaction grp_diff = self._groups_diff() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 145, in _groups_diff return self.group_persistor.diff() File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 273, in diff return _GroupsDiff(self._original, self.db) File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 170, in __init__ self.added, self.removed = _diff_dcts(db_old, db_new) File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 60, in _diff_dcts keys1 = set(dct1.keys()) AttributeError: 'NoneType' object has no attribute 'keys' [asinha@localhost ~]$ dnf --version 0.6.0 Installed: dnf-0:0.6.0-99.1121.20140822gita896404.fc21.noarch at 2014-08-24 01:44 Built : at 2014-08-22 12:44 Installed: rpm-0:4.12.0-0.beta1.5.fc21.x86_64 at 2014-08-22 16:43 Built : Fedora Project at 2014-08-20 12:30 [asinha@localhost ~]$ Seems like one can't install groups using dnf at the moment. Updating severity.
Another user experienced a similar problem: Trying to install a group. By the way, note how "dnf group list" shows localized group names, but "dnf group install <group>" wants English names! reporter: libreport-2.2.3 cmdline: /usr/bin/python -OO /usr/bin/dnf group install 'GNOME Desktop Environment' executable: /usr/bin/dnf kernel: 3.16.1-300.fc21.x86_64 package: dnf-0.6.0-1.fc21 reason: persistor.py:60:_diff_dcts:AttributeError: 'NoneType' object has no attribute 'keys' runlevel: N 5 type: Python uid: 0
Reproduced.
Fixed by 031f95b on master.
Thaks Ales. I'll confirm it when the fix hits the nightly repo.
*** Bug 1134572 has been marked as a duplicate of this bug. ***
Seems fixed. I get a list of packages in the group, and then it tries to install whatever isn't installed yet. dnf-0.6.1-99.1134.20140828git883a271.fc21.noarch Thanks. Warm regards, Ankur
dnf-0.6.1-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/dnf-0.6.1-1.fc21
dnf-0.6.1-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1145820 has been marked as a duplicate of this bug. ***