Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 15:48:59 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        Filippo Moretti <filippomore@yahoo.com>, FreeBSD Current <current@freebsd.org>
Subject:   Re: Problem with pkg
Message-ID:  <4d01eef6-964c-e1e6-a376-d67196d1e8bc@madpilot.net>
In-Reply-To: <977961980.1791329.1488200543673@mail.yahoo.com>
References:  <977961980.1791329.1488200543673.ref@mail.yahoo.com> <977961980.1791329.1488200543673@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/27/17 14:02, 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
> 

Periodic scripts do backup the package database to /var/backups/ when run.

If the only problem is the database file corruption and depending on how
old the backup DB is you could be lucky with that.

The repo database can be simply removed, pkg should download a new one.

-- 
Guido Falsi <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d01eef6-964c-e1e6-a376-d67196d1e8bc>