Michael W. Lucas
2014-Jan-09 16:50 UTC
pkgng upgrade "unable to find catalogs" - with key installed
Hi, Trying to upgrade from pkg 1.1 to 1.2 on FreeBSD 9.1. I have /usr/share/keys and the current trusted key, and a repo config file. No pkg.conf. # pkg upgrade Updating repository catalogue digests.txz 100% 1082KB 1.1MB/s 1.1MB/s 00:00 packagesite.txz 100% 5028KB 4.9MB/s 2.6MB/s 00:01 Incremental update completed, 23171 packages processed: 0 packages updated, 0 removed and 23171 added. pkg: Unable to find catalogs # Any suggestions? I have the current trusted key: # cat /usr/share/keys/pkg/trusted/* # $FreeBSD: head/share/keys/pkg/trusted/pkg.freebsd.org.2013102301 257150 2013-10-26 03:53:24Z bdrewery $ # This key is for testing purposes only and will be revoked before 10.0-RELEASE function: "sha256" fingerprint: "b0170035af3acc5f3f3ae1859dc717101b4e6c1d0a794ad554928ca0cbb2f438" # pkg itself is at 1.2: # pkg -vv Version : 1.2.4_1 PACKAGESITE : PKG_DBDIR : /var/db/pkg PKG_CACHEDIR : /var/cache/pkg PORTSDIR : /usr/ports PUBKEY : HANDLE_RC_SCRIPTS : no ASSUME_ALWAYS_YES : no REPOS_DIR : [ /etc/pkg/, /usr/local/etc/pkg/repos/, ] PLIST_KEYWORDS_DIR : SYSLOG : yes AUTODEPS : yes ABI : freebsd:9:x86:32 DEVELOPER_MODE : no PORTAUDIT_SITE : http://portaudit.FreeBSD.org/auditfile.tbz VULNXML_SITE : http://www.vuxml.org/freebsd/vuln.xml.bz2 MIRROR_TYPE : SRV FETCH_RETRY : 3 PKG_PLUGINS_DIR : /usr/local/lib/pkg/ PKG_ENABLE_PLUGINS : yes PLUGINS : [ ] DEBUG_SCRIPTS : no PLUGINS_CONF_DIR : /usr/local/etc/pkg/ PERMISSIVE : no REPO_AUTOUPDATE : yes NAMESERVER : EVENT_PIPE : FETCH_TIMEOUT : 30 UNSET_TIMESTAMP : no SSH_RESTRICT_DIR : PKG_SSH_ARGS : PKG_ENV : { } DISABLE_MTREE : no DEBUG_LEVEL : 0 ALIAS : { } Repositories: FreeBSD: { url : "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:32/latest", enabled : yes, mirror_type : "SRV", signature_type : "FINGERPRINTS", fingerprints : "/usr/share/keys/pkg" } -- Michael W. Lucas - mwlucas at michaelwlucas.com, Twitter @mwlauthor http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/ Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e coupon code "ILUVMICHAEL" gets you 30% off & helps me.
Matthew Seaman
2014-Jan-09 17:47 UTC
pkgng upgrade "unable to find catalogs" - with key installed
On 09/01/2014 16:50, Michael W. Lucas wrote:> Trying to upgrade from pkg 1.1 to 1.2 on FreeBSD 9.1. I have > /usr/share/keys and the current trusted key, and a repo config > file. No pkg.conf. > > # pkg upgrade > Updating repository catalogue > digests.txz 100% 1082KB 1.1MB/s 1.1MB/s 00:00 > packagesite.txz 100% 5028KB 4.9MB/s 2.6MB/s 00:01 > Incremental update completed, 23171 packages processed: > 0 packages updated, 0 removed and 23171 added. > pkg: Unable to find catalogs > # > > Any suggestions? >When upgrading from 1.1.x to 1.2.4_1 I've found it necessary to re-run pkg about twice in order to get the databases and config files updated. I generally do something like this: Starting with 1.1.4: pkg install pkg This installs pkg-1.2.4_1. Now edit ${LOCALBASE}/etc/pkg and ${LOCALBASE}/etc/pkg/repo.conf or /etc/pkg/FreeBSD.conf to fix the formating to match what pkg-1.2.x expects. pkg install pkg You should get get a message about updating the schema pkg install pkg Should pull down the latest digests.txz and packagesite.txz, then report 'Nothing to do' since pkg is already fully updated. Then proceed with 'pkg upgrade' as usual. I have been using a private pkg repo though, without any crypto signatures. If the signatures prevent the above process from working correctly, then try commenting out the 'signature_type' line in FreeBSD.conf temporarily. As you're only affecting the pkg package in the above, which gets updated by pkg-1.1.4 without any crypto checking anyhow, you aren't any worse off. Once you've got pkg upgraded and the databases etc. in synch, then you can uncomment the 'signature_type' and run: pkg install -f pkg to force a reinstall with all the required signature checking. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 1036 bytes Desc: OpenPGP digital signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140109/527cf2fd/attachment.sig>
Baptiste Daroussin
2014-Jan-09 23:49 UTC
pkgng upgrade "unable to find catalogs" - with key installed
On Thu, Jan 09, 2014 at 11:50:30AM -0500, Michael W. Lucas wrote:> Hi, > > Trying to upgrade from pkg 1.1 to 1.2 on FreeBSD 9.1. I have > /usr/share/keys and the current trusted key, and a repo config > file. No pkg.conf. > > # pkg upgrade > Updating repository catalogue > digests.txz 100% 1082KB 1.1MB/s 1.1MB/s 00:00 > packagesite.txz 100% 5028KB 4.9MB/s 2.6MB/s 00:01 > Incremental update completed, 23171 packages processed: > 0 packages updated, 0 removed and 23171 added. > pkg: Unable to find catalogs > # > > Any suggestions? > > I have the current trusted key: >There is a bug in the latest set of packages we have created, we are working on a fix. regards, Bapt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140110/b24a4090/attachment.sig>