π ~1 min read
Table of contents
Symptom & Impact
FreeBSD 13 package updates can fail when local repository metadata or trust settings are out of sync.
Environment & Reproduction
pkg update reports signature verification errors, fingerprint mismatches, or repository not trusted.
Root Cause Analysis
Outdated certs, incorrect mirror URL, damaged package database, or custom repo overrides frequently trigger this.
Quick Triage
Run pkg -vv, pkg update -f, and inspect /usr/local/etc/pkg/repos plus /etc/pkg for override conflicts.
Step-by-Step Diagnosis
Capture command output and current repo definitions before cleanup. image_ref=0

Solution – Primary Fix
Clean stale metadata with rm -rf /var/db/pkg/repo-*, correct repo URL, run pkg bootstrap -f then pkg update -f. image_ref=1
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
No daemon is required, but run periodic scripts manually if package refresh tasks lag behind.
Verification & Acceptance Criteria
Set the intended repository in /usr/local/etc/pkg/repos/FreeBSD.conf and avoid conflicting duplicate definitions.
Rollback Plan
Ensure outbound HTTPS is allowed in pf and DNS resolves pkg.FreeBSD.org without interception.
Prevention & Hardening
Run pkg update then pkg upgrade -n; verify no signature errors and package catalog loads correctly.
Related Errors & Cross-Refs
Pin mirror strategy, periodically verify fingerprints, and monitor failed pkg jobs through cron output.
Related tutorial: View the step-by-step tutorial for freebsd-13.
View all freebsd-13 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
See man pkg, FreeBSD pkg documentation, and repository configuration examples in the Handbook.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.