Bug 1245872 - dnf group list/mark returning errors
Summary: dnf group list/mark returning errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1249597 1249662 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-23 02:57 UTC by Bruno Roberto Zanuzzo
Modified: 2015-10-13 11:52 UTC (History)
9 users (show)

Fixed In Version: dnf-1.0.2-3.fc23
Clone Of:
Environment:
Last Closed: 2015-08-10 10:01:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruno Roberto Zanuzzo 2015-07-23 02:57:06 UTC
Description of problem:
dnf subcommands group list and mark are returning errors

Version-Release number of selected component (if applicable):
dnf-1.0.2-2.fc23.1.noarch

How reproducible:
Always

Steps to Reproduce:
Just run:
1.1. Mark: #dnf group mark virtualization
or...
1.2. List: #dnf group list

Actual results:
1.1. Mark
[root@localhost ~]# dnf group mark virtualization
Last metadata expiration check performed 0:16:27 ago on Wed Jul 22 23:23:24 2015.
Groups marked installed: Virtualization
[Errno 2] No such file or directory: '/var/lib/dnf/groups.json'

1.2. List
[root@localhost ~]# dnf group list
Last metadata expiration check performed 0:13:38 ago on Wed Jul 22 23:23:24 2015.
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/python3.4/site-packages/dnf/cli/main.py", line 190, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 139, in _main
    cli.run()
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1076, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.4/site-packages/dnf/cli/commands/group.py", line 383, in run
    return self._list(extcmds)
  File "/usr/lib/python3.4/site-packages/dnf/cli/commands/group.py", line 167, in _list
    for group in userlist:
TypeError: 'NoneType' object is not iterable

Expected results:
1.1. just mark group of packages to be installed;
1.2. list group of packages available

Additional info:
Linux localhost.localdomain 4.2.0-0.rc3.git1.1.fc23.x86_64 #1 SMP Tue Jul 21 13:09:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Used image: Fedora-Live-Xfce-x86_64-23-20150722.iso

Comment 1 Parag Nemade 2015-08-03 09:14:37 UTC
I too get this traceback on fresh installed Fedora 23 Alpha TC2 image.

Comment 2 Fedora Update System 2015-08-03 09:59:32 UTC
dnf-1.0.2-3.fc23 has been submitted as an update for Fedora 23.
https://admin.fedoraproject.org/updates/dnf-1.0.2-3.fc23

Comment 3 Michal Luscon 2015-08-03 12:48:45 UTC
*** Bug 1249597 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2015-08-03 16:51:42 UTC
Package dnf-1.0.2-3.fc23:
* should fix your issue,
* was pushed to the Fedora 23 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-1.0.2-3.fc23'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-12677/dnf-1.0.2-3.fc23
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-08-10 10:01:54 UTC
dnf-1.0.2-3.fc23 has been pushed to the Fedora 23 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Michal Luscon 2015-08-11 13:06:38 UTC
*** Bug 1249662 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.