pkgsrc-Users archive

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

Re: duplicate PKGBASE entries



Thank you, Jonathan, for your quick response!
That pointer was spot on. And while I was at it, it turned out there were a handful of other duplicate packages that I could remove in the same way.

And no, it is not a 'pkgsrc' zone, just a regular 'lipkg' zone, and thus the bootstrap kit is there justly. What I think has happened is, that - since the zone has been in use for a couple of years now - a while ago I had to redo the bootstrap kit when it migrated from joyent.com to smartos.org and likely that is when some polution happened.
I wonder though why this didn't surface earlier.

How well, it's all good now, thanks!

Cheers!


On 04-11-2025 20:57, Jonathan Perkin wrote:
* On 2025-11-04 at 19:13 GMT, Andries Annema wrote:

Running pkgsrc on OmniOS. In one zone ("container") I see some errors in the log, where the main culprit seems to be:

pkg_admin: corrupt pkgdb, duplicate PKGBASE entries:
    pkg_install-20250417
    pkg_install-20201218

This sounds like you've unpacked a bootstrap kit over the top of an existing install, and ended up with two conflicting directories in the pkgdb.  If you use an OmniOS 'pkgsrc' zone you don't need to install the bootstrap kit, one is already provided.

Any pointers on how to get rid of this mess are much appreciated. Tnx!

You should be able to remove /opt/local/pkg/pkg_install-20201218 and then run pkgin -f update.



Home | Main Index | Thread Index | Old Index