Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Version 2.5.2 Upgrade > 2.6.0 or 2.7.0

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    21 Posts 11 Posters 13.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      old_man_noBS @stephenw10
      last edited by

      @stephenw10 getting the same error as the OP when I tried to upgrade from 2.5.2 to 2.7.

      FreeBSD:14:amd64

      pfSense-2.5.2
      pfSense-Status_Monitoring-1.7.11_3
      pfSense-base-2.5.2
      pfSense-default-config-2.5.2
      pfSense-kernel-pfSense-2.5.2
      pfSense-pkg-System_Patches-2.2.4
      pfSense-rc-2.5.2
      pfSense-repo-2.7.0_2
      pfSense-repoc-20230616
      pfSense-upgrade-1.0_33
      php74-pfSense-module-0.72

      O 1 Reply Last reply Reply Quote 0
      • O
        old_man_noBS @old_man_noBS
        last edited by

        At this point, I just want to reinstall pfgblocker but it fails, probably the same error. Then I can just do a fresh install on another machine

        S 1 Reply Last reply Reply Quote 0
        • F
          Finger79 @Delodien
          last edited by

          @Delodien said in Version 2.5.2 Upgrade > 2.6.0 or 2.7.0:

          Any help would be appreciated! We can manually install 2.7.0 and copy the config over, which works, but we'd rather not do that to 30+ appliances...

          This might still be the quickest and safest path to victory, plus it gives you a chance to reinstall as ZFS instead of UFS.

          Sergei_ShablovskyS 1 Reply Last reply Reply Quote 2
          • S
            SteveITS Galactic Empire @old_man_noBS
            last edited by

            @old_man_noBS You can’t install pfBlocker if you’re on 2.5, there is not a path to do so. Previous Stable branch would be 2.6. Need to be installing for the version you have.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            O 1 Reply Last reply Reply Quote 1
            • O
              old_man_noBS @SteveITS
              last edited by

              @SteveITS my repo stuff was messed up, in the GUI I set the update back to 2.6 and then ran the commands in this order:

              • pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade

              • pkg-static bootstrap -f

              • pfSense-upgrade -d -c

              This did the trick, then I upgrade to 2.6 and then 2.7, but pfblocker was missing some whitelists once I reinstalled it.

              Thanks for the help

              A C G M W 5 Replies Last reply Reply Quote 12
              • D
                Delodien @stephenw10
                last edited by

                @stephenw10

                So both pfSense-repo.abi and pkg.conf both state "14".

                When I run pkg-static info -x pfsense I get the below:

                pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
                pfSense-2.5.2
                pfSense-Status_Monitoring-1.7.11_3
                pfSense-base-2.5.2
                pfSense-default-config-2.5.2
                pfSense-kernel-pfSense-2.5.2
                pfSense-rc-2.5.2
                pfSense-repo-2.7.0_2
                pfSense-repoc-20230616
                pfSense-upgrade-1.0_33
                php74-pfSense-module-0.72
                

                I thought I'd try the commands put forward by old_man_noBS while I was testing, this resulted in the below (sorry for the long snippets!)

                [2.5.2-RELEASE][admin@pfSense.home.arpa]/root: pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade
                pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
                The following package files will be deleted:
                        /var/cache/pkg/pfSense-repo-2.5.2_3~fa1de5fcfd.txz
                        /var/cache/pkg/pkg-1.17.5_3~b8e15d34b2.pkg
                        /var/cache/pkg/pfSense-repo-2.5.2_3.txz
                        /var/cache/pkg/pkg-1.17.5_3.pkg
                        /var/cache/pkg/pfSense-repo-2.6.0_13~0d7a433338.pkg
                        /var/cache/pkg/pfSense-upgrade-1.0_33~bc1ca8a51c.pkg
                        /var/cache/pkg/pfSense-repo-2.6.0_13.pkg
                        /var/cache/pkg/pfSense-upgrade-1.0_15~0cc5b4f75f.pkg
                        /var/cache/pkg/pfSense-upgrade-1.0_15.pkg
                        /var/cache/pkg/pfSense-repo-2.7.0_2~bbaf1ea8ca.pkg
                        /var/cache/pkg/pfSense-repo-2.7.0_2.pkg
                        /var/cache/pkg/pfSense-repoc-20230616~d7b634de39.pkg
                        /var/cache/pkg/pfSense-upgrade-1.0_33.pkg
                        /var/cache/pkg/libucl-0.8.2~2abcb45dce.pkg
                        /var/cache/pkg/pfSense-repoc-20230616.pkg
                        /var/cache/pkg/uclcmd-0.2.20211204.pkg
                        /var/cache/pkg/libucl-0.8.2.pkg
                        /var/cache/pkg/uclcmd-0.2.20211204~9a8a1b81fc.pkg
                The cleanup will free 9 MiB
                Deleting files: 100%
                All done
                pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
                Updating pfSense-core repository catalogue...
                pfSense-core repository is up to date.
                Updating pfSense repository catalogue...
                Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
                Fetching packagesite.pkg: 100%  156 KiB 159.4kB/s    00:01
                Processing entries:   0%
                pkg-static: Newer FreeBSD version for package zstd:
                To ignore this error set IGNORE_OSVERSION=yes
                - package: 1400085
                - running kernel: 1202504
                
                pkg-static: repository pfSense contains packages for wrong OS version: FreeBSD:14:amd64
                Processing entries: 100%
                Unable to update repository pfSense
                Error updating repositories!
                
                [2.5.2-RELEASE][admin@pfSense.home.arpa]/root: pkg-static bootstrap -f
                pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
                pkg(8) is already installed. Forcing reinstallation through pkg(7).
                The package management tool is not yet installed on your system.
                Do you want to fetch and install it now? [y/N]: y
                Bootstrapping pkg from pkg+https://pkg.pfsense.org/pfSense_v2_7_0_amd64-pfSense_v2_7_0, please wait...
                pkg: Error fetching https://pkg.pfsense.org/pfSense_v2_7_0_amd64-pfSense_v2_7_0/Latest/pkg.txz: Not Found
                A pre-built version of pkg could not be found for your system.
                Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
                
                [2.5.2-RELEASE][admin@pfSense.home.arpa]/root: pfSense-upgrade -d -c
                pfSense-repoc-static: si_get_packages: failed to run the pkg info command: /usr/local/sbin/pkg-static info -R --raw-format json-compact pfSense-pkg-\* 2>&1
                pfSense-repoc-static: no pfSense packages installed
                pfSense-repoc-static: invalid signature
                failed to read the repo data.
                failed to update the repository settings!!!
                failed to update the repository settings!!!
                
                D 1 Reply Last reply Reply Quote 0
                • D
                  Delodien @Delodien
                  last edited by

                  Sorry for the double post!

                  I've revisited this and following the steps old_man_noBS completed again, this time ensuring I was set to the 2.6.0 channel instead of 2.7.0.

                  I ran the commands mentioned and then clicked on update on the WebUI and the system went through the update process as expected.

                  Once it got to 2.6.0, it then went to 2.7.0 fine using the usual method.

                  Obviously not ideal but definitely better than doing it manually!

                  1 Reply Last reply Reply Quote 0
                  • A
                    arkanista @old_man_noBS
                    last edited by

                    @old_man_noBS Thanks, this solution worked perfectly.

                    1 Reply Last reply Reply Quote 1
                    • Z zippydan referenced this topic on
                    • stephenw10S stephenw10 referenced this topic on
                    • C
                      Clouseau @old_man_noBS
                      last edited by

                      @old_man_noBS Had exactly the same issue that you had and these commands fixed the situasion! Thank you for posting this!

                      –--------------------------------------------------------------
                      Multible Alix 2D13, APU1,APU2,APU3 - pfSense 2.4.x 64bit
                      Multible Vmware vSphere - pfSense 2.4.x 64bit

                      pfSense - FreeNAS - OwnCloud

                      1 Reply Last reply Reply Quote 0
                      • U unsichtbarre referenced this topic on
                      • G
                        gimpyviper @old_man_noBS
                        last edited by

                        @old_man_noBS This worked like an absolute champ. Thanks!!

                        1 Reply Last reply Reply Quote 0
                        • S
                          SteveITS Galactic Empire
                          last edited by

                          FWIW the 3 commands above are detailed here:
                          https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html#upgrade-not-offered-library-errors

                          pfSense-pkg-System_Patches-2.2.4

                          Was there a System Patches package for 2.5.2? If not and/or it was installed from a 2.6 or 2.7 repo that could well mess things up (per my sig). v2.2.4 is the version I have on my router with 23.05.1...it says it's out of date currently but it would have been current a few months ago.

                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                          Upvote 👍 helpful posts!

                          1 Reply Last reply Reply Quote 0
                          • M
                            mikeisfly @old_man_noBS
                            last edited by

                            @old_man_noBS This did the trick for me, thanks.

                            1 Reply Last reply Reply Quote 0
                            • Sergei_ShablovskyS
                              Sergei_Shablovsky @Finger79
                              last edited by

                              @Finger79 said in Version 2.5.2 Upgrade > 2.6.0 or 2.7.0:

                              @Delodien said in Version 2.5.2 Upgrade > 2.6.0 or 2.7.0:

                              Any help would be appreciated! We can manually install 2.7.0 and copy the config over, which works, but we'd rather not do that to 30+ appliances...

                              This might still be the quickest and safest path to victory, plus it gives you a chance to reinstall as ZFS instead of UFS.

                              At this time I suggest starting to using Ansible. (Ansible great in case that You have also a lot of active network equipment. Because You still using 2.5… in 2023, so maybe You have a lot of CONSOLE-controlled equipment also ;)

                              Ansible help You saving a THOUSANDS of $/hour.

                              —
                              CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                              Help Ukraine to resist, save civilians people’s lives !
                              (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                              1 Reply Last reply Reply Quote 0
                              • D dfadayomi referenced this topic on
                              • W
                                wimlauwaert @old_man_noBS
                                last edited by

                                @old_man_noBS Tnx ! Worked like a charm.

                                1 Reply Last reply Reply Quote 0
                                • S SteveITS referenced this topic on
                                • S SteveITS referenced this topic on
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.