NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found



Bruce Nagel <nagelbh%sdf.org@localhost> writes:

> Looking through the 'pkgdb-change' page, I'm missing 2 of the 3 files 
>
> /etc/mk.conf has:
> PKG_DBDIR=/var/db/pkg
>
> so that line just needs to be changed to:
> PKG_DBDIR=/usr/pkg/pkgdb
>
> I have no /etc/pkg_install.conf file or /usr/pkg/etc/pkg_install.conf -
> should I create them and just include PKG_DBDIR=/usr/pkg/pkgdb in them?
> Or do I need to do something more (is there other content needed in
> those files)?

I would say yes, and then all the tools should agree on the pkgdb.
>
> pkg_admin check:   pkg_admin can't open
> /var/db/pkg/gdk-pixbuf2-2.40.0nb2/+CONTENTS: No such file or directory 

Start looking at the pkgdb, both of them.  Learn what normal packages
look like.  If there is a dir with no control files, just remove it.

> pkg_admin rebuild-tree:   pkg_admin: Cannot read +CONTENTS of package
> gdk-pixbuf2-2.40.0nb2

Same problem as above.
>
> _NetBSD-pkgdb check found:  FATAL: TWO copies of PKG_DBDIR found
>
> So it's definitely the split-brain package databases problem.
>
> /usr/sbin/pkg_add -V gives:   20191008
>
> /usr/sbin/pkg/pkg_add -V gives:   20210308
>
> Do I need to fix anything there?

probably not, except that updating the base system to 9.2 is probably a
good idea.  But with the PKG_DBDIR lines it should be ok.


So you need to dig in and see what is in both databases, and probably
you can move the dirs from /var/db/pkg to /usr/pkg/pkgdb or the other
way around (either is ok, but you must have 1 and you must have all 3
configs pointing to the chosen one.  I prefer /usr/pkg/pkgdb at this
point.)   This is sort of a manual merge process.

Then the script should fix up the embeedded paths.  Read and understand
the script - I tried to comment it well.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index