From owner-freebsd-current@freebsd.org Mon Feb 27 14:49:03 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AEF8DCEF16A for ; Mon, 27 Feb 2017 14:49:03 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 95D8FE71 for ; Mon, 27 Feb 2017 14:49:03 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by mailman.ysv.freebsd.org (Postfix) id 95350CEF168; Mon, 27 Feb 2017 14:49:03 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94E9FCEF165 for ; Mon, 27 Feb 2017 14:49:03 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A1C5E70 for ; Mon, 27 Feb 2017 14:49:03 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3vX4NF6kkgzZsx; Mon, 27 Feb 2017 15:49:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1488206940; x=1490021341; bh=tLEFS9xaw2VD1ENwBzJ1sYFPriyadRshFiB ELUHRWi4=; b=en1DAQRFeDJK2zhpp6rSKa9CnugJFbTPgCaZPZNVrZycDKOk5J1 mwQjZgbKC4tYbNsXP5lJj8rs0cXesfNmalryPWdYfMVC0UYYl/E5Jt+kvYM6CJiZ R4BIhiugfa0CKGH0a2mwhNL6noTtIyruXNaNetJ2SlvoYJfOafDE7Bbo= Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id ARf2uZQVxVFY; Mon, 27 Feb 2017 15:49:00 +0100 (CET) Received: from marvin.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Mon, 27 Feb 2017 15:49:00 +0100 (CET) Subject: Re: Problem with pkg To: Filippo Moretti , FreeBSD Current References: <977961980.1791329.1488200543673.ref@mail.yahoo.com> <977961980.1791329.1488200543673@mail.yahoo.com> From: Guido Falsi Message-ID: <4d01eef6-964c-e1e6-a376-d67196d1e8bc@madpilot.net> Date: Mon, 27 Feb 2017 15:48:59 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <977961980.1791329.1488200543673@mail.yahoo.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 14:49:03 -0000 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