View previous topic :: View next topic |
Author |
Message |
MrDatamaskinen n00b
Joined: 24 Aug 2012 Posts: 8
|
Posted: Fri Nov 09, 2012 10:07 pm Post subject: [SOLVED] Problem with add group while emerging |
|
|
Hello,
while emerging two different packages I get errors for adding groups.
emerge -vu app-misc/screen
Code: |
* Adding group 'utmp' to your system ...
* - Groupid: 406
groupadd: group 'utmp' already exists
* ERROR: app-misc/screen-4.0.3-r6 failed (setup phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 85: Called pkg_setup
* screen-4.0.3-r6.ebuild, line 27: Called enewgroup 'utmp' '406'
* user.eclass, line 343: Called die
* The specific snippet of code:
* groupadd -r ${opts} "${egroup}" || die
|
emerge -vu www-servers/apache
Code: |
* Adding group 'apache' to your system ...
* - Groupid: 81
groupadd: group 'apache' already exists
* ERROR: www-servers/apache-2.2.23 failed (setup phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 85: Called pkg_setup
* ebuild.sh, line 319: Called apache-2_pkg_setup
* apache-2.eclass, line 365: Called enewgroup 'apache' '81'
* user.eclass, line 343: Called die
* The specific snippet of code:
* groupadd -r ${opts} "${egroup}" || die
|
Any help would been greatly appreciated
Thanks,
Thomas
Last edited by MrDatamaskinen on Wed Nov 14, 2012 12:38 pm; edited 3 times in total |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Nov 10, 2012 11:06 pm Post subject: Re: Problem with add group while emerging |
|
|
MrDatamaskinen wrote: | while emerging two different packages I get errors for adding groups.
Code: | * Adding group 'utmp' to your system ... |
|
MrDatamaskinen ... the user.eclass checks that these groups exist or not prior to creating them:
user.eclass
Code: | # see if group already exists
if [[ -n $(egetent group "${egroup}") ]] ; then
return 0
fi
einfo "Adding group '${egroup}' to your system ..." |
So, 'getent' returns nothing but your /etc/group has an entry. I'm not sure what env your attempting to emerge in, but I'm inlined to think that its a chroot and the env hasn't been updated.
best ... khay |
|
Back to top |
|
|
MrDatamaskinen n00b
Joined: 24 Aug 2012 Posts: 8
|
Posted: Wed Nov 14, 2012 12:38 pm Post subject: |
|
|
Well,
took me some time to get back. It wasn't a chroot problem.
An "emerge --sync" and a "reemerge of portage" solved the problem. I had that problem on two different machines with different packages.
Best regards,
Thomas |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|