![]()
Solved - pkg upgrade -- pkg: Cannot get an advisory lock on a database, it is locked by another process
I checked what was running and saw this: # ps -auwx | grep 'USER\|pkg' | grep -v grep USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 55747 0.0 0.0 11804 2612 - IJ 07:50 0:00.00 /bin/sh - /usr/local/etc/periodic/security/460.pkg-checksum root 58051 0.0 0.0...forums.freebsd.org
![]()
pkg does not confirm that the process holding the lock is another instance of pkg · Issue #1550 · freebsd/pkg
pkg version 1.9.4 on FreeBSD 11.0-RELEASE-p8 pkg database appears to pkg to be locked by a g_eli kernel thread due to pid reuse after a reboot. (ee95ca16)[root@mtumishi /var/db/pkg]$ pkg check -d p...github.com
Clean your pkg cache and do a force update:
# pkg clean
# pkg update -f
(If) that doesn't worked do a force reinstallation of pkg:
# pkg-static bootstrap -f
These commands do not break anything. You just cleared the pkg cache and reinstalled it.I got it installed, but its messed up all my other apache24 connections
These commands do not break anything. You just cleared the pkg cache and reinstalled it.