pkg error messages

Derek Tattersall dlt at mebtel.net
Sat Dec 7 17:48:26 UTC 2013


* Michael Gmelin <freebsd at grem.de> [131207 12:41]:
> On Sat, 7 Dec 2013 11:10:19 -0500
> Derek Tattersall <dlt at mebtel.net> wrote:
> 
> > * Michael Gmelin <freebsd at grem.de> [131207 08:16]:
> > > On Fri, 6 Dec 2013 20:46:04 -0500
> > > Derek Tattersall <dlt at mebtel.net> wrote:
> > > 
> > > > I have a 9STABLE server, amd64, with pkg 1.2.1.
> > > > When doing a pkg search or pkg update, I get the following
> > > > messages
> > > > 
> > > > pkg: Error loading trusted certificates
> > > > pkg: Unable to find catalogs
> > > > 
> > > > How do I correct this problem?
> > > > 
> > > 
> > > Can you post the output of:
> > > 
> > > find /usr/local/etc/pkg
> > > find /usr/share/keys/pkg
> > > cat /usr/local/etc/pkg/repos/*
> > > 
> > > -- 
> > > Michael Gmelin
> > 
> > [dlt at lorne:2210:~]$ find /usr/local/etc/pkg
> > /usr/local/etc/pkg
> > /usr/local/etc/pkg/repos
> > /usr/local/etc/pkg/repos/FreeBSD.conf
> > /usr/local/etc/pkg/repos/FreeBSD.conf.orig
> > [dlt at lorne:2211:~]$ find /usr/share/keys/pkg
> > gfind: '/usr/share/keys/pkg': No such file or directory
> > [dlt at lorne:2212:~]$ cat /usr/local/etc/pkg/repos/*
> > # $FreeBSD: head/etc/pkg/FreeBSD.conf 258227 2013-11-16 15:54:46Z
> > bapt $ FreeBSD: {
> >   url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
> >   mirror_type: "srv",
> >   signature_type: "fingerprints",
> >   fingerprints: /usr/share/keys/pkg,
> >   enabled: true
> > }
> > FreeBSD: {
> >   url: "pkg+http://pkg.us-east.FreeBSD.org/${ABI}/latest",
> >   mirror_type: "srv",
> >   enabled: "yes"
> > }
> >  Thanks for looking into this.  There certainly seems to be some
> > missing stuff.
> 
> 
> Hi Derek,
> 
> you're missing the keys in /usr/share/keys/pkg, those have been added
> to FreeBSD fairly recently. You have two options, either download the
> keys manually and install them on your syste,, e.g. from
> http://svnweb.FreeBSD.org/base/head/share/keys/pkg
> or alternatively comment on the lines starting with "signature_type" and
> "fingerprints" in usr/local/etc/pkg/repos/FreeBSD.conf (in which case
> pkg won't check the digital signature of packages when fetching them
> from pkgsite).
> 
> 
> 
> -- 
> Michael Gmelin
Thanks for all your help.  Between you and Brian Drewry, I was able to
properly configure pkg.  Thanks again to you both.
-- 
Best regards,
Derek Tattersall
dlt at mebtel.net		dlt666 at yahoo.com		 dtatters at gmail.com


More information about the freebsd-ports mailing list