Bug 928859 - “yum groupinstall kde-desktop-environment” prints an error message
Summary: “yum groupinstall kde-desktop-environment” prints an error message
Keywords:
Status: CLOSED DUPLICATE of bug 955236
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 19
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: James Antill
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: RejectedBlocker
: 949125 951078 954118 960406 962044 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-28 15:22 UTC by Mike FABIAN
Modified: 2013-06-03 15:28 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-03 07:20:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
/var/log/yum.log (39.94 KB, text/plain)
2013-03-28 15:35 UTC, Mike FABIAN
no flags Details
console output of "yum groupinstall ¡Xfce desktop' " on a minimal F19a TC5 updared guest (976.38 KB, text/plain)
2013-04-06 19:01 UTC, Reartes Guillermo
no flags Details

Description Mike FABIAN 2013-03-28 15:22:40 UTC
I installed Fedora-19-Alpha-TC2-x86_64-DVD.iso in qemu.

qemu command line used:

ionice -c 3 qemu-kvm -enable-kvm -m 2048M -smp 1 -drive file=./Fedora-19-Alpha-TC2-x86_64-DVD.iso.qcow2,index=0,media=disk,cache=unsafe -localtime -serial file:/tmp/qemu-Fedora-19-Alpha-TC2-x86_64-DVD.iso.qcow2-output.log -name Fedora-19-Alpha-TC2-x86_64-DVD.iso.qcow2 -cdrom /local/mfabian/iso/Fedora-19-Alpha-TC2/Fedora-19-Alpha-TC2-x86_64-DVD.iso -boot c -vga std -display vnc=:4 -net nic -net user,hostname=Fedora-19-Alpha-TC2-x86_64-DVD.iso.qcow2,hostfwd=tcp::5560-:22 -monitor stdio -usb

Language used for the installation was Japanese (not relevant, I guess).

Gnome Desktop (the default) was installed.

After the installation finished, I did a “sudo yum update”
and then tried to install KDE with:

“sudo yum groupinstall kde-desktop-environment”

It apparently installed the KDE packages correctly, but at the end 
yum printed the following error message:

...
  検証中                  : kde-print-manager-4.10.1-1.fc19.x86_64                                      271/274
  検証中                  : okular-4.10.1-1.fc19.x86_64                                                 272/274
  検証中                  : perl-Net-HTTP-6.06-1.fc19.noarch                                            273/274
  検証中                  : appmenu-qt-0.2.6-3.fc19.x86_64                                              274/274
Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 219, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 697, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1763, in runTransaction
    self.igroups.save()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 148, in save
    self._write_grp_grps()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 175, in _write_grp_grps
    if self.groups[grpname].environment == evgrp.evgid:
KeyError: 'kde-apps'
[mfabian@Fedora-19-Alpha-TC2-x86_64-DVD ~]$

Comment 1 Mike FABIAN 2013-03-28 15:28:59 UTC
Same problem when installing xfce-desktop-environment:

...
  Verifying  : xfwm4-themes-4.10.0-3.fc19.noarch                                                                                                                                                           125/127 
  Verifying  : xfwm4-theme-nodoka-0.2-5.fc19.noarch                                                                                                                                                        126/127 
  Verifying  : catfish-0.4.0.2-2.fc19.1.noarch                                                                                                                                                             127/127 
Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 219, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 697, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1763, in runTransaction
    self.igroups.save()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 148, in save
    self._write_grp_grps()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 175, in _write_grp_grps
    if self.groups[grpname].environment == evgrp.evgid:
KeyError: 'xfce-extra-plugins'
[mfabian@Fedora-19-Alpha-TC2-x86_64-DVD ~]$

Comment 2 Mike FABIAN 2013-03-28 15:29:44 UTC
[mfabian@Fedora-19-Alpha-TC2-x86_64-DVD ~]$ LANG=en_US.UTF-8 sudo yum groupinstall xfce-desktop-environment kde-desktop-environment
[sudo] password for mfabian: 
Loaded plugins: langpacks, refresh-packagekit
Warning: environment xfce-desktop-environment does not exist.
Warning: environment kde-desktop-environment does not exist.
No packages in any requested group available to install or update
[mfabian@Fedora-19-Alpha-TC2-x86_64-DVD ~]$

Comment 3 Mike FABIAN 2013-03-28 15:32:52 UTC
Also same problem with lxde-desktop-enviroment:

...
  Verifying  : lxappearance-obconf-0.2.0-2.fc19.x86_64                                                                                                                                                       34/36 
  Verifying  : xorg-x11-resutils-7.5-7.fc19.x86_64                                                                                                                                                           35/36 
  Verifying  : perl-File-MimeInfo-0.16-4.fc19.noarch                                                                                                                                                         36/36 
Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 219, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 697, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1763, in runTransaction
    self.igroups.save()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 148, in save
    self._write_grp_grps()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 175, in _write_grp_grps
    if self.groups[grpname].environment == evgrp.evgid:
KeyError: 'lxde-apps'
[mfabian@Fedora-19-Alpha-TC2-x86_64-DVD ~]$ LANG=en_US.UTF-8 sudo yum groupinstall lxde-desktop-environment 
Loaded plugins: langpacks, refresh-packagekit
Warning: environment lxde-desktop-environment does not exist.
No packages in any requested group available to install or update
[mfabian@Fedora-19-Alpha-TC2-x86_64-DVD ~]$

Comment 4 Mike FABIAN 2013-03-28 15:35:08 UTC
Created attachment 717708 [details]
/var/log/yum.log

Comment 5 Jan Zeleny 2013-04-05 06:28:23 UTC
Reassigning to James, as this seems to be related to the code in yum groups that he changed lately.

Comment 6 Reartes Guillermo 2013-04-06 19:01:17 UTC
Created attachment 732179 [details]
console output of "yum groupinstall ¡Xfce desktop' " on a minimal F19a TC5 updared guest

Me too, doing a groupinstall 'Xfce Desktop' from a minimal install.
F19a TC5, updated.

  Verifying  : paps-0.6.8-24.fc19.x86_64                       842/844 
  Verifying  : 1:NetworkManager-vpnc-.9.3.997-4.fc19.x86_64    843/844 
  Verifying  : libhangul-0.1.0-6.fc19.x86_64                   844/844 
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 219, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 697, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1763, in runTransaction
    self.igroups.save()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 148, in save
    self._write_grp_grps()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 175, in _write_grp_grps
    if self.groups[grpname].environment == evgrp.evgid:
KeyError: 'xfce-extra-plugins'
[root@localhost ~]

Comment 7 Reartes Guillermo 2013-04-06 20:00:46 UTC
I tested these, from a minimal-only F19a TC5 (updated) installation:

* Xfce Destkop

See previous comment.

* Web Server

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 219, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 697, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1763, in runTransaction
    self.igroups.save()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 148, in save
    self._write_grp_grps()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 175, in _write_grp_grps
    if self.groups[grpname].environment == evgrp.evgid:
KeyError: 'haproxy'

* Infrastructure Server

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 219, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 697, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1763, in runTransaction
    self.igroups.save()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 148, in save
    self._write_grp_grps()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 175, in _write_grp_grps
    if self.groups[grpname].environment == evgrp.evgid:
KeyError: 'dns-server'

Comment 8 Jan Zeleny 2013-04-08 06:47:30 UTC
*** Bug 949125 has been marked as a duplicate of this bug. ***

Comment 9 Karsten Hopp 2013-04-11 12:37:33 UTC
Description of problem:
I've installed KDE desktop with yum groupinstall "KDE Plasma Workspaces" --skip-broken
(--skip-broken because there are some libreport dep issues on PPC atm.)
yum downloaded, installed and verified all packages, but after verifying the last package I got this error

Version-Release number of selected component:
yum-3.4.3-81.fc19

Additional info:
cmdline:        /usr/bin/python /bin/yum groupinstall 'KDE Plasma Workspaces' --skip-broken --nogpg
executable:     /bin/yum
kernel:         3.9.0-0.rc4.git0.1.fc19.ppc64p7
runlevel:       unknown
uid:            0
ureports_counter: 1

Truncated backtrace:
igroups.py:175:_write_grp_grps:KeyError: 'kde-apps'

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 219, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 697, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1763, in runTransaction
    self.igroups.save()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 148, in save
    self._write_grp_grps()
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 175, in _write_grp_grps
    if self.groups[grpname].environment == evgrp.evgid:
KeyError: 'kde-apps'

Local variables in innermost frame:
self: <yum.igroups.InstalledGroups object at 0x3fffaf8c80d0>
grpname: 'kde-apps'
fo: <open file '/var/lib/yum/groups/environment.tmp', mode 'w' at 0x1003376fc90>
evgrp: <yum.igroups.InstalledEnvironment object at 0x100307fcf10>

Comment 10 Karsten Hopp 2013-04-11 12:38:27 UTC
*** Bug 951078 has been marked as a duplicate of this bug. ***

Comment 11 James Antill 2013-04-24 16:10:28 UTC
 This should be fixed in:

-86 which went into rawhide and f19 yesterday.

Comment 12 Adam Williamson 2013-04-24 16:48:07 UTC
Discussed at 2013-04-24 blocker review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-04-24/f19beta-blocker-review-1.2013-04-24-16.00.log.txt . Rejected as a Beta blocker: it doesn't seem that this bug likely affects the installation environment, and anyway, it doesn't seem to prevent the operation actually succeeding.

The bug can be re-proposed if it turns out to be worse than it seemed to us in the meeting.

Comment 13 Jan Zeleny 2013-05-08 14:01:54 UTC
*** Bug 960406 has been marked as a duplicate of this bug. ***

Comment 14 James Antill 2013-05-08 14:38:18 UTC
*** Bug 954118 has been marked as a duplicate of this bug. ***

Comment 15 Reartes Guillermo 2013-05-08 16:54:10 UTC
I does still happen.

Install F19b TC3, do a yum update and then a groupinstall KDE Plasma Workspaces.

Comment 16 Jan Zeleny 2013-05-13 07:11:36 UTC
*** Bug 962044 has been marked as a duplicate of this bug. ***

Comment 17 Reartes Guillermo 2013-05-26 15:00:52 UTC
I does still happen. (F19b RC4)

Comment 18 Reartes Guillermo 2013-06-03 03:44:24 UTC
Workaround: 

Edit /etc/yum.conf and set 'group_command=compat'

The feature "Yum Groups as Objects" is marked as 100% completed.
To workaround the issue described in this bug-report, one has 
to revert the feature back.

Also yum.conf man page is outdated and the new default setting 
"group_command=objects" is not described there.

While i do agree with comment #12, the fact that one needs to 
revert a feature which is marked as 100% complete should not be
overlooked. 

Please note that not just 'group install' has issues, 'group remove'
and 'group list' also have their own, see below.

As test below indicate, it seems to happen with the "first time" a
'yum groupinstall' performed by the user (default yum.conf).
Subsequent 'yum groupinstall' executions have no issues.

The workaround fixes the "first time" 'yum groupinstall' exception.

It is still not a blocker nor FE, but if not fixed
the yum.conf settings "group_command=compat" should be the default.

An initial 'yum update' seems to inhibit the 'yum groupinstall' issue
from happen, at least it these tests. But does not help with the other
issues.

Currently, at least to me, it looks like setting the yum.conf setting
"group_command=compat" is a safer move.

TESTED MEDIA:        F19b RC4 x86_64
VERSION: yum.noarch  3.4.3-91.fc19

TST#1: (FNEXT-TST3)
* Install BE: Minimal Add-ONs: None
* No previous 'yum update' was executed
* Default yum.conf settings
* yum groupinstall 'LXDE Desktop'          >>> RESULT: ERROR (this bug-report issue)
* yum groupinstall virtualization          >>> RESULT: OK
* yum groupinstall 'KDE Plasma Workspaces' >>> RESULT: OK

* yum group remove virtualization   >>>  RESULT: ERROR (this or bug-prima)
* yum group remove 'LXDE Desktop    >>>  RESULT: ERROR: no packages to remove from groups

* yum group list    >>> RESULT: NEITHER 'Installed environment groups' NOT 'Installed groups' are shown (!)

TST#2: (FNEXT-TST4)
* Install BE: Minimal Add-ONs: None
* No previous 'yum update' was executed
* Default yum.conf settings
* yum groupinstall 'LXDE Desktop'          >>> RESULT: ERROR (this bug-report issue)
* Change yum.conf, set 'group_command=compat'
* yum groupinstall virtualization          >>> RESULT: OK
* yum groupinstall 'KDE Plasma Workspaces' >>> RESULT: OK

* yum group remove virtualization   >>>  RESULT: OK
* yum group remove 'LXDE Desktop    >>>  RESULT: OK?, BUT: 'systemd', 'yum' are declared as protected

* yum group list    >>> RESULT: Both 'Installed environment groups' and 'Installed groups' are shown.

TST#3: (FNEXT-TST1)
* Install BE: Minimal Add-ONs: None
* No previous 'yum update' was executed
* Change yum.conf, set 'group_command=compat'
* yum groupinstall 'LXDE Desktop'          >>> RESULT: OK
* yum groupinstall virtualization          >>> RESULT: OK
* yum groupinstall 'KDE Plasma Workspaces' >>> RESULT: OK

* yum group remove virtualization   >>>  RESULT: OK
* yum group remove 'LXDE Desktop    >>>  RESULT: OK?, BUT: 'systemd', 'yum' are declared as protected

* yum group list    >>> RESULT: Both 'Installed environment groups' and 'Installed groups' are shown.

TST#4: (FNEXT-TST6)
* Install BE: Minimal Add-ONs: None
* Update the system, perform a 'yum update' before the test
* Default yum.conf settings
* yum groupinstall 'LXDE Desktop'          >>> RESULT: OK
* yum groupinstall virtualization          >>> RESULT: OK
* yum groupinstall 'KDE Plasma Workspaces' >>> RESULT: OK

* yum group remove virtualization   >>>  RESULT: RESULT: ERROR (this or bug-prima)
* yum group remove 'LXDE Desktop'   >>>  RESULT: ERROR: no packages to remove from groups

* yum group list    >>> RESULT: NEITHER 'Installed environment groups' NOT 'Installed groups' are shown (!)

Comment 19 Reartes Guillermo 2013-06-03 03:44:43 UTC
FROM: http://fedoraproject.org/wiki/Releases/19/FeatureList

Name:          Yum Groups as Objects
Completition:  100%
Description:   Change the default yum configuration from group_command=compat to group_command=objects.
Updated:       2013-05-07

FROM: http://fedoraproject.org/wiki/Features/YumGroupsAsObjects

Contingency Plan: 
 We can change the configuration default back to compat. 
 
FROM: '# man yum.conf'

group_command List of the following: simple, compat, objects. Tells yum what
to do for group install/upgrade/remove commands.

  Simple acts like you did yum group cmd $(repoquery --group --list group), 
  so it is vrery easy to reason about what will happen. Alas. this is often 
  not what people want to happen.

  Compat. works much like simple, except that when you run "group upgrade" 
  it actually runs "group install" (this means that you get any new packages
  added to the group, but you also get packages added that were there before 
  and you didn't want).

  Objects makes groups act like a real object, separate from the packages 
  they contain. Yum keeps track of the groups you have installed, so 
  "group upgrade" will install new packages for the group but not install 
  old ones. It also knows about group members that are installed but weren't
  installed as part of the group, and won't remove those on "group remove". 
  Running "yum upgrade" will also run "yum group upgrade" (thus. adding new 
  packages for all groups).

  Default is: compat

Comment 20 Reartes Guillermo 2013-06-03 03:45:02 UTC
the "bug-prima", from TST#1: (FNEXT-TST3)

> * yum group remove virtualization   >>>  RESULT: ERROR (this or bug-prima)

# yum group remove virtualization
Loaded plugins: langpacks, refresh-packagekit
No environment named virtualization exists
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 126, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 522, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1047, in doCommand
    return base.removeGroups(extcmds)
  File "/usr/share/yum-cli/cli.py", line 1961, in removeGroups
    txmbrs = self.groupRemove(group.groupid)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3566, in groupRemove
    igroup_data = self._groupInstalledData(thisgroup)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3351, in _groupInstalledData
    for pkg_name in set(group.packages + list(pkg_names)):
AttributeError: 'InstalledGroup' object has no attribute 'packages'

I also noticed that a 'yum group list' no longer lists the  'Installed environment groups'
nor the 'Installed groups'. (with the default yum.conf).

So further 'yum group remove' fails beacuse they are 'not' installed. 

Changing yum.conf setting 'group_command=compat' makes 'group list' work again.

Comment 21 Jan Zeleny 2013-06-03 07:20:01 UTC
The issue reported in the latest comment is a different one, there is already a bug for that - closing as duplicate of bug 955236.

*** This bug has been marked as a duplicate of bug 955236 ***

Comment 22 Reartes Guillermo 2013-06-03 15:28:33 UTC
@Jan Zeleny

I don't consider the original bug-report closed (fixed). 
I do agree that this bug-report's comment #20 is bug 955236's comment 6, but this bug-report should not be closed at the moment, at least i don't think so.

What i found with comment #18 is that there are issues with 'group install' 'group remove' and 'group list'. All of then can be solved by reverting back the feature "Yum Groups as Objects" by setting 'group_command=compat' in yum.conf.

I think it is better keeping them separate for the moment.


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