• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 9.9k 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.
  • C
    CheeMG
    last edited by CheeMG Apr 12, 2021, 12:40 PM Apr 12, 2021, 12:35 PM

    Hi All

    We are getting "Unable to check for updates" in the dashboard of our PFSense 2.5.0. In the System->Update, the Branch dropdown box is empty. Likewise the Firmware Branch box in System -> Update -> Update Settings is also empty.
    In Package Manager, the Available Packages page is empty. We are unable to search for any package.

    We ssh to the server and in the shell, we ran these commands:

    pkg update -f
    pkg: Invalid ABI
    pkg: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f" recommended.
    No active remote repositories configured
    
    
    pfSense-upgrade-d 
    ERROR: It was not possible to identify which pfSense kernel is installed.
    
    [2.5.0-RELEASE][root@firewall1.example.com]/root: pkg info -x pfSense
    pkg: Invalid ABI
    pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
    pfSense-2.5.0
    pfSense-Status_Monitoring-1.7.11_3
    pfSense-base-2.5.0
    pfSense-default-config-2.5.0
    pfSense-kernel-pfSense-2.5.0
    pfSense-pkg-freeradius3-0.15.7_29
    pfSense-pkg-openvpn-client-export-1.5_5
    pfSense-rc-2.5.0
    pfSense-repo-2.5.0_1
    pfSense-upgrade-0.92
    php74-pfSense-module-0.69_1
    [2.5.0-RELEASE][root@firewall1.example.com]/root:
    
    [2.5.0-RELEASE][root@firewall1.example.com]/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.
    [2.5.0-RELEASE][root@firewall1.example.com]/root:
    
    
    [2.5.0-RELEASE][admin@firewall1.example.com]/root: pkg-static clean -ay; pkg-static install -fy pkg pfSense-repo pfSense-upgrade
    pkg-static: Invalid ABI
    pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
    pkg-static: No active remote repositories configured
    pkg-static: Invalid ABI
    pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
    Checking integrity... done (0 conflicting)
    The most recent versions of packages are already installed
    [2.5.0-RELEASE][admin@firewall1.example.com]/root:
    
    
    [2.5.0-RELEASE][admin@firewall1.example.com]/root: pkg-static bootstrap -f
    pkg-static: Invalid ABI
    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+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'.
    [2.5.0-RELEASE][admin@firewall1.example.com]/root:
    
    
    setenv PACKAGESITE http://pkg.freebsd.org/FreeBSD:12:amd64/latest
    
    
    
    [2.5.0-RELEASE][admin@firewall1.example.com]/root: setenv PACKAGESITE http://pkg.freebsd.org/FreeBSD:12:amd64/latest
    [2.5.0-RELEASE][admin@firewall1.example.com]/root: pkg
    pkg: not enough arguments
    Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r <rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o var=value] [-4|-6] <command> [<args>]
    
    For more information on available commands and options see 'pkg help'.
    [2.5.0-RELEASE][admin@firewall1.example.com]/root: pkg update -f
    pkg: Invalid ABI
    pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
    No active remote repositories configured.
    [2.5.0-RELEASE][admin@firewall1.example.com]/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 http://pkg.freebsd.org/FreeBSD:12:amd64/latest, please wait...
    Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
    pkg-static: Invalid ABI
    pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
    Installing pkg-1.16.3...
    pkg-static: wrong architecture: FreeBSD:12:amd64 instead of ALTABI=
    package pkg is already installed, forced install
    Extracting pkg-1.16.3: 100%
    [2.5.0-RELEASE][admin@firewall1.example.com]/root:
    
    
    
    Extracting pkg-1.16.3: 100%
    [2.5.0-RELEASE][admin@firewall1.example.com]/root: pkg-static upgrade -f
    pkg-static: Invalid ABI
    pkg-static: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
    No active remote repositories configured.
    [2.5.0-RELEASE][admin@firewall1.example.com]/root:
    

    Our setup:
    We are using a Protectli Firewall Micro Appliance. When installed the latest PFSense on it, somehow the installation got stuck, and so we installed an older version. After installation, we upgraded to the latest 2.5.0.
    After that, we were able to install the freeradius3 0.15.7_29 and openvpn-client-export 1.5_5 packages. But somehow the problem started: Unable to check for updates, empty Branch, cannot list or install packages now.

    Attached upgrade_log.latest.txt
    upgrade_log.latest.txt

    pfsense01.png
    c01fw2.png
    c01fw3.png
    pfsense_package_manager1.png

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Gertjan Apr 13, 2021, 7:23 AM Apr 13, 2021, 7:21 AM

      @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 Apr 13, 2021, 9:22 AM

        @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...

        G 1 Reply Last reply Apr 13, 2021, 9:27 AM Reply Quote 0
        • G
          Gertjan @CheeMG
          last edited by Apr 13, 2021, 9:27 AM

          @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 Apr 13, 2021, 10:02 AM Reply Quote 0
          • C
            CheeMG @Gertjan
            last edited by Apr 13, 2021, 10:02 AM

            @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?

            G 1 Reply Last reply Apr 13, 2021, 2:19 PM Reply Quote 0
            • G
              Gertjan @CheeMG
              last edited by Gertjan Apr 13, 2021, 2:29 PM Apr 13, 2021, 2:19 PM

              @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 Apr 17, 2021, 4:46 AM Reply Quote 0
              • C
                CheeMG @Gertjan
                last edited by Apr 17, 2021, 4:46 AM

                @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 Nov 1, 2021, 6:37 PM

                  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 Nov 1, 2021, 7:00 PM Reply Quote 0
                  • F
                    faust @faust
                    last edited by faust Nov 1, 2021, 7:00 PM Nov 1, 2021, 7:00 PM

                    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 Dec 30, 2021, 4:11 PM Reply Quote 3
                    • V
                      vtjungle @faust
                      last edited by Dec 30, 2021, 4:11 PM

                      @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 Jan 3, 2022, 4:39 PM Reply Quote 1
                      • F
                        faust @vtjungle
                        last edited by Jan 3, 2022, 4:39 PM

                        @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 Aug 8, 2022, 10:42 PM

                          @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.
                            [[user:consent.lead]]
                            [[user:consent.not_received]]