Gentoo Archives: gentoo-user

From: Space Cake <spacecakex@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] portage failed to upgrade
Date: Wed, 31 Aug 2011 14:26:19
Message-Id: 4E5E4443.5080905@gmail.com
In Reply to: Re: [gentoo-user] portage failed to upgrade by Michael Mol
1 On 2011. aug. 31., szerda, 16.16.54 CEST, Michael Mol wrote:
2 > On Wed, Aug 31, 2011 at 10:10 AM, Space Cake <spacecakex@×××××.com> wrote:
3 >> On 2011. aug. 31., szerda, 16.02.15 CEST, Michael Mol wrote:
4 >>> 2011/8/31 Space Cake <spacecakex@×××××.com>:
5 >>>> Hi,
6 >>>>
7 >>>> For a few days my routine upgrades failing at portage with the following
8 >>>> message. Do you have any idea what does it means?
9 >>>>
10 >>>> File
11 >>>> "/var/tmp/portage/sys-apps/portage-2.1.10.11/image/usr/lib/portage/pym/portage/tests/runTests",
12 >>>> line 21, in <module>
13 >>>> os.environ["PORTAGE_GRPNAME"] = grp.getgrgid(os.getgid()).gr_name
14 >>>> KeyError: 'getgrgid(): gid not found: 0'
15 >>>>
16 >>>> I've tried to google this, but nothing has found
17 >>>
18 >>> A new portage went stable a few days ago. You might try explicitly
19 >>> upgrading portage, and then continuing.
20 >>
21 >> Yes, this is what I've tried, but it is failed with the message above
22 >
23 > By the error, it looks like the code expected to be run as gid 0, but wasn't.
24 >
25 > I assume you ran etc-update?
26 >
27 > What about a downgrade? Could you downgrade portage to the last stable
28 > version (not sure what that is), and then upgrade it again? (I'd wait
29 > for someone else to chime in before you do this. It may be a riskier
30 > move than is obvious. I'm not sure.)
31
32 Yes, etc-update is also routine for me and I'm on stable
33
34 [U] sys-apps/portage
35 Available versions: [M]2.1.6.7 2.1.6.13 2.1.9.42 2.1.10.3
36 2.1.10.11 ~*2.2.0_alpha51 **9999 {build doc epydoc +ipc (+)less
37 linguas_pl python2 python3 selinux}
38 Installed versions: 2.1.10.3(18.02.13 2011-07-18)(ipc less -build
39 -doc -epydoc -linguas_pl -python2 -python3 -selinux)
40 Homepage:
41 http://www.gentoo.org/proj/en/portage/index.xml
42 Description: Portage is the package management and
43 distribution sys