Newer FreeBSD version for package zzlib when doing pkg upgrade in jail

Dwarf Cavendish

Contributor
Joined
Dec 19, 2017
Messages
121
I haven't maintained my jails in a little while and I thought I'd pop in and upgrade them again. But alas, pkg upgrade tells me "newer version Newer FreeBSD version for package zzlib", "package 1203000" and "kernel 1202000" (apologies for not copy/pasting the output: copying from the console is not working for me).

I tried if upgrading my jail helped (to the latest, 12.2-RELEASE-p15), but it didn't. The version that I'm running is TrueNAS-12.0-U8.1.

I want to fix some vulnerabilities in my jail by updating. How should I proceed now?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Upgrade your jail to FreeBSD 12.3. 12.2 is EOL.

Better yet, upgrade your TrueNAS to 13 and your jail to 13.1.
 

Dwarf Cavendish

Contributor
Joined
Dec 19, 2017
Messages
121
...yeah, I figured that out myself by now, that TrueNAS 13 is out now. I'm usually prompted to do upgrades by emails that I get from my server, but it doesn't do that when a new train is available. Well, looks like I have some upgrading to do then...
 

Dwarf Cavendish

Contributor
Joined
Dec 19, 2017
Messages
121
Upgrade your jail to FreeBSD 12.3. 12.2 is EOL.

Better yet, upgrade your TrueNAS to 13 and your jail to 13.1.
Just checking: it appears that the TrueNAS GUI isn't offering the possibility to upgrade to a new major release of FreeBSD. I wouldn't mind using iocage directly to do this, but I'd rather do it through the GUI if possible. Could I perhaps be overlooking something?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Sorry, I always use iocage ...
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The "way" to do that in the GUI is to delete your jail and make a new one.

If you're doing your jails right, it should just be a question of adding back the storage mounts and a little work with pkg to put the app back (if you're not using plugins), then make sure the user and UIDs match what you had before.

Upgrades of major versions take forever and always have that annoying set of prompts where you have to quit the readme 3 times to proceed, so you can't even go away and leave it to run.
 

Dwarf Cavendish

Contributor
Joined
Dec 19, 2017
Messages
121
So I just discovered, I reckon it took 2 hours for a single jail to upgrade using iocage from a shell. Luckily I only have 2 of them :smile: .
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You can reduce that time substantially by first deleting /usr/src in the jail (assuming you only use pkgs, not ports), but it's still an archaic process when compared to creating a new jail in a few minutes (let's say max 15 to do all the config).
 

Dwarf Cavendish

Contributor
Joined
Dec 19, 2017
Messages
121
You can reduce that time substantially by first deleting /usr/src in the jail (assuming you only use pkgs, not ports), but it's still an archaic process when compared to creating a new jail in a few minutes (let's say max 15 to do all the config).
Believe it or not, but I'm just too lazy to recreate my jails and redo the config I did in them :wink: . I'll keep the cleaning out of /usr/src in mind for the next time, though!
 
Top