Problem with pkg

Tomoya Tabuchi t at tomoyat1.com
Mon Feb 27 14:34:44 UTC 2017


On Mon, Feb 27, 2017 at 01:02:23PM +0000, Filippo Moretti wrote:
> After a blackout caused by my wife I only get a few pkg shown with the command pkg info while they should be hundreds.I also get this error message when trying to install packages by pkg installpkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory(I do have a file name local.sqlite)Is there a way to recover the pkg database or should I reinstall the OS.Filippo
> 
> 
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"

Hello,

I have a similar problem.
pkg(8) tells me to do a `pkg update', and when I do that I get the following.

Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo
file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
meta.txz                                 : 100%  944 B     0.9kB/s
00:01    
packagesite.txz                          : 100%    6 MiB 986.3kB/s
00:06    
pkg: rsa verify failed: error:04091077:rsa routines:INT_RSA_VERIFY:wrong
signature length
pkg: No trusted certificate has been used to sign the repository
Unable to update repository FreeBSD
Error updating repositories!

I am on r314247 and the version of pkg(8) is 1.10.0.

Tomoya


More information about the freebsd-current mailing list