From owner-freebsd-ports@FreeBSD.ORG Sat Dec 7 16:37:20 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F186D2CE for ; Sat, 7 Dec 2013 16:37:20 +0000 (UTC) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 5BF2617C1 for ; Sat, 7 Dec 2013 16:37:20 +0000 (UTC) Received: (qmail 52386 invoked by uid 89); 7 Dec 2013 16:37:19 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@88.217.181.85) by mail.grem.de with ESMTPA; 7 Dec 2013 16:37:19 -0000 Date: Sat, 7 Dec 2013 17:37:19 +0100 From: Michael Gmelin To: dlt@mebtel.net Subject: Re: pkg error messages Message-ID: <20131207173719.285f98c4@bsd64.grem.de> In-Reply-To: <20131207161019.GA1896@oriental.arm.org> References: <20131207014604.GA77351@oriental.arm.org> <20131207133805.2390c8cc@bsd64.grem.de> <20131207161019.GA1896@oriental.arm.org> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2013 16:37:21 -0000 On Sat, 7 Dec 2013 11:10:19 -0500 Derek Tattersall wrote: > * Michael Gmelin [131207 08:16]: > > On Fri, 6 Dec 2013 20:46:04 -0500 > > Derek Tattersall 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@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@lorne:2211:~]$ find /usr/share/keys/pkg > gfind: '/usr/share/keys/pkg': No such file or directory > [dlt@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