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

    [WORKAROUND] Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed)

    General pfSense Questions
    repo backup ssh fresh install 2.7.0-dev
    4
    67
    13.2k
    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.
    • NollipfSenseN
      NollipfSense @Sergei_Shablovsky
      last edited by

      @sergei_shablovsky I just updated and installed pfBlockerNG, no problem...I did the update from the console and the install from the webGUI...maybe you have another update.

      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

        @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

        And still missing some packages? It looks like you probably are and they must be lost during the restore.

        Please read item 1-3 from previous message: I have no ability to install ANY package
        ;)

        This is what you should see in the current snapshot:

        [2.7.0-DEVELOPMENT][admin@cedev.stevew.lan]/root: pkg info -x pfSense
        pfSense-2.7.0.a.20220513.0600
        pfSense-Status_Monitoring-1.7.11_4
        pfSense-base-2.7.0.a.20220513.0600
        pfSense-default-config-2.7.0.a.20220513.0600
        pfSense-kernel-pfSense-2.7.0.a.20220513.0600
        pfSense-pkg-System_Patches-2.0_4
        pfSense-rc-2.7.0.a.20220513.0600
        pfSense-repo-2.7.0.a.20220513.0600
        pfSense-upgrade-1.0_21
        php74-pfSense-module-0.80
        

        Steve

        That is what I have:

        pkg: No package(s) matching pfSense
        

        —
        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
        • Sergei_ShablovskyS
          Sergei_Shablovsky @NollipfSense
          last edited by

          @nollipfsense said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

          @sergei_shablovsky I just updated and installed pfBlockerNG, no problem...I did the update from the console and the install from the webGUI...

          Update from console looks like normally screen output (see previous message).

          maybe you have another update.

          What exactly a You mean? I download LATEST snapshot from official pfSense web

          —
          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.)

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

            @stephenw10

            May be some issue with SSH keys? (Please look at the error description that I write above)...

            —
            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
            • Sergei_ShablovskyS
              Sergei_Shablovsky @stephenw10
              last edited by

              @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

              Ok what I expect here is that you install a 2.7 snapshot clean (new snaps should be available later today).
              Make sure that has connectivity as expected.
              Then restore the complete config file and it should pull in the required packages at first boot.

              If that's failing then something in the config file is breaking access to the pkg repo.

              Check the repo line itself matches, for 2.7 is should be:

              		<pkg_repo_conf_path>/usr/local/share/pfSense/pkg/repos/pfSense-repo-devel.conf</pkg_repo_conf_path>
              

              Checked double twice: all as You wrote.

              —
              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
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                It looks like something in the config you're restoring is causing it to brake the pkg repo such that it overwrites the existing pkgs and cannot replace them.
                I have failed to replicate it here restoring a backup from 2.7 into 2.7.

                Try testing a basic backup config made after the clean install. That restores OK for me so if that also fails for you it must somehow be in your environment.

                Steve

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

                  @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                  It looks like something in the config you're restoring is causing it to brake the pkg repo such that it overwrites the existing pkgs and cannot replace them.

                  I come to same conclusion. Because this I decide trying to restore from .xml backup file step-by-step (mean one category at a time), so we return to my 2-nd post in this tread (with the list of packages, please see it).

                  I have failed to replicate it here restoring a backup from 2.7 into 2.7.

                  Try testing a basic backup config made after the clean install. That restores OK for me so if that also fails for you it must somehow be in your environment.

                  No, restoring the basic backup config was made successfully.

                  —
                  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
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    I still think the most likely thing here is pfBlocker. It can add aliases or Unbound lists that are unpopulated at first boot after a restore resulting in the firewall being unable to reach the pkg repo.

                    Sergei_ShablovskyS 1 Reply Last reply Reply Quote 1
                    • NollipfSenseN
                      NollipfSense @Sergei_Shablovsky
                      last edited by

                      @sergei_shablovsky said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                      What exactly a You mean? I download LATEST snapshot from official pfSense web

                      Okay, sorry my bad, thought you were updating an earlier install.

                      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

                        @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                        I still think the most likely thing here is pfBlocker. It can add aliases or Unbound lists that are unpopulated at first boot after a restore resulting in the firewall being unable to reach the pkg repo.

                        If so, how to ensure that exactly this are the source of problem?

                        —
                        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
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Remove pfBlocker and any associated rules and lists.
                          Make a new backup.
                          Restore that into a clean 2.7 install.

                          Steve

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

                            @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                            Remove pfBlocker and any associated rules and lists.
                            Make a new backup.
                            Restore that into a clean 2.7 install.

                            You mean delete from .xml backup file?

                            —
                            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
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              You can try to do that but it would be very easy to miss something.

                              I mean remove the pfBlocker package from the 2.7 instance that is failing to see updates then take a new backup from that. Then try restoring that into a clean 2.7 install.

                              J Sergei_ShablovskyS 2 Replies Last reply Reply Quote 0
                              • J
                                Jane757 Banned @stephenw10
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • Sergei_ShablovskyS
                                  Sergei_Shablovsky @stephenw10
                                  last edited by

                                  @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                                  I mean remove the pfBlocker package from the 2.7 instance that is failing to see updates then take a new backup from that. Then try restoring that into a clean 2.7 install.

                                  How to remove pfBlocker?

                                  No any packages are visible as installed in System / Package Manager...

                                  —
                                  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
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    If packages have been removed then try backing up that config and restoring it into a clean 2.7 install. You will need to manually add packages again but the config will still be there.

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Do you have RAM disks enabled in the config you're restoring?

                                      If so you're probably hitting this: https://redmine.pfsense.org/issues/13182

                                      I managed to hit that earlier and it presents exactly as you are describing here.

                                      Remove the config line that enables RAM disks and retest if you can:

                                      <use_mfs_tmpvar></use_mfs_tmpvar>
                                      

                                      Reinstall 2.7 clean and restore the config again without ramdisks.

                                      Steve

                                      Sergei_ShablovskyS 3 Replies Last reply Reply Quote 0
                                      • Sergei_ShablovskyS
                                        Sergei_Shablovsky @stephenw10
                                        last edited by

                                        @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                                        Do you have RAM disks enabled in the config you're restoring?

                                        Remove the config line that enables RAM disks and retest if you can:

                                        <use_mfs_tmpvar></use_mfs_tmpvar>
                                        

                                        Thanks You for suggestions, Steve!

                                        Please confirm, this string in /conf/config.xml are equally the RAM Disk Settings (Reboot to Apply Changes) item in System / Advanced / Miscellaneous, yes?

                                        —
                                        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
                                        • Sergei_ShablovskyS
                                          Sergei_Shablovsky @stephenw10
                                          last edited by Sergei_Shablovsky

                                          @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                                          Do you have RAM disks enabled in the config you're restoring?

                                          If so you're probably hitting this: https://redmine.pfsense.org/issues/13182

                                          I managed to hit that earlier and it presents exactly as you are describing here.

                                          I make this (checked double twice):
                                          1.
                                          installing CE 2.7.X (current snapshot from 20220520) on bare metal server (with hw RAID1, physicaly 2 HD in mirror, logically 1 Virtual Device)
                                          ping, traceroute, pkg update/upgrade, NetGate servers resolved- all OK
                                          hw reboot
                                          2.
                                          restore from config.xml backup file (RAM disk ENABLED)
                                          hw reboot
                                          ping, traceroute, - OK
                                          NetGate servers resolving - OK
                                          pkg update/upgrade - NO

                                          If restoring from config.xml backup file with manually deleted <use_mfs_tmpvar></use_mfs_tmpvar> string, this error not happened.

                                          If restoring form config.xml where <use_mfs_tmpvar></use_mfs_tmpvar> exist, then hw reboot, then manually in editor or webGUI delete <use_mfs_tmpvar></use_mfs_tmpvar>, then hw reboot,- this error still persist.

                                          So now I'l waiting for a BUG fixing from NetGate Dev side...

                                          Thank You, Steve for patience and help!

                                          —
                                          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.)

                                          stephenw10S 1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator @Sergei_Shablovsky
                                            last edited by

                                            @sergei_shablovsky said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                                            If restoring form config.xml where <use_mfs_tmpvar></use_mfs_tmpvar> exist, then hw reboot, then manually in editor or webGUI delete <use_mfs_tmpvar></use_mfs_tmpvar>, then hw reboot,- this error still persist.

                                            That's expected because by that point the conflicy in /var has happened and the pkg db is lost. The workaround currently is to remove that line from the config before restoring it.

                                            Steve

                                            Sergei_ShablovskyS 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.