Gentoo Archives: gentoo-user

From: Space Cake <spacecakex@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] portage failed to upgrade
Date: Thu, 01 Sep 2011 11:23:52
Message-Id: 4E5F6AFB.6010508@gmail.com
In Reply to: Re: [gentoo-user] portage failed to upgrade by Pandu Poluan
1 On 2011. aug. 31., szerda, 18.37.11 CEST, Pandu Poluan wrote:
2 > (Sorry for top-posting; Gmail java mobile client sucks)
3 >
4 > gid 0 should be the 'root' gid. Try 'grep -E "root|wheel" /etc/groups'
5 > and see if there is/are groups called 'root' or 'wheel' with gid==0
6 >
7 > Also a question: Are you using sudo?
8 >
9 > Rgds,
10 >
11 >
12 > On 2011-08-31, Space Cake <spacecakex@×××××.com> wrote:
13 >> Hi,
14 >>
15 >> For a few days my routine upgrades failing at portage with the following
16 >> message. Do you have any idea what does it means?
17 >>
18 >> File
19 >> "/var/tmp/portage/sys-apps/portage-2.1.10.11/image/usr/lib/portage/pym/portage/tests/runTests",
20 >> line 21, in <module>
21 >> os.environ["PORTAGE_GRPNAME"] = grp.getgrgid(os.getgid()).gr_name
22 >> KeyError: 'getgrgid(): gid not found: 0'
23 >>
24 >> I've tried to google this, but nothing has found
25 >>
26 >> Thank you
27 >> Laszlo
28 >>
29 >>
30 >>
31
32 Seems my gid is not 0 either for root or wheel... I don't know why, I
33 don't remember if I changed it :)
34
35 So, I've changed the gid and also the group for the files assigned to
36 the grp 1033, so hopefully portage can upgrade this way :)
37
38 Thanks for the help
39 Laszlo