Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Sep 2006 17:08:37 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Dr. Jennifer Nussbaum" <bg271828@yahoo.com>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: Various package/ports problems
Message-ID:  <20060904210837.GA44688@xor.obsecurity.org>
In-Reply-To: <20060904210020.18319.qmail@web53408.mail.yahoo.com>
References:  <20060904151035.GA36738@xor.obsecurity.org> <20060904210020.18319.qmail@web53408.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <kris@obsecurity.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060904210837.GA44688>