From owner-freebsd-questions@FreeBSD.ORG Sun Dec 1 18:05:47 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 137669D5 for ; Sun, 1 Dec 2013 18:05:47 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B04DA12CE for ; Sun, 1 Dec 2013 18:05:46 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id rB1I5dSH066245 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 1 Dec 2013 18:05:40 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk rB1I5dSH066245 Authentication-Results: smtp.infracaninophile.co.uk/rB1I5dSH066245; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <529B7A6B.6020800@FreeBSD.org> Date: Sun, 01 Dec 2013 18:05:31 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: james@mansionfamily.plus.com, FreeBSD Mailing List Subject: Re: pkg-ng problem, how do I recover? References: <529B4657.3040201@mansionfamily.plus.com> In-Reply-To: <529B4657.3040201@mansionfamily.plus.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oX5i4bInijmhquC9QKG9J9562RjJW3Bin" X-Virus-Scanned: clamav-milter 0.98 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2013 18:05:47 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oX5i4bInijmhquC9QKG9J9562RjJW3Bin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 01/12/2013 14:23, james wrote: > How can I recover from this? >=20 > root@nas:~ # pkg update -f > Updating repository catalogue > digests.txz 100% 1093KB 1.1MB/s 1.1MB/s 00:01 > packagesite.txz 100% 5886KB 1.4MB/s 2.0MB/s 00:04 > pkg: sqlite: database disk image is malformed (pkgdb_repo.c:545) > Incremental update completed, 0 packages processed: > 0 packages updated, 372 removed and 13769 added. > pkg: No digest falling back on legacy catalog format > pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/repo.txz: Not Found= > root@nas:~ # >=20 > Earlier, I tried to pkgupgrade, but it seemed to get into a loop with > docbook claiming malformed info, so I quit that. >=20 > This is: >=20 > root@nas:~ # uname -a > FreeBSD nas 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 > 22:50:31 UTC 2013 > root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > root@nas:~ # If pkg(8) complains about a corrupted database, the first thing to try is= : # rm /var/db/pkg/repo-*.sqlite The vast majority of the time this will cure the problem, and it's safe enough to do, as everything in those repo-*.sqlite databases is derived from repository catalogues which you can just download again. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --oX5i4bInijmhquC9QKG9J9562RjJW3Bin Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSm3pzXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATNi4P/RwEvTPME3emmjssPOJhD3Ux xpiZBHA0rYMK+NHbiJMon33X21fsf4evY3xCSWyOW79G1CI6awcfxr6rSq1FRwus jG0RdUeYiOI6xLjPxtqAaOdHUSINuJv7tvmRL1xoXrn/G8H06HNrrPqhoxhvOLdj +3EzypDUQfiU3JSO+7veyvR7K4Ojhy72W150FYc5ZQndrbjIQ0BaaT/oXtGF1TMU yuHGptGSGyZlnGNdv8y5V8C4hFDBA23m0dTXHSVQvSmNSPO3FrJG7GwnFi8VEjd0 /o80jDY602hVjqFDBqSs98a+1YzVQvPOKP/ZWSYWinuOcs9WehZBqATgJRG9lU+1 2qA3eImUgd7m1Fy4oNTV0nwJJiDvmSj+f+XRN5oNyJ4BkzgwfxGuZZSb/qKDlI8a NvZARnb+6hJtIwsykYnrs67K4TC6KT9Xgcn8ukvhBBex3oACXRgOI+AAFlN6t6e5 uR1UWnpoH5UvpHreXQl7TJ3Xa+1nyEL277IHK+KQmBOkyYDR0q79TNdE+eMzOmf7 b0sT82LgLkaQboaGRl+YFbu/a0ZqYr+bEsqAqMnrV3RCaUz5MnAJsOKycpTXNq0d FEubLPFsAiuJ40Lbw8nkUbvIqJnlA7nS57DugEalofIXagfBcMfUR6/uJzroCDXv HQ9LOuep54N/a1zLbIlR =SzUP -----END PGP SIGNATURE----- --oX5i4bInijmhquC9QKG9J9562RjJW3Bin--