Unable to upgrate 23.09.1 to 24.11
-
Hmm, odd. Try running:
pfSense-repoc -DJ
That should show you what info is being sent and which branches are being pushed back. Obviously don't post that output here.
-
In the post data repo section, I can see three repos: 24.11, 24.03, 23.09.1. The 23.09.1 has the default field set to yes; other repo sections do not have this field.
Would you tell me, how to deduce/solve the problem with the command response?
-
Ok try running:
ls -ls /usr/local/etc/pkg/repos
That should show a symlink for pfSense.conf that points to the selected repo like:
24.03-RELEASE][admin@plusdev-4.stevew.lan]/root: ls -ls /usr/local/etc/pkg/repos total 1 1 -rw-r--r-- 1 root wheel 25 Apr 19 2024 FreeBSD.conf 1 lrwxr-xr-x 1 root wheel 55 Mar 18 12:49 pfSense.conf -> /usr/local/etc/pfSense/pkg/repos/pfSense-repo-0003.conf
When you change the update branch in the webgui that symlink should be updated.
Then if you check that repo it should be 24.11 like:
[24.03-RELEASE][admin@plusdev-4.stevew.lan]/root: cat /usr/local/etc/pfSense/pkg/repos/pfSense-repo-0003.conf FreeBSD: { enabled: no } pfSense-core: { url: "pkg+https://pfsense-plus-pkg.netgate.com/pfSense_plus-v24_11_amd64-core", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/local/share/pfSense/keys/pkg", enabled: yes } pfSense: { url: "pkg+https://pfsense-plus-pkg.netgate.com/pfSense_plus-v24_11_amd64-pfSense_plus_v24_11", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/local/share/pfSense/keys/pkg", enabled: yes }
I'm guessing your install is not showing that for some reason.
-
Your guess is true, symlink did not change to the selected repo when the update branch changed in the GUI. It stays with 23.09.1.
$ ls -ls /usr/local/etc/pkg/repos total 4 4 -rw-r--r-- 1 root wheel 26 Dec 6 2023 FreeBSD.conf 0 lrwxr-xr-x 1 root wheel 62 Mar 18 16:45 pfSense.conf -> /usr/local/etc/pfSense/pkg/repos/pfSense-repo-23_09_1_rel.conf
pfSense-repo-23_09_1_rel.conf has urls for 23.09.1 in pfsense-core and pfsense section.
"pkg+https://pfsense-plus-pkg.netgate.com/pfSense_plus-v23_09_1_amd64-core" "pkg+https://pfsense-plus-pkg.netgate.com/pfSense_plus-v23_09_1_amd64-pfSense_plus_v23_09_1"
Is there any command that can be executed via the terminal to change the repo?
-
Yes you can try manually creating the symlink. What conf files do you have in
/usr/local/etc/pfSense/pkg/repos
? -
The repos directory has three config files for 23.09.1, 24.03 and 24.11
-rw-r--r-- 1 root wheel 512 Mar 18 16:45 /usr/local/etc/pfSense/pkg/repos/pfSense-repo-23_09_1_rel.conf -rw-r--r-- 1 root wheel 506 Mar 18 16:45 /usr/local/etc/pfSense/pkg/repos/pfSense-repo-24_03-rel.conf -rw-r--r-- 1 root wheel 506 Mar 18 16:45 /usr/local/etc/pfSense/pkg/repos/pfSense-repo-24_11.conf
-
OK first try running:
pfSense-repo-setup
then re-check. -
pfSense-repo-setup command did not return any message, so it should be a clean execution.
[23.09.1-RELEASE][...]/root: pfSense-repo-setup [23.09.1-RELEASE][...]/root: ls -l /usr/local/etc/pfSense/pkg/repos/*.conf -rw-r--r-- 1 root wheel 512 Mar 18 19:22 /usr/local/etc/pfSense/pkg/repos/pfSense-repo-23_09_1_rel.conf -rw-r--r-- 1 root wheel 506 Mar 18 19:22 /usr/local/etc/pfSense/pkg/repos/pfSense-repo-24_03-rel.conf -rw-r--r-- 1 root wheel 506 Mar 18 19:22 /usr/local/etc/pfSense/pkg/repos/pfSense-repo-24_11.conf
After saving the 24.11 update branch in the system update via GUI, symlink still stays with 23.09.1
[23.09.1-RELEASE][...]/root: ls -ls/usr/local/etc/pfkg/repos total 4 4 -rw-r--r-- 1 root wheel 26 Dec 6 2023 FreeBSD.conf 0 lrwxr-xr-x 1 root wheel 62 Mar 18 19:24 pfSense.conf -> /usr/local/etc/pfSense/pkg/repos/pfSense-repo-23_09_1_rel.conf [23.09.1-RELEASE][...]/root:
-
Hmm, weird. Is it not updating the line in the config perhaps?
Anyway you should be able to run:
rm /usr/local/etc/pkg/repos/pfSense.conf
Then:
ln -s /usr/local/etc/pfSense/pkg/repos/pfSense-repo-24_11.conf /usr/local/etc/pkg/repos/pfSense.conf
That should allow it to see the 24.11 upgrade.
-
ln -s ... command created the symlink pointing 24.11 conf and it is verified too.
[23.09.1-RELEASE][...]/root: ls -ls /usr/local/etc/pkg/repos total 4 4 -rw-r--r-- 1 root wheel 26 Dec 6 2023 FreeBSD.conf 0 lrwxr-xr-x 1 root wheel 56 Mar 18 20:06 pfSense.conf -> /usr/local/etc/pfSense/pkg/repos/pfSense-repo-24_11.conf
When I tried to update via Sys => Update => System Update, the page returned 'Up to date' status with 23.09.1 as the base and latest versions. Symlink verification for pfSense.conf shows that the config reverted to 23.09.1. It seems the problem lies with the GUI.
[23.09.1-RELEASE][...]/root: ls -ls/usr/local/etc/pfkg/repos total 4 4 -rw-r--r-- 1 root wheel 26 Dec 6 2023 FreeBSD.conf 0 lrwxr-xr-x 1 root wheel 62 Mar 18 20:14 pfSense.conf -> /usr/local/etc/pfSense/pkg/repos/pfSense-repo-23_09_1_rel.conf
Should I retry the update via option 13 after recreating the symlink?
Will it cause problems? -
Try running
pfSense-upgrade
directly after creating the symlink.