FreeBSD 12.4 pkg and freebsd-update malfunction

The problem is

Code:
root@mach:/usr/ports # freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.4-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... failed.

and pkg does not work anymore:

Code:
root@mach:/usr/ports # pkg install freebsd-update
Updating FreeBSD repository catalogue...
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/latest/meta.txz: Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/latest/packagesite.pkg: Not Found
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/latest/packagesite.txz: Not Found
Unable to update repository FreeBSD
Error updating repositories!

The version is 12.4-RELEASE-p4 releng/12.4-595be1fc5 amd64

There are no loglines or debug flags to use. The filesystem is low in memory /usr 200 MB, /var 3GB, but the programs just quit. pkg has been working previously. The OS version is outdated, ok but why it can't be updated using freebsd-update ?

Best, e
 
The OS version is outdated, ok but why it can't be updated using freebsd-update ?

you don't install freebsd-update, it is already included in the base system.
Run freebsd-update upgrade to upgrade to a supported version, then use pkg-static upgrade to update installed packages. Make sure to read the release notes for the FreeBSD version, and possibly intermediate versions, for any (breaking) changes that may affect you.
 
Run freebsd-update upgrade to upgrade to a supported version
This is the problem in the first place.
root@mach:/usr/ports # freebsd-update fetch
...
Fetching 2 metadata files... failed.
URL http://pkgmir.geo.freebsd.org/ found from output of pkg has a www-page listing versions 13 and 14. There is no version 12. Actually an another machine was able to freebsd-update from version 12.4. How to add the repository back? Is it ok to just overwrite 13.2 base.tar.gz? And then to upgrade to 14.0-RELEASE?
 
Packages for 12 are no longer available, on any of the 'official' package mirrors. But freebsd-update(8) should still work and get, at least, the last patch version for 12.4. It's on a different infrastructure. You might be hitting a bad mirror though. Or have some bad info cached. You should try emptying /var/db/freebsd-update/ (leave the directory itself in place) then do a freebsd-update fetch again.
 
If you specifically ask for a version upgrade e.g. freebsd-update -r 13.3-RELEASE upgrade does that work?

# freebsd-update -r 13.3-RELEASE upgrade Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 12.4-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Fetching 2 metadata files... failed.

No it don't. releng/12.4-595be1fc5
 
Back
Top