From owner-freebsd-current@freebsd.org Mon Feb 27 14:49:02 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 CD681CEF161 for ; Mon, 27 Feb 2017 14:49:02 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B3F5EE6F for ; Mon, 27 Feb 2017 14:49:02 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by mailman.ysv.freebsd.org (Postfix) id B3543CEF160; Mon, 27 Feb 2017 14:49:02 +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 B2FEDCEF15F for ; Mon, 27 Feb 2017 14:49:02 +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 77933E6E for ; Mon, 27 Feb 2017 14:49:01 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3vX4N61XvRzZrb; Mon, 27 Feb 2017 15:48:54 +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= 1488206932; x=1490021333; bh=nnqI2uaHpxSUHExNfZvRjPZkUIN9MIhIOsw HXkGjyR4=; b=otOuniz5cu4tZVDxZnxk5sT3NmTRG/yoi37jI7qMnkWaTIxnTbR 9ckUWvPzRhMNaTvYnaN2knkBienGC/fyihiQd5+B0vh9096B64qWNiGWpxBBtXcb ertw7vTTVnItZmEXtXM262wjpjIZZtcmdUC9fj1SKQM3XYVBcbGkCTEk= 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 SWzCPxnCfGVl; Mon, 27 Feb 2017 15:48:52 +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:48:52 +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: <2a78ebf6-a19b-5cf7-1808-cdc0c4369212@madpilot.net> Date: Mon, 27 Feb 2017 15:48:51 +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:02 -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 poroblem is the database file corruption and depending on how old the backup DBB is you could be lucky with that. The repo database can be simply removed, pkg should download a new one. -- Guido Falsi