From owner-freebsd-questions@FreeBSD.ORG Thu Jan 18 23:36:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2683D16A415 for ; Thu, 18 Jan 2007 23:36:13 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by mx1.freebsd.org (Postfix) with ESMTP id C89A013C442 for ; Thu, 18 Jan 2007 23:36:12 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so327803wxc for ; Thu, 18 Jan 2007 15:36:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=PFknB1+jlYveJ++GQYwRuuMGmoi9MUoa8E0+yJiqhNDfgHuSQtdtHKVEe3zBeTNea9WJ12n5Z0fPRDopbVtguu/Pba0X3WUpmvlqIUvKVuTvpQe9aSc1PqGsfPfam/2X4Jl0GDt9gmkHXfFYMDBOkBGK2Y1+rcgyPTIyMdirbH4= Received: by 10.70.113.13 with SMTP id l13mr2526161wxc.1169163361604; Thu, 18 Jan 2007 15:36:01 -0800 (PST) Received: by 10.70.12.14 with HTTP; Thu, 18 Jan 2007 15:36:01 -0800 (PST) Message-ID: <6f4f57f60701181536y58dbd5c1mfdea33b7b7ed48cc@mail.gmail.com> Date: Fri, 19 Jan 2007 01:36:01 +0200 From: "George Vanev" To: "Jay Chandler" In-Reply-To: <45AFFC8A.607@chapman.edu> MIME-Version: 1.0 References: <45AFFC8A.607@chapman.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: Portupgrade error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: George.Vanev@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 23:36:13 -0000 On 1/19/07, Jay Chandler wrote: > > How do I remove a group so that FreeBSD's ports tree doesn't see it as > already allocated? > > I was upgrading using portupgrade, when Apache errored. Error output > below: > > ---> Build of www/apache22 ended at: Thu, 18 Jan 2007 13:31:18 -0800 > (consumed 00:06:25) > ---> Updating dependency info > ---> Modifying /var/db/pkg/php5-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/php5-gettext-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/php5-mbstring-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/php5-mhash-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/php5-openssl-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/php5-pcre-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/php5-session-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/php5-xml-5.2.0/+CONTENTS > ---> Modifying /var/db/pkg/squirrelmail-1.4.9a/+CONTENTS > ---> Uninstallation of apache-2.2.3 started at: Thu, 18 Jan 2007 > 13:31:18 -0800 > ---> Fixing up dependencies before creating a package > ---> Backing up the old version > ---> Uninstalling the old version > ---> Deinstalling 'apache-2.2.3' > ---> Preserving /usr/local/lib/libapr-1.so.2 as > /usr/local/lib/compat/pkg/libapr-1.so.2 > ---> Preserving /usr/local/lib/libaprutil-1.so.2 as > /usr/local/lib/compat/pkg/libaprutil-1.so.2 > pkg_delete: package 'apache-2.2.3' is required by these other packages > and may not be deinstalled (but I'll delete it anyway): > php5-5.2.0 > ===> If you plan to do not reinstall apache22, you can safely remove > /usr/local/etc/apache22. > [Updating the pkgdb in /var/db/pkg ... - 43 packages > found (-1 +0) (...) done] > ---> Uninstallation of apache-2.2.3 ended at: Thu, 18 Jan 2007 13:31:46 > -0800 (consumed 00:00:27) > ---> Installation of www/apache22 started at: Thu, 18 Jan 2007 13:31:46 > -0800 > ---> Installing the new version via the port > ===> Installing for apache-2.2.4 > ===> apache-2.2.4 depends on file: /usr/local/lib/libcrypto.so.5 - found > ===> apache-2.2.4 depends on file: /usr/local/bin/perl5.8.8 - found > ===> apache-2.2.4 depends on shared library: expat.6 - found > ===> apache-2.2.4 depends on shared library: iconv.3 - found > pw: gid `80' has already been allocated > Adding group "www" failed... > *** Error code 1 > > Stop in /usr/ports/www/apache22. > *** Error code 1 > > Stop in /usr/ports/www/apache22. > ** Command failed [exit code 1]: /usr/bin/script -qa > /tmp/portupgrade.70165.20 env UPGRADE_TOOL=portupgrade > UPGRADE_PORT=apache-2.2.3 UPGRADE_PORT_VER=2.2.3 make reinstall > ---> Updating dependency info > egrep: /var/db/pkg/apache-2.2.3/+CONTENTS: No such file or directory > ---> Restoring the old version > pw: gid `80' has already been allocated > Adding group "www" failed... > pkg_add: install script returned error status > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler@chapman.edu > Today's Excuse: PEBKAC (Problem Exists Between Keyboard And Chair) > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Portupgrade is trying to add a group www with gid 80 which already exists. Try "cat /etc/goup | grep 80" (without quotes) to see which group is assigned gid 80. Then you can take measures changing the gid of that group. Regards -- George Vanev