pkg broke after upgrade to v5.9.0.609

Daniel Fojt df at
Wed Jul 22 22:29:14 PDT 2020

On Wed, 22 Jul 2020 14:17:55 -0400
Ron Georgia <netverbs at> wrote:

> I upgraded from 5.9-DEVELOPMENT DragonFly v5.9.0.583 to 5.9-DEVELOPMENT 
> DragonFly v5.9.0.609. When I try to use pkg I get this error:
> Shared object "" not found, required by "pkg"

Oh, sorry, my fault. Fixed in commit 18a5eb36+.

Now, how to fix it on your system.

Most straightforward and safe solution is to copy pkg-static over pkg...

cp /usr/local/sbin/pkg-static /usr/local/sbin/pkg

... and wait for new packages.

Other possible solutions...

Quick and dirty one is to symlink these two libraries...

ln -s /lib/ /lib/
ln -s /lib/ /lib/

(This is just emergency solution, not to be used regularly.)

Or pick missing libraries ( and
from a snapshot couple of days old from here:

Or, if you have dports, just re-compile pkg (the most "clean" solution)...

cd /usr/dports/ports-mgmt/pkg/ && make reinstall

Once again, sorry for breakage.

						Daniel Fojt

More information about the Users mailing list