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

    Updating to 2.3.1a release fails and breaks ability to update in the future?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    11 Posts 10 Posters 17.5k 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.
    • T Offline
      Tantamount
      last edited by

      Updating repositories metadata…
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up-to-date.
      Updating pfSense repository catalogue...
      pfSense repository is up-to-date.
      All repositories are up-to-date.
      Upgrading pfSense-repo... done.
      Updating repositories metadata...
      Updating pfSense-core repository catalogue...
      Repository pfSense-core has a wrong packagesite, need to re-create database
      Fetching meta.txz: . done
      pkg: No trusted public keys found
      repository pfSense-core has no meta file, using default settings
      Fetching packagesite.txz: . done
      pkg: No trusted public keys found
      Unable to update repository pfSense-core
      Updating pfSense repository catalogue...
      Repository pfSense has a wrong packagesite, need to re-create database
      Fetching meta.txz: . done
      pkg: No trusted public keys found
      repository pfSense has no meta file, using default settings
      Fetching packagesite.txz: .......... done
      pkg: No trusted public keys found
      Unable to update repository pfSense
      Failed

      System / Update / System Update now shows this:

      The following input errors were detected:
      ERROR: Error trying to get packages list. Aborting...
      pkg: No trusted public keys found pkg: No trusted public keys found pkg: No trusted public keys found pkg: No trusted public keys found pkg: Repository pfSense-core cannot be opened. 'pkg update' required pkg: Repository pfSense cannot be opened. 'pkg update' required
      ERROR: Error trying to get packages list. Aborting...
      pkg: No trusted public keys found pkg: No trusted public keys found pkg: No trusted public keys found pkg: No trusted public keys found pkg: Repository pfSense-core cannot be opened. 'pkg update' required pkg: Repository pfSense cannot be opened. 'pkg update' required

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

        Where did you see -RELEASE?

        1 Reply Last reply Reply Quote 0
        • jimpJ Offline
          jimp Rebel Alliance Developer Netgate
          last edited by

          https://forum.pfsense.org/index.php?topic=109690.0

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • A Offline
            aeroliteflyer
            last edited by

            I am getting same error.  Got automatic update notification on dashboard and when I clicked it the update failed and now shows that message.

            1 Reply Last reply Reply Quote 0
            • O Offline
              opitrice
              last edited by

              Same here…

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

                I had to do this to fix it:

                https://forum.pfsense.org/index.php?topic=109690.0

                
                fetch -qo /usr/local/share/pfSense/keys/pkg/trusted/ https://raw.githubusercontent.com/pfsense/pfsense/RELENG_2_3_0/src/usr/local/share/pfSense/keys/pkg/trusted/pkg.pfsense.org.20160406
                
                
                1 Reply Last reply Reply Quote 0
                • A Offline
                  Abhishek
                  last edited by

                  Thank you , worked for me after running the above command
                  .

                  2.3-RC (amd64)
                  built on Mon Apr 04 17:09:32 CDT 2016
                  FreeBSD 10.3-RELEASE
                  Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz

                  darkstat 3.1.2_1
                  Lightsquid 3.0.3_1
                  mailreport 3.0_1
                  pfBlockerNG 2.0.9_1  
                  RRD_Summary 1.3.1_2
                  snort 3.2.9.1_9  
                  squid 0.4.16_1  
                  squidGuard 1.14_1
                  syslog-ng 1.1.2_2

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tgharold
                    last edited by

                    I had to fight with this error ( repository pfSense-core has no meta file ) today.

                    This particular pfSense server uses a DNS Resolver that does not use forwarding, and it broke during the upgrade from 2.2 to 2.3.  Because the DNS resolver was broken, the pkg command could not talk to the pfSense package server, which is why it couldn't get meta data for the repository.

                    If you Ctrl-C to the command line (Ctrl-C, then [Enter] for /bin/sh), you can start to do some troubleshooting that will indicate whether you have DNS resolution issues.

                    1. Verify that you can ping 4.4.4.4 or 8.8.8.8 or some other public IP address
                    2. Attempt to ping a name site to test DNS resolution.
                    3. "pkg update -f" and "pkg upgrade -f" won't work either.

                    If DNS resolution fails, look at /etc/resolv.conf and you'll probably see that you're using a localhost DNS resolver of 127.0.0.1.  You can fix the issue temporarily via:

                    echo "nameserver 8.8.8.8" >> /etc/resolv.conf

                    This is also the eventual fix for getting the upgrade to complete.  If your 2.3 upgrade has gotten to the point where you can access the Web UI, you can fix it.  If you, like I did, get an issue where the web portal complains about a crash error and none of the menus work, opening up the crash error report will allow the menus to work.

                    Either way, the goal is to get to Diagnostics -> Command Prompt.

                    1. Use "cat /etc/resolv.conf" to find out what DNS servers are being used
                    2. Use the echo command above, to add another DNS server (4.4.4.4 or 8.8.8.8) to the file.

                    If you're watching the console, you should see the pkg updates start to work properly now that they can resolve the repository hostname.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tgharold
                      last edited by

                      Another possible root cause for upgrade failure is if the old configuration XML file had multiple VLANs (or multiple LANs on separate interfaces) and the <ipaddrv6>block has FE80 as the link local address for multiple VLANs.  That seems to confuse pfSense 2.3.

                      The workaround is to change those <ipaddrv6>FE80</ipaddrv6> to just <ipaddrv6>without the FE80 portion and then restore the configuration file.</ipaddrv6></ipaddrv6>

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        phil.davis
                        last edited by

                        @tgharold:

                        Another possible root cause for upgrade failure is if the old configuration XML file had multiple VLANs (or multiple LANs on separate interfaces) and the <ipaddrv6>block has FE80 as the link local address for multiple VLANs.  That seems to confuse pfSense 2.3.

                        The workaround is to change those <ipaddrv6>FE80</ipaddrv6> to just <ipaddrv6>without the FE80 portion and then restore the configuration file.</ipaddrv6></ipaddrv6>

                        I added a Redmine issue so this gets investigated:
                        https://redmine.pfsense.org/issues/6343

                        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          cmb
                          last edited by

                          @tgharold:

                          The workaround is to change those <ipaddrv6>FE80</ipaddrv6> to just <ipaddrv6>without the FE80 portion and then restore the configuration file.</ipaddrv6>

                          only way that happened is if you manually edited that into the config to begin with. That's not a valid IPv6 address, and the GUI's input validation won't accept that.

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