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

    Unable to check for updates, Package Manager not working

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    package managersystemupdate
    12 Posts 5 Posters 10.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.
    • GertjanG
      Gertjan
      last edited by Gertjan

      @cheemg said in Unable to check for updates, Package Manager not working:

      ERROR: It was not possible to identify which pfSense kernel is installed.

      See here

      As far as I know, you're the second one who saw the

      ERROR: It was not possible to identify which pfSense kernel is installed
      

      It look like the list with installed packages - type "pkg-static info" to see them - got destroyed.
      That's bad, as pfSense doesn't know "who it is" itself. So no way to upgrade as it doesn't know from where to upgrade from.

      It could be the file system that needs a check (see the Youtube => Netgate => fsck video).
      This one. Is your file system ok ?

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 1
      • C
        CheeMG
        last edited by

        @gertjan

        Thank you gertjan for the response.

        I cannot reboot to single user mode to do fsck as per the youtube video as I am remote.
        However, I had already done a Reboot with Filesystem check under Diagnostics->Reboot and it didn't help.

        Is it safe to do this?
        pkg install pfSense pfSense-base pfSense-default-config pfSense-kernel-pfSense pfSense-rc pfSense-repo pfSense-upgrade
        Do you know if this command can bring the firewall? The pfSense-default-config will reset to factory defaults (we don't this)? Our firewall is production live and we cannot risk any downtime.
        Got the above command from the link below:
        https://forum.netgate.com/topic/109945/error-it-was-not-possible-to-identify-which-pfsense-kernel-is-installed/22

        This is our production firewall and we bring it down long for too long to do a reinstall. Also cannot risk running commands that can bring the firewall down. Probably have to get a replacement...

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @CheeMG
          last edited by

          @cheemg said in Unable to check for updates, Package Manager not working:

          However, I had already done a Reboot with Filesystem check under Diagnostics->Reboot and it didn't help.

          Diagnostics->Reboot ?
          That's the GUI.

          I was not talking about the GUI access.
          The CONSOLE access !!!!!!!!!!!
          Only with that access you can, like any other PC type device on planet earth, choose, during boot, which boot device is used to boot.
          Normally, like a PC (pfSEnse/Netgate isn't actually any different here), it boots "from the internal hard disk" During re installation, you should override this, so the system boots from the USB key.
          See manual.

          The console access is also needed to do a file system check.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          C 1 Reply Last reply Reply Quote 0
          • C
            CheeMG @Gertjan
            last edited by

            @gertjan
            Thank you gertjan.
            I know it's Console Access. As mentioned, I am remote and thus cannot do this. Will have to wait.
            Guess the "Reboot with Filesystem check" isn't as good as fsck at console during reboot to single user mode?

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @CheeMG
              last edited by Gertjan

              @cheemg said in Unable to check for updates, Package Manager not working:

              Guess the "Reboot with Filesystem check" isn't as good as fsck at console during reboot to single user mode?

              Good question....
              I never tried it.
              I do so now.

              edit :
              I followed the boot process on the VGA screen : it did check 5 times the file system.

              can you do this :

              f690ecdb-31d1-42ce-9473-6f2fb6c209b0-image.png

              and hit the Execute button ?

              Do you find this in the list :

              32299de2-37f4-4691-a13f-52f07c4ef26f-image.png

              if not, don't try to install base packages by hand.
              Whenever you can - when you're on site, re install. That's the 5 minutes procedure that will give a guaranteed clean solution.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              C 1 Reply Last reply Reply Quote 0
              • C
                CheeMG @Gertjan
                last edited by

                @gertjan
                Thank you gertjan

                Yes, pkg-static info shows the pfsense packages.
                Yes, guess we have no choice but go to site to install a fresh OS from the ISO and restore from backup config.

                Thank you once again.

                pfSense-2.5.0                  Meta package to install pfSense required ports
                pfSense-Status_Monitoring-1.7.11_3 pfSense Status Monitoring
                pfSense-base-2.5.0             pfSense core files
                pfSense-default-config-2.5.0   pfSense default config
                pfSense-kernel-pfSense-2.5.0   pfSense kernel (pfSense)
                pfSense-pkg-freeradius3-0.15.7_29 FreeRADIUS 3.x package for pfSense
                pfSense-pkg-openvpn-client-export-1.5_5 pfSense package openvpn-client-export
                pfSense-rc-2.5.0               pfSense rc script and rc.initial shell
                pfSense-repo-2.5.0_1           Setup pfSense pkg(8) repositories
                pfSense-upgrade-0.92           pfSense upgrade script
                
                1 Reply Last reply Reply Quote 0
                • F
                  faust
                  last edited by

                  Hi!
                  I have the exact same problem on a XG-7100 (21.05-RELEASE).

                  Reinstalling is not an option for the moment.
                  Is there anything that I could try to resolve this problem?

                  [21.05-RELEASE][admin@pfSense.home.arpa]/root: pkg-static update -f
                  pkg-static: Invalid ABI
                  pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
                  No active remote repositories configured.
                  [21.05-RELEASE][admin@pfSense.home.arpa]/root: pkg bootstrap -f
                  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+http://pkg.FreeBSD.org/ALTABI=/latest, please wait...
                  pkg: Error fetching http://pkg.FreeBSD.org/ALTABI=/latest/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'.
                  

                  Regards,
                  Faustin

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    faust @faust
                    last edited by faust

                    So, I may have found a solution.

                    Files in /usr/local/share/pfSense/pkg/repos where all empty, so I have just recovered those files from another exact same pfSense version (and model).

                    And everything seems OK now.

                    V A 2 Replies Last reply Reply Quote 3
                    • V
                      vtjungle @faust
                      last edited by

                      @faust Thank you so much, this saved my bacon! We had a remote firewall out in the field with this issue and reinstalling the OS was not possible due to the lack of physical access. We were able to take another 3100 running on a much older version, update it it to 21.05.1, then copy the files over to the broken firewall and ran a refresh with the following:

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

                      UI instantly showed an update available and it went through fine.

                      F 1 Reply Last reply Reply Quote 1
                      • F
                        faust @vtjungle
                        last edited by

                        @vtjungle great that it helped you! I know that feeling when you manage to regain access to a remote equipment with nobody on site :)

                        1 Reply Last reply Reply Quote 0
                        • A
                          ariban99 @faust
                          last edited by

                          @faust said in Unable to check for updates, Package Manager not working:

                          So, I may have found a solution.

                          Files in /usr/local/share/pfSense/pkg/repos where all empty, so I have just recovered those files from another exact same pfSense version (and model).

                          And everything seems OK now.

                          this was the fix for me as well. good thing we had a similar netgate 3100 elsewhere!

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