From owner-freebsd-stable@FreeBSD.ORG Thu Jan 9 23:12:54 2014 Return-Path: Delivered-To: freebsd-stable@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 B990B7A1 for ; Thu, 9 Jan 2014 23:12:54 +0000 (UTC) Received: from bewilderbeast.blackhelicopters.org (mwlucas-2-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:b9c::2]) (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 4E5E31951 for ; Thu, 9 Jan 2014 23:12:54 +0000 (UTC) Received: from bewilderbeast.blackhelicopters.org (localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.14.7/8.14.7) with ESMTP id s09NCmTR035876 for ; Thu, 9 Jan 2014 18:12:49 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.14.7/8.14.7/Submit) id s09NCmMA035875 for freebsd-stable@freebsd.org; Thu, 9 Jan 2014 18:12:48 -0500 (EST) (envelope-from mwlucas) Date: Thu, 9 Jan 2014 18:12:48 -0500 From: "Michael W. Lucas" To: freebsd-stable@freebsd.org Subject: Re: pkgng upgrade "unable to find catalogs" - with key installed Message-ID: <20140109231248.GA35846@bewilderbeast.blackhelicopters.org> References: <20140109165029.GA97360@bewilderbeast.blackhelicopters.org> <52CEE0C4.3040307@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52CEE0C4.3040307@FreeBSD.org> User-Agent: Mutt/1.5.22 (2013-10-16) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (bewilderbeast.blackhelicopters.org [127.0.0.1]); Thu, 09 Jan 2014 18:12:49 -0500 (EST) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 23:12:54 -0000 On Thu, Jan 09, 2014 at 05:47:48PM +0000, Matthew Seaman wrote: > 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: Thanks for the suggestion. Sadly, that doesn't seem to work here. Starting from a server I haven't touched yet: dns5; pkg -v 1.1.4 ... ... dns5; grep -v ^# pkg.conf packagesite: http://pkg.freebsd.org/${ABI}/latest dns5; pkg install pkg Updating repository catalogue digests.txz 100% 1081KB 1.1MB/s 20.9KB/s 00:01 packagesite.txz 100% 5038KB 1.6MB/s 3.0MB/s 00:03 pkg: Skipping malformed dependency docbook-xml pkg: Skipping malformed dependency docbook Incremental update completed, 0 packages processed: 0 packages updated, 0 removed and 23127 added. New version of pkg detected; it needs to be installed first. After this upgrade it is recommended that you do a full upgrade using: 'pkg upgr ade' The following 1 packages will be installed: Upgrading pkg: 1.1.4_7 -> 1.2.4_1 The installation will require 1 MB more space 1 MB to be downloaded Proceed with installing packages [y/N]: y pkg-1.2.4_1.txz 100% 1772KB 1.7MB/s 1.4MB/s 00:01 Checking integrity... done [1/1] Upgrading pkg from 1.1.4_7 to 1.2.4_1... done dns5; pkg install pkg Updating repository catalogue digests.txz 100% 1081KB 1.1MB/s 1.1MB/s 00:00 packagesite.txz 100% 5037KB 4.9MB/s 2.2MB/s 00:01 Incremental update completed, 23128 packages processed: 0 packages updated, 0 removed and 23128 added. pkg: Unable to find catalogs dns5; This is pretty consistent. Just to be sure, here's the pkg config on this host: dns5/usr/local/etc;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:64 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:64/latest", enabled : yes, mirror_type : "SRV" } dns5/usr/local/etc;uname -a FreeBSD dns5.lodden.com 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Any other thoughts? ==ml > > 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 > > -- Michael W. Lucas - mwlucas@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.