Date: Sat, 20 Oct 2012 11:15:13 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: Snag in upgrading p5-XML-SAX and p5-XML-SAX-Base Message-ID: <508279B1.7070108@FreeBSD.org> In-Reply-To: <FB.D3.23131.BCE62805@smtp02.insight.synacor.com> References: <FB.D3.23131.BCE62805@smtp02.insight.synacor.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2A02E5D17737DA4B82E360DE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20/10/2012 10:28, Thomas Mueller wrote: > I just a day ago switched to pkgng, but "pkg delete" produced > No package(s) found! >=20 >> did you run pkg2ng for it? >=20 > I remember running pkg2ng when switching to the new pkg. Do I need to = run > pkg2ng again? >=20 > I now have /usr/bin/pkg and /usr/local/bin/pkg, and /usr/bin comes befo= re > /usr/local/bin in the PATH. No -- you only ever need to run pkg2ng once. /usr/bin/pkg will invoke /usr/local/bin/pkg automatically if /usr/local/bin/pkg is installed -- /usr/bin/pkg is a shim that exists to facilitate the installation of the actual /usr/local/bin/pkg binary. That's all normal. Now, the real problem: not seeing the contents of the local package database. Can you check a few things: 1) That PKG_DBDIR isn't defined in your environment or in /usr/local/etc/pkg.conf (or if it is, it is set to an appropriate directory.) 2) That /var/db/pkg/local.sqlite exists and has these permissions and ownership: % ls -l /var/db/pkg/local.sqlite -rw-r--r-- 1 root wheel 4041728 Oct 14 17:52 /var/db/pkg/local.sqlite (The size will be different depending on what packages are installed) 3) Try opening the local.sqlite database and investigating the contents of one or more of the tables. Like so: # pkg shell SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select count(*) from packages ; 47 sqlite> .quit If that returns zero then something has wiped your package DB. You may be able to recover from a backup copy of local.sqlite that the daily periodic jobs creates in /var/backups/pkgng.db -- just copy that back to /var/db/pkg/local.sqlite and try again. 4) If there is content in local.sqlite, then try using 'pkg info' to query the contents. This should print out just about everything pkgng knows about what is installed on your system: % pkg info -fa Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig2A02E5D17737DA4B82E360DE 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.16 (Darwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCCebEACgkQ8Mjk52CukIzImACgjm5477g+4ufdHbGlCOH8dxyv UH4AnRgdhhAukVc+agOluKxJSjd/oDET =zyxj -----END PGP SIGNATURE----- --------------enig2A02E5D17737DA4B82E360DE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?508279B1.7070108>