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

    Undefined symbol "__libc_start1@FBSD_1.7" on pfSense Plus 23.01

    Scheduled Pinned Locked Moved General pfSense Questions
    52 Posts 9 Posters 12.6k 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

      Hmm, did it not offer an upgrade for pfSense-upgrade?

      It's still looking at the 23.05 repo branch?

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

        @stephenw10 it's looking at 23.01 (/usr/local/etc/pfSense/pkg/repos/pfSense-repo-prev.conf)

        S 1 Reply Last reply Reply Quote 0
        • S
          sgw @sgw
          last edited by

           pkg-static upgrade pfSense-upgrade
          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.
          Checking integrity... done (0 conflicting)
          Your packages are up to date.
          
          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Ah, Ok if it's still looking at 23.01 it might be time to do a forced reinstall of all pkgs from that repo. It's not something I'd normally recommend but there may not be much else we can do here:
            https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html#forced-pkg-reinstall

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

              @stephenw10

               pkg-static install -fy pkg pfSense-repo pfSense-upgrade
              Updating pfSense-core repository catalogue...
              pkg-static: https://pfsense-plus-pkg01.atx.netgate.com/pfSense_plus-v23_01_aarch64-core/meta.txz: Bad Request
              repository pfSense-core has no meta file, using default settings
              pkg-static: https://pfsense-plus-pkg01.atx.netgate.com/pfSense_plus-v23_01_aarch64-core/packagesite.pkg: Bad Request
              pkg-static: https://pfsense-plus-pkg01.atx.netgate.com/pfSense_plus-v23_01_aarch64-core/packagesite.txz: Bad Request
              Unable to update repository pfSense-core
              Updating pfSense repository catalogue...
              pkg-static: https://pfsense-plus-pkg00.atx.netgate.com/pfSense_plus-v23_01_aarch64-pfSense_plus_v23_01/meta.txz: Bad Request
              repository pfSense has no meta file, using default settings
              pkg-static: https://pfsense-plus-pkg00.atx.netgate.com/pfSense_plus-v23_01_aarch64-pfSense_plus_v23_01/packagesite.pkg: Bad Request
              pkg-static: https://pfsense-plus-pkg00.atx.netgate.com/pfSense_plus-v23_01_aarch64-pfSense_plus_v23_01/packagesite.txz: Bad Request
              Unable to update repository pfSense
              Error updating repositories!
              

              even that fails now

              S 1 Reply Last reply Reply Quote 0
              • S
                sgw @sgw
                last edited by

                Couldn't I "simply" scp/rsync some directories from a working appliance into the buggy one to make php work for now? I know it's ugly.

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

                  The user cert has expired. Updating that could be a problem if you can't run either pfSense-repoc or pfSense-upgrade -c

                  Where is this actually installed? Is there no way you can get remote hands on it to help with a re-install?

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

                    @stephenw10 We plugged in the other appliance yesterday and the box will be sent to me for reinstallation. Thanks to you for all your help.

                    S 1 Reply Last reply Reply Quote 1
                    • M
                      MoonLight 0
                      last edited by

                      Hello all,

                      I'm currently getting the same error you encountered on pfSense v23.01-RELEASE, I have the impression that pkg uses version 23.05.1 even though I haven't upgraded yet, here's some information:

                      pkg -d update
                      ld-elf.so.1: /usr/local/sbin/pkg: Undefined symbol "__libc_start1@FBSD_1.7"
                      
                      pkg-static info pkg
                      pkg-1.19.1_1
                      Name           : pkg
                      Version        : 1.19.1_1
                      Installed on   : Tue May 23 16:54:08 2023 UTC
                      Origin         : ports-mgmt/pkg
                      Architecture   : FreeBSD:14:amd64
                      Prefix         : /usr/local
                      Categories     : ports-mgmt
                      Licenses       : BSD2CLAUSE
                      Maintainer     : pkg@FreeBSD.org
                      WWW            : https://github.com/freebsd/pkg
                      Comment        : Package manager
                      Options        :
                      	DOCS           : off
                      Shared Libs provided:
                      	libpkg.so.4
                      Annotations    :
                      	FreeBSD_version: 1400085
                      	build_timestamp: 2023-05-04T16:43:21+0000
                      	built_by       : poudriere-git-3.3.99.20220831
                      	port_checkout_unclean: no
                      	port_git_hash  : 38f48ce64acc
                      	ports_top_checkout_unclean: yes
                      	ports_top_git_hash: e7f28213b661
                      	repo_type      : binary
                      	repository     : pfSense
                      Flat size      : 34.1MiB
                      Description    :
                      Package management tool
                      
                      WWW: https://github.com/freebsd/pkg
                      

                      I tried to downgrade pkg:

                      pkg-static install -f pkg-1.18.4_4
                      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.
                      pkg-static: No packages available to install matching 'pkg-1.18.4_4' have been found in the repositories
                      
                      pkg-static install -f pkg
                      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.
                      The following 1 package(s) will be affected (of 0 checked):
                      
                      Installed packages to be REINSTALLED:
                      	pkg-1.19.1_1 [pfSense]
                      
                      Number of packages to be reinstalled: 1
                      
                      9 MiB to be downloaded.
                      
                      Proceed with this action? [y/N]: N
                      

                      pkg.conf file:

                      ABI=FreeBSD:14:amd64
                      ALTABI=freebsd:14:x86:64
                      PKG_ENV {
                      	SSL_CA_CERT_FILE=/etc/ssl/netgate-ca.pem
                      	SSL_CLIENT_CERT_FILE=/usr/local/etc/pfSense/pkg/repos/pfSense-repo-stable-cert.pem
                      	SSL_CLIENT_KEY_FILE=/usr/local/etc/pfSense/pkg/repos/pfSense-repo-stable-key.pem
                      }
                      

                      pfSense.conf file:

                      FreeBSD: { enabled: no }
                      
                      pfSense-core: {
                          url: "pkg+https://pfsense-plus-pkg.netgate.com/pfSense_plus-v23_05_1_amd64-core",
                          mirror_type: "srv",
                          signature_type: "fingerprints",
                          fingerprints: "/usr/local/share/pfSense/keys/pkg",
                          enabled: yes
                      }
                      
                      pfSense: {
                          url: "pkg+https://pfsense-plus-pkg.netgate.com/pfSense_plus-v23_05_1_amd64-pfSense_plus_v23_05_1",
                          mirror_type: "srv",
                          signature_type: "fingerprints",
                          fingerprints: "/usr/local/share/pfSense/keys/pkg",
                          enabled: yes
                      }
                      

                      FreeBSD.conf file:

                      FreeBSD: { enabled: no  }
                      

                      Could you please help me? Knowing that on the web interface, under System > Update I have:

                      Current Base System23.01
                      

                      Thank you!

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

                        pkg will update itself to the newest available version whenever pfSense-upgrade is run and that happens when the dashboard update check happens.

                        So what you're seeing there is exactly what should happen in 23.01 and shouldn't be a problem. All the backend commands use pkg-static so never hit that library mismatch.

                        What problem are you actually seeing?

                        Steve

                        M 1 Reply Last reply Reply Quote 1
                        • M
                          MoonLight 0 @stephenw10
                          last edited by

                          @stephenw10 Thank you for your quick reply!

                          I understand better now, so I should be able to use the pkg commands again once I've updated to version 23.05.1 via System > Update on the pfsense web gui right?

                          I'm working on a script and I wanted to reinstall the API with:

                          pkg -C /dev/null add https://github.com/jaredhendrickson13/pfsense-api/releases/latest/download/pfSense-2.7-pkg-API.pkg
                          

                          But then this error occurred. So I guess I'll have to wait to update the pfsense first to continue.
                          Thank you.

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

                            Just use pkg-static instead of pkg. However you should set your update branch to the current version to avoid pulling in any 23.05.1 pkgs.

                            Much better to upgrade to 23.05.1 first if you can.

                            Steve

                            M 1 Reply Last reply Reply Quote 1
                            • M
                              MoonLight 0 @stephenw10
                              last edited by

                              @stephenw10 Thank you very much for your answers, have a nice day!

                              1 Reply Last reply Reply Quote 0
                              • S
                                sgw @sgw
                                last edited by

                                I hit this issue again on a SG-7100 today. Box offline, will have to reinstall on site asap. Good to have a 2nd hardware in place.

                                R 1 Reply Last reply Reply Quote 0
                                • R
                                  rcoleman-netgate Netgate @sgw
                                  last edited by

                                  @sgw said in Undefined symbol "__libc_start1@FBSD_1.7" on pfSense Plus 23.01:

                                  I hit this issue again on a SG-7100 today

                                  Still on 23.01? The best time to upgrade it is yesterday.

                                  Ryan
                                  Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                  Requesting firmware for your Netgate device? https://go.netgate.com
                                  Switching: Mikrotik, Netgear, Extreme
                                  Wireless: Aruba, Ubiquiti

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