Need help with a screwed up pkg database.

In the process of copying a FreeBSD 13.2-R installation to a different partition, I've managed to screw up my pkg database and get things like

No signature found, and I need to recreate the database. Not sure how to do that.

My pkg version is 1.20.9
 
I would try the following as root:

rm -rf /var/cache/pkg
rm -rf /var/db/pkg

double check the contents of /usr/local/etc/pkg.conf
 
If you have another system running 13.2, the install media or worst cast look online at the source repo, compare what you have installed on the broken system to the reference copy.
I'm not sure if the "pkg-static" command actually creates a new copy (it may since pkg-static is designed to bootstrap the package system)
"man pkg.conf"

I would try the rm -rf on the directories first, or rename them.
 
Back
Top