From owner-freebsd-questions@FreeBSD.ORG Mon Sep 4 21:08:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 506C416A4E0 for ; Mon, 4 Sep 2006 21:08:39 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5E4143D46 for ; Mon, 4 Sep 2006 21:08:38 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 6CD121A4D9E; Mon, 4 Sep 2006 14:08:38 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DC3B3514AF; Mon, 4 Sep 2006 17:08:37 -0400 (EDT) Date: Mon, 4 Sep 2006 17:08:37 -0400 From: Kris Kennaway To: "Dr. Jennifer Nussbaum" Message-ID: <20060904210837.GA44688@xor.obsecurity.org> References: <20060904151035.GA36738@xor.obsecurity.org> <20060904210020.18319.qmail@web53408.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: <20060904210020.18319.qmail@web53408.mail.yahoo.com> User-Agent: Mutt/1.4.2.2i Cc: FreeBSD-Questions , Kris Kennaway Subject: Re: Various package/ports problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2006 21:08:39 -0000 --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 04, 2006 at 02:00:20PM -0700, Dr. Jennifer Nussbaum wrote: >=20 > Kris Kennaway wrote: On Mon, Sep 04, 2006 at 04:52:= 08AM -0700, Dr. Jennifer Nussbaum wrote: >=20 > > > For example if i try to run "portversion" i get: > > >=20 > > > undefined method `each' for nil:NilClass > > > /usr/local/sbin/portversion:239: [BUG] Bus Error > > >=20 > > > from Ruby (ruby 1.8.5 is up to date on the system). > >=20 > > :> pkgdb -f > >=20 > > ~ $ sudo pkgdb -f > > ~ $ portversion > > undefined method `each' for nil:NilClass > > /usr/local/sbin/portversion:239: [BUG] Bus Error > > ruby 1.8.5 (2006-08-25) [i386-freebsd4] > >=20 > > Abort trap (core dumped) > > ~ $ >=20 > ::>Check the manpage, probably I meant pkgdb -fu >=20 > Sorry, i dont understand what im checking hte manpage to > have it do. Running pkgdb -fu does rebuild the package=20 > database, but i get the same Bus Error thing from Ruby > as above. Running which version of portupgrade? Also try 'cd /usr/ports; make fetchindex' first. > > > If i try to run "pkg_info" I quickly get: > > >=20 > > > pkg_info: read_plist: bad command '@conflicts apache+ipv6-1.*' > >=20 > > :> Deinstall the package that was built for a later version of=20 > > :> FreeBSD. > >=20 > > KrisHow do i tell which this is? Most of this box seems to be compiled > > from ports, not installed packages. apache+ipv6 is not installed. > >=20 > > ~ $ pkg_info > > ImageMagick-nox11-6.0.2.7 Image processing tools > > analog-6.0_1,1 An extremely fast program for analysing WWW logfiles > > pkg_info: read_plist: bad command '@conflicts apache+ipv6-1.*' > > ~ >=20 > ::>grep -r @conflicts /var/db/pkg and remove all listed packages. >=20 > Kris > Which listed packages? The output of this grep looks like: > /var/db/pkg/mysql-server-4.1.20/+CONTENTS:@conflicts mysql-server-3.* > /var/db/pkg/mysql-server-4.1.20/+CONTENTS:@conflicts mysql-server-4.[02-9= ].* > /var/db/pkg/mysql-server-4.1.20/+CONTENTS:@conflicts mysql-server-5.* >=20 > But i dont want to remove mysql-server-4.1.20, because this seems > to be the version that is actively running on this machine, and i dont > want to disable it. Same for apache+mod_ssl, which accounts for > alot of the other conflicts. You need to recognize that you've got the system into a damaged state already, so it's going to take further intrusive work to repair it. > Also, when i try to delete one of the ports that seemed less > critical, even that didnt work: > ~ $ sudo pkg_delete -f jade-1.2.1_9 > pkg_delete: package 'jade-1.2.1_9' is required by these other packages > and may not be deinstalled (but I'll delete it anyway): > sgmlformat-1.7_2 > pkg_delete: read_plist: bad command '@conflicts sp-1.*' > ~ >=20 > ...and jade-1.2.1_9 is still there. >=20 > Thank you again for your continued attention, Kris. What happens if you try to reinstall it from the port, setting FORCE_PKG_REGISTER? Kris --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE/JXVWry0BWjoQKURAhj1AKDb7MyBkfZFdu0UFcIXiGHPMtfsgACdG6X3 sFINtzcurKyIjMWSWqoCUlM= =BPFW -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--