HTTP Header error on pkg update in all jails

Hi all,

I have a Truenas Core server running version TrueNAS-12.0-U8.1. I don´t have physical access to it regularly, and for that reason I am holding off upgrading until such time. In the mean time,
The server is running a few iocage jails, about half running version 12.3-RELEASE-p12, and the other half 12.3-RELEASE-p5.

I would like to pkg install some stuff in a couple pf my jails, but hit a problem.
I get the same result in all the jails. On running pkg update, I get this error:

root@jailname:~ # pkg update
Updating FreeBSD repository catalogue...
pkg: An error occured while fetching package
pkg: Impossible to get the value from Last-Modified HTTP header
pkg: An error occured while fetching package
pkg: Impossible to get the value from Last-Modified HTTP header
repository FreeBSD has no meta file, using default settings
pkg: An error occured while fetching package
pkg: Impossible to get the value from Last-Modified HTTP header
pkg: An error occured while fetching package
pkg: Impossible to get the value from Last-Modified HTTP header
Unable to update repository FreeBSD
Error updating repositories!

I have searched the forums, and also googled a whole lot, but haven´t found any solution yet. Anyone here that has seen this and knows why it happens?
I tried rebooting the jail, rebooting the server, I tried pkg update with force options, but haven´t found an answer yet. I also switched from latest to quarterly, but that didn´t help either.

FreeBSD 12 is EOL. The package repository simply does not exist anymore. You must run a supported FreeBSD release to install packages.

At the moment that would imply upgrading your TrueNAS to the 13.3 BETA release and all jails to 13.3.

So is 13.2. :pensive:

I suspected that might be the case. But was hoping there was a way to work around that problem until I am able to solve it. Is there no such thing as a legacy repository for pkg that you could use, or anything like that?

Nope. The FreeBSD project actively deletes all EOL software from their servers. Knowingly shipping outdated software might be considered gross negligence in some legislatures.

Got it!
Thank you for clarifying.