On 1/19/07, Jay Chandler <[EMAIL PROTECTED]> 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 <format:bdb_btree> 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 / [EMAIL PROTECTED]
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 "
[EMAIL PROTECTED]"


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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to