Problem with pkg.freebsd.org or me?

I know, I know. The likelihood that it's them and not me is low. But here's the thing.

I just upgraded to FreeBSD 13.2-RELEASE from 13.0. Now I'm upgrading packages. I've cooked it down to a single package that won't install and it's a dependency that kinda stops everything from moving forward.

I run pkg -d upgrade libnghttp2 and lots of stuff goes by. I'll save you the bits that are normal and focus on the bits that are abnormal.

It asks me

Code:
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        libnghttp2: 1.48.0 -> 1.55.1_1

Number of packages to be upgraded: 1

129 KiB to be downloaded.

Proceed with this action? [y/N]: y

So I proceed, and here's what I see. The bottom line appears to be that http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/All/libnghttp2-1.55.1_1.pkg is a 404.

Code:
DBG(1)[70251]> Request to fetch pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/All/libnghttp2-1.55.1_1.pkg
DBG(1)[70251]> curl_open
DBG(1)[70251]> Fetch: fetcher used: pkg+http
DBG(1)[70251]> curl> fetching http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/All/libnghttp2-1.55.1_1.pkg

DBG(1)[70251]> CURL> attempting to fetch from , left retry 3

* processing: (nil)
* Couldn't find host pkgmir.geo.freebsd.org in the (nil) file; using defaults
* Found bundle for host: 0x82b9d01a0 [serially]
* Re-using existing connection with host pkgmir.geo.freebsd.org
> GET /FreeBSD:13:amd64/latest/All/libnghttp2-1.55.1_1.pkg HTTP/1.1
Host: pkgmir.geo.freebsd.org
Accept: */*
If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT

< HTTP/1.1 404 Not Found
* Failed writing header
* Closing connection
DBG(1)[70251]> CURL> attempting to fetch from , left retry 2

* processing: (nil)
* Couldn't find host pkg0.tuk.freebsd.org in the (nil) file; using defaults
*   Trying 204.15.11.66:80...
* Connected to pkg0.tuk.freebsd.org (204.15.11.66) port 80
> GET /FreeBSD:13:amd64/latest/All/libnghttp2-1.55.1_1.pkg HTTP/1.1
Host: pkg0.tuk.freebsd.org
Accept: */*
If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT

< HTTP/1.1 404 Not Found
* Failed writing header
* Closing connection
DBG(1)[70251]> CURL> attempting to fetch from , left retry 1

* processing: (nil)
* Couldn't find host pkg0.bme.freebsd.org in the (nil) file; using defaults
*   Trying 213.138.116.73:80...
* Connected to pkg0.bme.freebsd.org (213.138.116.73) port 80
> GET /FreeBSD:13:amd64/latest/All/libnghttp2-1.55.1_1.pkg HTTP/1.1
Host: pkg0.bme.freebsd.org
Accept: */*
If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT

< HTTP/1.1 404 Not Found
* Failed writing header
* Closing connection
pkg: An error occured while fetching package
DBG(1)[70251]> release an advisory lock on a database

I've tried sudo pkg -f bootstrap, but that didn't change anything. Am I doing something wrong? Or is this actually a temporary blip over at pkg.freebsd.org?
 
Looks like something's amiss. According to Freshports latest repo for amd64 should have 1.56.0.

Try pkg update -f then pkg upgrade (upgrade all packages)
 
That was it. Doing pkg update -f worked, and then I was able to upgrade the one package. Of course, now I can also upgrade all the others. Thanks for the quick and helpful reply!
 
Your locally cached catalog was simply out of date and apparently didn't update itself. Forcing the update usually solves issues like this.
 
Back
Top