pkgng upgrade "unable to find catalogs" - with key installed
Michael W. Lucas
mwlucas at michaelwlucas.com
Thu Jan 9 23:12:54 UTC 2014
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
...
<edit pkg.conf to remove pkg-test>
...
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
<install keys and FreeBSD.conf repo file, pkg.conf contains only
comments now>
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 at 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 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.
More information about the freebsd-stable
mailing list