Hide Forgot
Description of problem: I have a freshly updated rawhide machine (as of today) and executing this command results in a traceback. Version-Release number of selected component (if applicable): dnf-0.4.13-2.fc21.noarch Steps to Reproduce: 1. on a rawhide machine, execute: # dnf group remove "GNOME Desktop" 2. observer Actual results: # dnf group remove "GNOME Desktop" Traceback (most recent call last): File "/usr/bin/dnf", line 35, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 124, in _main cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1454, in run return self.command.run(self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 724, in run return self.base.removeGroups(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 922, in removeGroups cnt += self.group_remove(group_string) File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1374, in group_remove raise dnf.exceptions.CompsError(_("No Group named %s exists") % to_unicode(grpid)) NameError: global name 'grpid' is not defined Expected results: Remove the packages that are specified by the group, or say that "group does not exists" or something similar.
Additional info: # yum group remove "GNOME Desktop" ... No group named GNOME Desktop exists ...
Did "dnf group list" show that "GNOME Desktop" is installed environment group? Just my thought that might be dnf has not got the similar fix that yum got. dnf is not showing Installed environment groups. When I installed some environments fully and tried to install them again I got Error: No packages in any requested group available to install or upgrade.
I'm not sure, I already uninstalled a lot of packages manually. However, "dnf group list" shows "GNOME Desktop" in Available environment groups.
I just quickly grep into source code for string "Installed environment groups" and found no results. I think that coding part yet not added in dnf to show installed environments. Also, if you try to remove any installed group from the "dnf group list" output then it is not giving any traceback.
Looking.
The traceback is fixed in 00f88e4. Note that "GNOME Desktop" is a group and not an environment and environment support is sort of iffy in DNF. The proper fix awaits overhaul to groups-as-objects.
(In reply to Ales Kozumplik from comment #6) > Note that "GNOME Desktop" is a group and not an environment and environment *is an environment and not a group*. it's been a long today.
*** Bug 1067136 has been marked as a duplicate of this bug. ***
It's time to add the groups-as-objects support and fix the environments.
Fixed by cf1d32b.
dnf-0.5.1-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/dnf-0.5.1-1.fc20
Package dnf-0.5.1-1.fc20, hawkey-0.4.14-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-0.5.1-1.fc20 hawkey-0.4.14-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-5937/hawkey-0.4.14-1.fc20,dnf-0.5.1-1.fc20 then log in and leave karma (feedback).
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20
Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-6789/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 then log in and leave karma (feedback).
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.