pkg update

David Christensen dpchrist at
Sat Jun 6 03:08:03 UTC 2020

On 2020-06-05 18:35, Brandon helsley wrote:
> my internet connection is up and ping is working, Although I cannot update pkg. why am i having this problem? it has happened before but starts working again after a few hours usually. this time it is for days.
> root at machine17:~ # pkg update
> Updating FreeBSDlatest repository catalogue...
> pkg:;latest/meta.txz: Not Found

That URL is bad.  If I remove the semicolon before 'latest', it works:

My guess is that you have a bad configuration setting (?).

Here is my machine:

2020-06-05 20:03:37 toor at vf1 ~/Dpchrist-Perl-b0_01063002/t
# freebsd-version && uname -a
FreeBSD 12.1-RELEASE-p5 FreeBSD 
12.1-RELEASE-p5 GENERIC  amd64

Here is my pkg.conf, which I have not modified.  Compare it to yours:

2020-06-05 20:04:04 toor at vf1 ~/Dpchrist-Perl-b0_01063002/t
# grep -v '#' /usr/local/etc/pkg.conf | grep .
ALIAS              : {
   all-depends: query %dn-%dv,
   annotations: info -A,
   build-depends: info -qd,
   cinfo: info -Cx,
   comment: query -i "%c",
   csearch: search -Cx,
   desc: query -i "%e",
   download: fetch,
   iinfo: info -ix,
   isearch: search -ix,
   prime-list: "query -e '%a = 0' '%n'",
   prime-origins: "query -e '%a = 0' '%o'",
   list: info -ql,
   noauto = "query -e '%a == 0' '%n-%v'",
   options: query -i "%n - %Ok: %Ov",
   origin: info -qo,
   provided-depends: info -qb,
   rall-depends: rquery %dn-%dv,
   raw: info -R,
   rcomment: rquery -i "%c",
   rdesc: rquery -i "%e",
   required-depends: info -qr,
   roptions: rquery -i "%n - %Ok: %Ov",
   shared-depends: info -qB,
   show: info -f -k,
   size: info -sq,

If that doesn't work, try the --debug option to pkg(8) and look for clues.


More information about the freebsd-questions mailing list