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

    PFsense unable to check for update n Unable to retrieve package information

    Scheduled Pinned Locked Moved General pfSense Questions
    29 Posts 8 Posters 17.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      That is the same issue causing those things, pfSense is unable to access the package repo.

      At the command line run: pkg-static -d update

      That will show you whatever error is preventing it.

      Steve

      V W 2 Replies Last reply Reply Quote 1
      • V
        vijay7 @stephenw10
        last edited by vijay7

        @stephenw10 I got the same issue, it still exits, unable to figure it out.

        1 - Tried all the troubleshooting steps mentioned - here nothing helped :-(,
        https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html
        2 - Did a fresh install, initially it was fine and the issue came after 4 days, did a fresh install 2 times and the behavior is the same.
        3 - I have snort and pfblockerNG (not configured with any feeds)
        4 - command I run pkg-static -d update PFA the output

        due to this issue I am unable to use this install to production from past 15 days I am facing this issue, pls help me.
        also, with the first install, after I got unable to check for updates and no pkgs found to install, a new issue started clients are unable to resolve the DNS - DNS probe finished errors raised - although this is the second priority in the issue I have, I want the issue unable to check for update and unable to see any pkgs in the pkg manager is to be resolved first

        Few other errors I observed during troubleshooting

        Error updating repositories!
        ERROR: Unable to compare version of pfSense-repo
        

        thanks in advance

        c0d00f16-38a4-421b-99c0-23a913bef52c-image.png

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

          Hmm, what happens if you try to fetch a file from the repo directly?

          [2.5.2-RELEASE][admin@252dev.stevew.lan]/root: fetch https://files00.netgate.com/pfSense_v2_5_2_amd64-pfSense_v2_5_2/meta.conf 
          meta.conf                                              163  B 2119 kBps    00s
          
          V 1 Reply Last reply Reply Quote 0
          • V
            vijay7 @stephenw10
            last edited by

            @stephenw10 ed4fae60-3d9f-47bf-aad9-42ffdd09b58e-image.png

            this is what i got

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

              Hmm. Try:

              [2.5.2-RELEASE][admin@252dev.stevew.lan]/root: pfSense-upgrade -d
              >>> Updating repositories metadata... 
              Updating pfSense-core repository catalogue...
              Fetching meta.conf: . done
              Fetching packagesite.txz: . done
              Processing entries: . done
              pfSense-core repository update completed. 7 packages processed.
              Updating pfSense repository catalogue...
              Fetching meta.conf: . done
              Fetching packagesite.txz: .......... done
              Processing entries: .......... done
              pfSense repository update completed. 502 packages processed.
              All repositories are up to date.
              Your packages are up to date
              
              V 2 Replies Last reply Reply Quote 0
              • V
                vijay7 @stephenw10
                last edited by

                @stephenw10 this is what i get

                3a8631c1-c2d1-4314-8e78-317e2111f3c8-image.png

                GertjanG 1 Reply Last reply Reply Quote 0
                • V
                  vijay7 @stephenw10
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    @vijay7 said in PFsense unable to check for update n Unable to retrieve package information:

                    https://redmine.pfsense.org/issues/11619

                    Mmm, you can hit that coming from 2.4.4 but when you do you see the pretty clear error:

                    pkg-static: repository pfSense contains packages for wrong OS version: FreeBSD:11:amd64
                    

                    And you're not seeing any errors.

                    But you can try switching the repo branch and back which is what would solve that.

                    Steve

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      vijay7 @stephenw10
                      last edited by

                      @stephenw10 can you provide the documentation, for the suggestion you gave.

                      switch back the repo branch.

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

                        @vijay7
                        This is probably the issue :

                        8f79fc3b-9592-4d7a-928f-7ef71e246b73-image.png

                        Looks like a local issue to me.

                        Run

                        pkg-static info -e pfSense-repo
                        

                        (this return nothing for me)

                        and the more verbose

                        pkg-static info pfSense-repo
                        

                        This should return

                        pfSense-repo-2.5.2_1
                        Name           : pfSense-repo
                        Version        : 2.5.2_1
                        Installed on   : Thu Jul  8 18:43:27 2021 CEST
                        Origin         : sysutils/pfSense-repo
                        Architecture   : FreeBSD:12:amd64
                        Prefix         : /usr/local
                        Categories     : sysutils
                        Licenses       : APACHE20
                        Maintainer     : coreteam@pfsense.org
                        WWW            : https://www.pfsense.org/
                        Comment        : Setup pfSense pkg(8) repositories
                        Annotations    :
                                FreeBSD_version: 1202504
                                repo_type      : binary
                                repository     : pfSense
                        Flat size      : 11.7KiB
                        Description    :
                        Setup pfSense pkg(8) repositories
                        

                        for me.

                        Try

                        pkg-static install pfSense-repo
                        

                        or even

                        pkg-static install -f pfSense-repo
                        

                        Consider also the sledge hammer solution :
                        Backup - and clean install.
                        Double check the drive for errors while doing so.

                        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 0
                        • W
                          wimlauwaert @stephenw10
                          last edited by

                          @stephenw10 This also solved same issue in version 2.7 :-). Tnx!

                          1 Reply Last reply Reply Quote 1
                          • W
                            wrgraves
                            last edited by

                            going from 2.6.0 to 2.7.0 with the same issue but this didn't work for me. When I got to the pkg-static install -f pfSense-repo I got
                            pfSense-repo-2.7.0_2
                            Name : pfSense-repo
                            Version : 2.7.0_2
                            Installed on : Fri Jul 7 10:19:19 2023 MDT
                            Origin : sysutils/pfSense-repo
                            Architecture : FreeBSD:14:amd64
                            Prefix : /usr/local
                            Categories : sysutils
                            Licenses : APACHE20
                            Maintainer : coreteam@pfsense.org
                            WWW : https://www.pfsense.org/
                            Comment : Setup pfSense pkg(8) repositories
                            Annotations :
                            FreeBSD_version: 1400085
                            build_timestamp: 2023-07-06T13:40:10+0000
                            built_by : poudriere-git-3.3.99.20220831
                            port_checkout_unclean: yes
                            port_git_hash : 87fc5d18e82b
                            ports_top_checkout_unclean: yes
                            ports_top_git_hash: 87fc5d18e82b
                            repo_type : binary
                            repository : pfSense
                            Flat size : 11.2KiB
                            Description :
                            Setup pfSense pkg(8) repositories

                            WWW: https://www.pfsense.org/
                            root@pfSense:/usr/local/share# pkg-static install pfSense-repo
                            Updating pfSense-core repository catalogue...
                            pkg-static: https://pkg.pfsense.org/pfSense_v2_7_0_amd64-core/meta.txz: No address record
                            repository pfSense-core has no meta file, using default settings
                            pkg-static: https://pkg.pfsense.org/pfSense_v2_7_0_amd64-core/packagesite.pkg: No address record
                            pkg-static: https://pkg.pfsense.org/pfSense_v2_7_0_amd64-core/packagesite.txz: No address record
                            Unable to update repository pfSense-core
                            Updating pfSense repository catalogue...
                            pkg-static: https://pkg.pfsense.org/pfSense_v2_7_0_amd64-pfSense_v2_7_0/meta.txz: No address record
                            repository pfSense has no meta file, using default settings
                            pkg-static: https://pkg.pfsense.org/pfSense_v2_7_0_amd64-pfSense_v2_7_0/packagesite.pkg: No address record
                            pkg-static: https://pkg.pfsense.org/pfSense_v2_7_0_amd64-pfSense_v2_7_0/packagesite.txz: No address record
                            Unable to update repository pfSense
                            Error updating repositories!

                            Where it died. I can't put in a fresh system at this point, I guess I'm stuck on 2.6.0

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

                              Hmm, that looks like a DNS issue. Check you can resolve generally.

                              W 1 Reply Last reply Reply Quote 1
                              • W
                                wrgraves @stephenw10
                                last edited by

                                @stephenw10 Thanks, what a dummy I am. I unhooked it from the DNS server and forgot to redirect it.
                                Thanks, that fixed it.
                                Wayne

                                1 Reply Last reply Reply Quote 1
                                • D
                                  DaveP 0
                                  last edited by

                                  Hi, I've hit the same problem on 2.70 and I've tried everything in here.
                                  It started with an issue with the conf and then complained about a cert issue and so I just continued with the commands. I've also reinstalled from scratch and still end up the same place.

                                  pkg-static install -f pfSense-repo

                                  gave me.

                                  Updating pfSense-core repository catalogue...
                                  pkg-static: An error occured while fetching package
                                  pkg-static: An error occured while fetching package
                                  repository pfSense-core has no meta file, using default settings
                                  pkg-static: An error occured while fetching package
                                  pkg-static: An error occured while fetching package
                                  Unable to update repository pfSense-core
                                  Updating pfSense repository catalogue...
                                  pkg-static: An error occured while fetching package
                                  pkg-static: An error occured while fetching package
                                  repository pfSense has no meta file, using default settings
                                  pkg-static: An error occured while fetching package
                                  pkg-static: An error occured while fetching package
                                  Unable to update repository pfSense
                                  Error updating repositories!
                                  

                                  Yet the fetch worked, which was the meta file it looks like it is complaining about.

                                  Any ideas for the next steps. Did I mention I hate networking. I never seem to sacrifice enough small furry animals to the dark gods.

                                  GertjanG stephenw10S 2 Replies Last reply Reply Quote 0
                                  • GertjanG
                                    Gertjan @DaveP 0
                                    last edited by

                                    @DaveP-0 said in PFsense unable to check for update n Unable to retrieve package information:

                                    I've also reinstalled from scratch and still end up the same place.

                                    From scratch using 2.7.0 ?
                                    Why not 2.7.2 and call it a day ?

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

                                      @DaveP-0 said in PFsense unable to check for update n Unable to retrieve package information:

                                      Updating pfSense-core repository catalogue...
                                      pkg-static: An error occured while fetching package
                                      pkg-static: An error occured while fetching package

                                      When you see that try running: pkg-static -d update

                                      That will give you debug output so you can see why it's failing.

                                      But, yes, just install 2.7.2 if you can reinstall.

                                      Steve

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        DaveP 0 @stephenw10
                                        last edited by

                                        @stephenw10 said in PFsense unable to check for update n Unable to retrieve package information:

                                        pkg-static -d update

                                        Rather a long log output so I've pasted it into a txt file. Noticed some cert errors.

                                        I've already installed three times with no difference and when I go to update it tells me it is on the latest so doesn't offer the upgrade button.

                                        return.txt

                                        Screenshot from 2024-07-02 13-50-41.png

                                        I do have IPv6 enabled and tried to disable it to test if that was it and got this

                                        Shell Output - pfSense-upgrade -4

                                        ERROR: It was not possible to determine pkg remote version

                                        Updating repositories metadata...
                                        Updating pfSense-core repository catalogue...
                                        pkg-static: An error occured while fetching package
                                        pkg-static: An error occured while fetching package
                                        repository pfSense-core has no meta file, using default settings
                                        pkg-static: An error occured while fetching package
                                        pkg-static: An error occured while fetching package
                                        Unable to update repository pfSense-core
                                        Updating pfSense repository catalogue...
                                        pkg-static: An error occured while fetching package
                                        pkg-static: An error occured while fetching package
                                        repository pfSense has no meta file, using default settings
                                        pkg-static: An error occured while fetching package
                                        pkg-static: An error occured while fetching package
                                        Unable to update repository pfSense
                                        Error updating repositories!
                                        ERROR: It was not possible to determine pfSense-upgrade remote version
                                        ERROR: It was not possible to determine pfSense-upgrade remote version
                                        Upgrading pfSense-upgrade... failed.

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

                                          Ok run certctl rehash then recheck.

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            DaveP 0 @stephenw10
                                            last edited by

                                            @stephenw10 OK. Tried that. I got this which didn't say much.

                                            Shell Output - certctl rehash

                                            Scanning /usr/share/certs/untrusted for certificates...
                                            Scanning /usr/share/certs/trusted for certificates...
                                            Scanning /usr/local/share/certs for certificates...

                                            I waited a few mins in case it was doing something in the background. I then tried the package list again and the same error.

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