π ~1 min read
Table of contents
Symptom & Impact
pkg upgrade halts when locked packages block dependency resolution, leaving systems partially updated and inconsistent.
Environment & Reproduction
During scheduled upgrades, pkg reports conflicts involving locked libraries required by newer dependent packages.
Root Cause Analysis
Manual pkg lock usage, version pinning drift, and repository branch differences commonly lead to unsatisfied constraints.
Quick Triage
Run pkg lock -l, pkg upgrade -n, and pkg info -r to identify blockers and reverse dependencies.
Step-by-Step Diagnosis
Map locked packages to dependency chains and determine whether locks are still required for policy reasons. image_ref=0

Solution – Primary Fix
Temporarily unlock conflicting packages, perform upgrade, then re-lock validated packages as needed. 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
Use quarterly repository branches and explicit package sets to reduce surprise dependency churn in production.
Verification & Acceptance Criteria
pkg upgrade completes without conflicts, lock list reflects approved policy, and required applications run normally.
Rollback Plan
Reinstall previous package versions from local cache or snapshots if post-upgrade regressions are observed.
Prevention & Hardening
Track lock rationale in change records and review pinned package lists each maintenance cycle.
Related Errors & Cross-Refs
Related signs include ABI mismatch warnings, orphaned dependencies, and failed service startups after partial updates.
Related tutorial: View the step-by-step tutorial for freebsd-12.
View all freebsd-12 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
See man pkg-lock, man pkg-upgrade, FreeBSD pkg best practices, and quarterly branch documentation.
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.