Date: Wed, 26 Mar 2014 15:12:11 -0300 From: Francisco Miralha da Silveira <fms@gramadosite.com.br> To: <freebsd-pkg@freebsd.org> Subject: Re: Pkgng - No valid repository found. (Solved!) Message-ID: <sighy.2162eb1115.ca9e7b192f55f3ac7b30934515c961c2@gramadosite.com.br> In-Reply-To: <5332F98B.1090504@infracaninophile.co.uk> References: <sighy.616256cc62.3f140066d4b2f87f421c2b33ad88cecd@gramadosite.com.br> <5332F98B.1090504@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
[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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?sighy.2162eb1115.ca9e7b192f55f3ac7b30934515c961c2>