How to retrieve repo-FreeBSD.sqlite

I have not the /var/db/pkg/repo-FreeBSD.sqlite file.

i can't run pkg update, pkg install.
Is there any backup file as for /var/ldb/pkg/local.sqlite ?

Thanks
 
I have not the /var/db/pkg/repo-FreeBSD.sqlite file.

i can't run pkg update, pkg install.
Is there any backup file as for /var/db/pkg/local.sqlite ?

Thanks

If you deleted /var/db/pkg/repo-FreeBSD.sqlite, you can try to run # pkg update -f,
and it should be recreated. But if /var/db/pkg/local.sqlite was removed , then, it seems,
you removed your installed packages database, use /var/backups/pkg.sql.xz* to restore it,
using # pkg backup.
 
I didn't delete repo-FreeBSD.sqlite. it disappeared.
pkg update -f doesn't work
Code:
Repository FreeBSD load error; acces repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz ...
Fetching packagesite.txz ....
pkg: http://pkg.FreeBSD.org/FreeBSD:11:i386/quarterly/packagesite.txz: Operations timed out
 
Code:
pkg: http://pkg.FreeBSD.org/FreeBSD:11:i386/quarterly/packagesite.txz: Operations timed out
You seem to be having network issues that are preventing the system from fetching the package database.
 
I have to say that it's a virtualbox vm.
I had enabled the bridged network mode. At this time ,the work around to fix the issue is to enable the NAT.
I created a new freebsd vm, that the same issue, I can't use pkg (update, install ...)with bridged mode enabled
 
Back
Top