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
    193 Posts 46 Posters 33.6k Views 42 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.
    • tinfoilmattT Offline
      tinfoilmatt @morreale
      last edited by tinfoilmatt

      @morreale Any browser extensions in use?

      270badd0-a50e-40dd-bce4-fa29e31a72e9-image.png

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

        I think you need some reputation to see it. Try again now

        morrealeM 1 Reply Last reply Reply Quote 2
        • morrealeM Offline
          morreale @stephenw10
          last edited by

          @stephenw10 thanks

          pfSense 25.07.1-RELEASE (amd64) / Supermicro X11SDV-8C-TP8F / 1TB / 32Gb 2666MHz ECC

          1 Reply Last reply Reply Quote 0
          • P Offline
            pfpv
            last edited by

            I want to add that I had this problem when I updated to 2.8.0 and changed DHCP server to KEA, and I switched from the DNS Forwarder to DNS Resolver.

            I switched from the DNS Forwarder to DNS Resolver only because the new KEA settings state: "DNS Registration. When checked, DHCP leases will automatically be registered with the DNS Resolver." So, I thought if I kept using the DNS Forwarder I'd lose DHCP lease registration. I wanted to use KEA but didn't want to lose DHCP lease registration and I wanted to use my pi-holes on my LAN that run unbound anyway. I used the forward-zone:
            setting in pfSense's unbound to forward all DNS queries to my pi-hole(s).

            With this setup I had the aforementioned error frequently. I have to say that I had had it before I made the changes in the unbound settings, i.e., when unbound was running without predefined upstream resolver.

            When I realized that my DHCP leases will still be registered when I use the DNS Forwarder I switched to it and haven't seen this error ever since. So,

            1. This error has something to do with unbound. I think the culprit has already been found (some kind of a race condition).
            2. Please change the description in the DHCP Server settings from "When checked, DHCP leases will automatically be registered with the DNS Resolver" to "When checked, DHCP leases will automatically be registered with the DNS Resolver or Forwarder."
            GertjanG 1 Reply Last reply Reply Quote 0
            • stephenw10S Offline
              stephenw10 Netgate Administrator
              last edited by

              Hmm, so you hit it even using Unbound in forwarding mode?

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                pfpv @stephenw10
                last edited by

                @stephenw10 Yes, that is correct. I thought maybe because I pointed to IPs on my LAN but it should work.

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

                  @pfpv

                  The recent kea DHCP server supported fully automated DNS hist name integration into local pfSense DNS system, 'unbound'.
                  This is a new solution to a very old problem.
                  New solutions are often most not perfect the first time, so ... why do you want to deal with the issues known to 2.8.0 when the way better 2.8.1 is available (since a couple of months now) ? My advise : easy : get the latest version.
                  I'm using myself the 2.8.1 equivalent, 25.07.1, and it works fine for me.

                  "unbound" is by nature a resolver, but you can tell it to 'forward'. That will be like doing your daily shoppings with a Ferrari, but why not, you decide ^^ And I get it, you have another 'DNS' device, the pi-hole.

                  You can also consider disabling unbound, and activate the original 'ancient' forwarder that came with pfSense, also called dnsmasq :

                  2eea2f88-46e7-4f43-abd6-27888741d5fd-image.png

                  and forward this forwader to your LAN pi-hilo.
                  This forwarder can't do 'DHCP host name integration' though ...

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

                  P 1 Reply Last reply Reply Quote 0
                  • P Offline
                    pfpv @Gertjan
                    last edited by pfpv

                    @Gertjan I think you misread my post or didn't read it fully.

                    I was providing historical information when I was on 2.8.0. I updated to 2.8.1 next day it came out.

                    I used to use DNS Forwarder, then for the reasons given I switched to DNS Resolver and then switched back to DNS Forwarder. Contrary to what I also believed KEA DHCP Server does register DHCP leases with DNS Forwarder just like ISC did. It's all good now. No errors and local DNS is working.

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

                      @pfpv said in check_upgrade: "Updating repositories metadata" returned error code 1:

                      misread my post

                      This post ? is what I see/have.

                      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
                      • fireodoF Offline
                        fireodo
                        last edited by

                        Hi,

                        since today 21.11.2025 I get this error too:

                        check_upgrade: "Updating repositories metadata" returned error code 1 @ 2025-11-21 12:10:06
                        

                        😢

                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                        pfsense 2.8.1 CE
                        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                          Like repeatedly? Only at boot? Can you see packages?

                          fireodoF S 2 Replies Last reply Reply Quote 0
                          • fireodoF Offline
                            fireodo @stephenw10
                            last edited by

                            @stephenw10 said in check_upgrade: "Updating repositories metadata" returned error code 1:

                            Like repeatedly? Only at boot? Can you see packages?

                            Repeatedly, in normal running mode, yes - packages are visible!

                            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                            pfsense 2.8.1 CE
                            Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              siemek @stephenw10
                              last edited by

                              @stephenw10 On my side, repeatedly over 4000 entries in the log, in normal running mode.
                              Packages installed: There are no packages currently installed.
                              Packages available: Unable to retrieve package information.

                              1 Reply Last reply Reply Quote 0
                              • K Offline
                                Kelpie
                                last edited by

                                It started again today 340

                                check_upgrade: "Updating repositories metadata" returned error code 1 @ 2025-11-21 08:21:34

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  ghc88
                                  last edited by

                                  After not having any since my last post, I started seeing a few come through last night and this morning I’ve woken up to a few hundred of them. Version 2.8.1 and I can see packages.

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

                                    Are you still seeing them now if you clear the existing alerts?

                                    S fireodoF G 3 Replies Last reply Reply Quote 0
                                    • S Offline
                                      siemek @stephenw10
                                      last edited by

                                      @stephenw10 After I cleared them and checked for updates manually, no.
                                      But the same happened yesterday: I cleared around 1500, and it looked like no more were coming, then today I found over 4500.

                                      1 Reply Last reply Reply Quote 0
                                      • fireodoF Offline
                                        fireodo @stephenw10
                                        last edited by fireodo

                                        @stephenw10 said in check_upgrade: "Updating repositories metadata" returned error code 1:

                                        Are you still seeing them now if you clear the existing alerts?

                                        At the moment Nov 21 13:12:33 (CEST), No!

                                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                        pfsense 2.8.1 CE
                                        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                                        1 Reply Last reply Reply Quote 0
                                        • G Offline
                                          ghc88 @stephenw10
                                          last edited by

                                          @stephenw10 My last one was at 1132 GMT, so circa 45 mins ago.

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

                                            Ok thanks. It looks like there was a backend change. Digging....

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