Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Dec 2013 18:05:31 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        james@mansionfamily.plus.com, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: pkg-ng problem, how do I recover?
Message-ID:  <529B7A6B.6020800@FreeBSD.org>
In-Reply-To: <529B4657.3040201@mansionfamily.plus.com>
References:  <529B4657.3040201@mansionfamily.plus.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?529B7A6B.6020800>