Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2014 16:00:11 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-pkg@freebsd.org
Subject:   Re: Pkgng - No valid repository found.
Message-ID:  <5332F98B.1090504@infracaninophile.co.uk>
In-Reply-To: <sighy.616256cc62.3f140066d4b2f87f421c2b33ad88cecd@gramadosite.com.br>
References:  <sighy.616256cc62.3f140066d4b2f87f421c2b33ad88cecd@gramadosite.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--cfJxGTkW60r9JNFbEESXQhxnCNjkTB4a9
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 03/26/14 11:40, Francisco Miralha da Silveira wrote:
> Hi.
>=20
> I'm in trouble for two days with pkg on 9.2 with no success
>=20
> #uname -a
> FreeBSD 9.2-PRERELEASE #0: Fri Jul 12 23:07:12 BRT 2013
> me@server:/usr/src/sys/amd64/compile/myeditedkernel  amd64
>=20
> --------------------------------------------
>=20
> Recently I installed pkgng with theese commands:
>=20
> # portsnap fetch update
> # cd /usr/ports/ports-mgmt/pkg
> # make install clean
>=20
> # pkg2ng
>=20
> # mkdir /etc/pkg
> # mkdir /usr/local/etc/pkg
> # mkdir /usr/local/etc/pkg/repos
> # ee /usr/local/etc/pkg.conf
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> /usr/local/etc/pkg.conf
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 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 =3D=3D 0" "%n-%v",
>   leaf: query -e "%a =3D=3D 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,
>   }
>=20
>            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: {
>                http_proxy: "http://myproxy:3128",
>            }
>            alias: {
>                origin: "info -qo",
>                nonauto: "query -e '%a =3D=3D 0' '%n-%v'"
>            }
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20
> # pkg info : ok, I can see a list of installed packages
>=20
> But # pkg install xxx or # pkg upgrade give allways the same error:
>=20
> Updating repository catalogue
> No valid repository found.
>=20
> I tried:
> # pkg repo /usr/local/etc/pkg/repos
> Generating repository catalog in /usr/local/etc/pkg/repos: done!

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.

> #pkg upgrade
> Updating repository catalogue
> No valid repository found.
>=20
> 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






--cfJxGTkW60r9JNFbEESXQhxnCNjkTB4a9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTMvmVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnwFsP+wRnBzo4LJTIk1zOBkmL2BDB
zBAcOx1Fpk0hgGKSdWwJXf3Jz+1IxET5mYMjVdxx8ILUM6Pd/AI1+r8UIWg06oB7
HXqCdLRvHF2tfO65QSomERjXf+y1SKWskJ8eyDZMLF3WMs/xA9dLFI4TVzzwvfQN
Cr025ifbLsDu6HS4wF69hSldhuFsd6SbEW3NXhO0EzS/zT3wZSkdWLxe4JAywEAy
6UDzbwEzOEZKCN3W6Bieci6wIYDI+MbqPl4sY++8v7w9sO2/UzGTbAeTEJLiMgkN
KinMlEhe1ky2idmlemjO2lKK5yuD3avSKSS9Tw0/mnp1PwVNOWQMmzyrVksiH5ay
1tvntAmA1NojMBDg/H8KeM+wcq1E/N6nlnn/dxJfai1/6LmVpl90zOyGo8Trj/aZ
+HKUgTK1YGr4PPJBKn1k+2fIuUqh6jU7bhkUlSNp0D4zG5FwllgJ+QtOnMsX7pZo
8lUfvqASPwK4e3sANZGcUlTqCUkRlHzU5k1CgEINUnAupvTx0s+fZyC+KEVHpJgz
V3k0DMjLRKOy0P3QH6fEQVVGye1XEi+1U+ZbZIy2tqyuoiwGjzbNog6GN7RvsTpM
FtLNb+cY/RzIU+v5ft66OLpLJn+7vHX3xsu5Fiv7ThD7yAagE6lPIRRPN3r9IVW4
m8cMbccvSn+wNbQ6+pFn
=wVQJ
-----END PGP SIGNATURE-----

--cfJxGTkW60r9JNFbEESXQhxnCNjkTB4a9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5332F98B.1090504>