ls -al /var/db/pkg|more
total 137316
drwxr-x--x 1466 root wheel 42496 21 Okt 16:09 .
drwxr-xr-x 20 root wheel 1024 21 Okt 16:43 ..
drwxr-xr-x 2 root wheel 512 25 Sep 2015 CoinMP-1.8.3
or
-rw-r--r-- 1 root wheel 246 9 Okt 01:17 FreeBSD.meta
Works for me too on FreeBSD 10.3-RELEASE.Do you have some peculiar sudo set up? I can't replicate the problem on 11.0-RELEASE-p1 using root shell or sudo(8).
That's not right. /var/db/pkg needs to be world readable.drwxr-x--x 1466 root wheel 42496 21 Okt 16:09 .
pkg
now drops privileges to the nobody user before accessing the package database. This might have worked before but not with newer pkg versions. A chmod 755 /var/db/pkg
should fix this.