Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem with add group while emerging
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
MrDatamaskinen
n00b
n00b


Joined: 24 Aug 2012
Posts: 8

PostPosted: Fri Nov 09, 2012 10:07 pm    Post subject: [SOLVED] Problem with add group while emerging Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Nov 10, 2012 11:06 pm    Post subject: Re: Problem with add group while emerging Reply with quote

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
View user's profile Send private message
MrDatamaskinen
n00b
n00b


Joined: 24 Aug 2012
Posts: 8

PostPosted: Wed Nov 14, 2012 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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