From owner-freebsd-pkg@FreeBSD.ORG Wed Mar 26 18:12:18 2014 Return-Path: Delivered-To: freebsd-pkg@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 50E93566 for ; Wed, 26 Mar 2014 18:12:18 +0000 (UTC) Received: from mail.gramadosite.com.br (mail.gramadosite.com.br [187.61.1.163]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 948457CF for ; Wed, 26 Mar 2014 18:12:17 +0000 (UTC) Received: from webmail.gramadosite.com.br (localhost [127.0.0.1]) (Authenticated sender: fms@gramadosite.com.br) by mail.gramadosite.com.br (Postfix) with ESMTPA id 487CCA10959 for ; Wed, 26 Mar 2014 15:12:12 -0300 (BRT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gramadosite.com.br; s=default; t=1395857532; bh=4WHH97uG0qQHWg9oNEQ2HbQ4cOKgB0ljA1l7nUlKUM4=; h=MIME-Version:Content-Type:Date:From:To:Subject:Message-ID; b=EUPyI9+z9cTlARIh7NRr5RxjnG2pYKHNTkGL/COHf0ffOORYvukYLAqyzxaSaefWO 7/h90H21dpwfLPxJl+XoI8LilgZfr9G/Em6u/q5YzENSN29IztvgPak8jdP+Vfer6b uJK01m5oYFJVTA4g1syR19k7eLDkPyxy9f3YmJ7g= Received: from webmail.gramadosite.com.br ([192.168.8.163] helo=webmail.gramadosite.com.br) by mail.gramadosite.com.br with ESMTP (2.0.2); 26 Mar 2014 15:12:11 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 26 Mar 2014 15:12:11 -0300 From: Francisco Miralha da Silveira To: Subject: Re: Pkgng - No valid repository found. (Solved!) Organization: HighCompany.com In-Reply-To: <5332F98B.1090504@infracaninophile.co.uk> References: <5332F98B.1090504@infracaninophile.co.uk> Message-ID: X-Sender: fms@gramadosite.com.br User-Agent: Webmail-0.3-beta X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 18:12:18 -0000 [Solved!] Hi Mathew, thank you very much for your instructions. 1) After performing your suggested modifications, I received another error: # pkg update Updating repository catalogue pkg: http://pkg0.isc.freebsd.org/freebsd:9:x86:64/latest/digests.txz: No address record pkg: Unable to find catalogs So, I found that in my /usr/local/etc/pkg.conf there was a "proxy" config. So I tooked it out from pkg.conf and it gone ahead to another error: # pkg update Updating repository catalogue digests.txz 100% 1091KB 545.4KB/s 300.9KB/s 00:02 pkg: Error loading revoked certificates pkg: Unable to find catalogs So, I did this: # cd /usr/src/share/keys && make && make install; And this: # mkdir -p /usr/share/keys/pkg/trusted /usr/share/keys/pkg/revoked; And this: # rm /usr/share/keys/pkg/trusted/pkg.freebsd.org.2013102301 And this: # svn export https://svn0.us-west.FreeBSD.org/base/head/share/keys/pkg/trusted/pkg.freebsd.org.2013102301 /usr/share/keys/pkg/trusted/ And it finally worked! :D # pkg update Updating repository catalogue digests.txz 100% 1091KB 363.6KB/s 430.9KB/s 00:03 packagesite.txz 100% 5067KB 633.4KB/s 1.0MB/s 00:08 Incremental update completed, 23338 packages processed: 0 packages updated, 0 removed and 23338 added. Thanks again! Best reards Francisco ------------------------------------------------------ ###################################################### ------------------------------------------------------ On 03/26/14 11:40, Francisco Miralha da Silveira wrote: ------------------------------------------------------- Hi. I'm in trouble for two days with pkg on 9.2 with no success #uname -a FreeBSD 9.2-PRERELEASE #0: Fri Jul 12 23:07:12 BRT 2013 me@server:/usr/src/sys/amd64/compile/myeditedkernel amd64 -------------------------------------------- Recently I installed pkgng with theese commands: # portsnap fetch update # cd /usr/ports/ports-mgmt/pkg # make install clean # pkg2ng # mkdir /etc/pkg # mkdir /usr/local/etc/pkg # mkdir /usr/local/etc/pkg/repos # ee /usr/local/etc/pkg.conf ====================================== /usr/local/etc/pkg.conf ====================================== ALIAS : { all-depends: query %dn-%dv, annotations: info -A, build-depends: info -qd, download: fetch, iinfo: info -i -g -x, isearch: search -i -g -x, leaf: query -e "%a == 0" "%n-%v", leaf: query -e "%a == 0" "%n-%v", list: info -ql, origin: info -qo, provided-depends: info -qb, raw: info -R, required-depends: info -qr, shared-depends: info -qB, show: info -f -k, size: info -sq, } pkg_dbdir: "/var/db/pkg" pkg_cachedir: "/var/cache/pkg" portsdir: "/usr/ports" handle_rc_cripts: false assume_always_yes: false repos_dir: [ "/etc/pkg", "/usr/local/etc/pkg/repos", ] syslog: true autodeps: true developer_mode: false pkg_env: { # this was myerror: I do not have proxy here http_proxy: "http://myproxy:3128", } alias: { origin: "info -qo", nonauto: "query -e '%a == 0' '%n-%v'" } ====================================== # pkg info : ok, I can see a list of installed packages But # pkg install xxx or # pkg upgrade give allways the same error: Updating repository catalogue No valid repository found. I tried: # pkg repo /usr/local/etc/pkg/repos Generating repository catalog in /usr/local/etc/pkg/repos: done! # ls /usr/local/etc/pkg/repos/ digests.txz packagesite.txz #pkg upgrade Updating repository catalogue No valid repository found. What am I doing wrong? Thanks in advance for any help! Francisco ------------------------------------------------------ This is incorrect -- 'pkg repo' is a tool for maintaining a package repository. You only use it on the server side, not on the client. # ls /usr/local/etc/pkg/repos/ digests.txz packagesite.txz These will basically say "this repository contains no packages." As they are pointless there, just remove those two .txz files. ### Ok, I removed them. #pkg upgrade Updating repository catalogue No valid repository found. What am I doing wrong? You are missing the repository.conf file -- you can have as many of these as you like, and they can be called pretty much anything so long as the filename ends in .conf and the file is placed in /usr/local/etc/pkg/repos/. Try this out: save the following as /usr/local/etc/pkg/repos/FreeBSD.conf: ------------------------------ FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } ------------------------------ You'll also need to save this as /usr/share/keys/pkg/trusted/pkg.freebsd.org.2013102301 ------------------------------ function: "sha256" fingerprint: "b0170035af3acc5f3f3ae1859dc717101b4e6c1d0a794ad554928ca0cbb2f438" ------------------------------ Cheers, Matthew