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

    check_upgrade: "Updating repositories metadata" returned error code 1

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    84 Posts 22 Posters 12.2k Views 22 Watching
    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 Offline
      stephenw10 Netgate Administrator
      last edited by

      Ah, that seems like a different issue then; it's actually unable to check.

      Try running: pkg -d update

      And: pfSense-repoc -ND

      See what errors are shown.

      7 1 Reply Last reply Reply Quote 0
      • 7 Offline
        753951 @stephenw10
        last edited by

        @stephenw10
        [24.11-RELEASE][root@pfsense.stanar.info]/root: pkg -d update
        DBG(1)[92284]> pkg initialized
        pkg: Unable to open '/usr/local/etc/pkg/repos//pfSense.conf':No such file or directory
        No active remote repositories configured.

        As for pfSense-repoc -ND

        Messages:
        Your device has not been registered for pfSense+. Please purchase a pfSense+ subscription to receive future updates. <a href="https://shop.netgate.com/products/pfsense-software-subscription" target="_blank" rel="noopener noreferrer">Netgate store</a>

        Don't get it. I made no changes in months.

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

          Ok send me your NDI in chat and I'll check it.

          B 1 Reply Last reply Reply Quote 0
          • R Offline
            renanlofiego
            last edited by

            Me too, after the update, I started receiving the message "check_upgrade: "updating repositories metadata" returned error code 1".

            I ran the command "pkg -d update" and it returned the following: "DBG(1)[56533]> pkg initialized
            pkg: Unable to open '/usr/local/etc/pkg/repos//pfSense.conf': No such file or directory
            No active remote repositories configured.
            "

            I don't know if it has to do with the license. Is there still a free pfSense+ license for labs?

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

              So same as above; run pfSense-repoc -ND and see what error that returns.

              Send me your NDI in chat and I'll check it.

              1 Reply Last reply Reply Quote 0
              • M Offline
                mrpon8
                last edited by

                check_upgrade: "Updating repositories metadata" returned error code 1
                for resolve this problem only need update the pkg
                into the "Diagnostics, then Command Prompt" run "pkg update -f"

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  renanlofiego @mrpon8
                  last edited by

                  @mrpon8 When I run this command "pkg update -f" it returns this message "pkg: Unable to open '/usr/local/etc/pkg/repos//pfSense.conf': No such file or directory
                  No active remote repositories configured.
                  "

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    benhamou.ahmed
                    last edited by

                    i have same issue

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      benhamou.ahmed @stephenw10
                      last edited by

                      @stephenw10 i have same issue

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        hbbn
                        last edited by

                        I had same issue for a long time.

                        Then I tried pkg update -f and got an error for SunnyVally repository
                        I figured that I had a old version of zenarmor installed that matches the FreeBSD 14 and not 15.
                        Upgraded the zenarmor to the latest version.

                        Haven't had any of the error messages for some time now. hopefully that was it.

                        Maybe this can be helpfull to someone.

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