Can't seem to upgrade anything!

NumberSix

Contributor
Joined
Apr 9, 2021
Messages
188
Hi
My main task is to upgrade my Logitech Media Server (LMS), using the methods presented here: https://audiodigitale.eu/?p=87

To my embarassment, I don't recall if I originally used his install method (mentioned first), or his 'Port' method, (mentioned second), but whatever I try I get the same result. For example, in the LMS Jail, going with
pkg install portmaster
The result I get is:
root@LMS:~ # pkg install portmaster
Updating plugin-default repository catalogue...
pkg: http://pkg.freebsd.org/FreeBSD:12:amd64/latest/meta.txz: Not Found
repository plugin-default has no meta file, using default settings
pkg: http://pkg.freebsd.org/FreeBSD:12:amd64/latest/packagesite.pkg: Not Found
pkg: http://pkg.freebsd.org/FreeBSD:12:amd64/latest/packagesite.txz: Not Found
Unable to update repository plugin-default
Error updating repositories!

I noticed that when I tried:
pkg install curl
or even:
sudo pkg update
I get essentially the same blast of 'Not Found's for anything I try. I feel like a fool, like I must be missing something so elementary. It's quite possible, as please note, I am a total noob with the CLI and with FreeBSD in general. I recall a handfull of UNIX commands from decades age related to changing directories and not much else - so please, assume I'm a complete innocent and you won't go far wrong! Thank you for your thoughts.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Joined
Oct 22, 2019
Messages
3,641
FreeBSD 12 is EOL.

You'll need to upgrade your jail to FreeBSD 13.3-RELEASE, and then update via "pkg" inside the jail.

* Assuming you are on TrueNAS Core 13.0+.
 

NumberSix

Contributor
Joined
Apr 9, 2021
Messages
188
FreeBSD 12 is EOL.

You'll need to upgrade your jail to FreeBSD 13.3-RELEASE, and then update via "pkg" inside the jail.

* Assuming you are on TrueNAS Core 13.0+.
Oh no!
I wanted to hang on to the 'if it ain't broke, don't fix it' school of thought, but then I forgot the programmer's maxim: "If it ain't broke, fix it 'til it is".

I think I'll check out Srtella's pointer first as, initially at least, it seems the least disruptive. Just in case that doesn't work though, are there any instructions anywhere on how to upgrade to 13.3, does it need to go 13.0, 13.1, 13.2 first, and need I add, WITHOUT endangering any of my data? Thank you.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
In the ports directory, you could use this option to revert to a version of ports when 12 was still supported:
git switch 2021Q1 (I didn't check what date/quarter that is exactly, but that gives you the idea)

You can also pick up zipped copies of the ports tree at various points (like 12-eol) from this page https://cgit.freebsd.org/ports/
 
Top