Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.users > #23179

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

From Bruce Nagel <nagelbh@sdf.org>
Newsgroups muc.lists.netbsd.users
Subject Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found
Date 2022-03-12 17:05 +0000
Organization Newsgate at muc.de e.V.
Message-ID <YizS1b0UJFMU0eWW@SDF.ORG> (permalink)
References <YiTmxRJj0jE2LEOj@SDF.ORG> <rmi7d978abx.fsf@s1.lexort.com> <YiSzbwIi4WqDpyVL@SDF.ORG> <rmi1qzd2718.fsf@s1.lexort.com>

Show all headers | View raw


On Mon, Mar 07, 2022 at 09:04:19AM -0500, Greg Troxel wrote:
>
>Bruce Nagel <nagelbh@sdf.org> 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.



I made sure all 3 places had the some /PKG_DBDIR=/usr/pkg/pkgdb in them.

I did the 'manual merge' from /var/db/pkg and /var/db/pkg.refcount to
/usr/pkg/pkgdb and /usr/pkg/pkgdb.refcount.  I removed the older
versions of duplicates in /usr/pkg/pkgdb.  I removed the old /var/db/pkg
and /var/db/pkg.refcount directories.

I ran the script with 'check' and it found no problems.

I ran the script with 'migrate' and it reported no problems after
running.

pkg_admin check complains about failing md5 checksums for a variety of
things including the libffi that's been an issue all through this.

pkg_admin rebuild-tree complains about not being able to read the
+CONTENTS of gdk-pixbuf2-2.40.0nb2

pkgin appears to update and appears to install e.g., vim but vim does
not get installed, isn't in /usr/pkg/bin, it still doesn't appear to
actually do anything.


What do I investigate or try next?

Thanks,
Bruce
-- 
+


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.users | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

/usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Bruce Nagel <nagelbh@sdf.org> - 2022-03-06 13:13 +0000
  Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-06 08:44 -0500
    Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-07 09:04 -0500
      Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Bruce Nagel <nagelbh@sdf.org> - 2022-03-12 17:05 +0000
  Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-06 08:47 -0500
    Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Todd Gruhn <tgruhn2@gmail.com> - 2022-03-06 12:47 +0000
  Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-12 13:45 -0500

csiph-web