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

    pkg broken in 25.07.1?

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 3 Posters 1.7k Views 6 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.
    • dennypageD Offline
      dennypage
      last edited by dennypage

      The pkg command appears to be broken in 25.07.1, on my system at least:

      [25.07.1-RELEASE][root@fw]/root: /usr/sbin/pkg info pkg
      ld-elf.so.1: Shared object "libutil.so.10" not found, required by "pkg"
      [25.07.1-RELEASE][root@fw]/root: /usr/local/sbin/pkg info pkg
      ld-elf.so.1: Shared object "libutil.so.10" not found, required by "pkg"
      

      It's also looking for libssl.so.35 and libcrypto.so.35 which don't exist either.

      Additional information:

      [25.07.1-RELEASE][root@fw]/root: ls -l /usr/sbin/pkg
      -r-xr-xr-x  1 root wheel 35784 Aug 15 13:49 /usr/sbin/pkg
      [25.07.1-RELEASE][root@fw]/root: ls -l /usr/local/sbin/pkg
      -rwxr-xr-x  1 root wheel 4248224 Sep  5 08:22 /usr/local/sbin/pkg
      [25.07.1-RELEASE][root@fw.]/root: ls -l /usr/local/sbin/pkg-static 
      -rwxr-xr-x  1 root wheel 40791432 Sep  5 08:22 /usr/local/sbin/pkg-static
      
      [25.07.1-RELEASE][root@fw]/root: pkg-static which /usr/sbin/pkg
      /usr/sbin/pkg was not found in the database
      [25.07.1-RELEASE][root@fw]/root: pkg-static which /usr/local/sbin/pkg
      /usr/local/sbin/pkg was installed by package pkg-2.2.2_2
      [25.07.1-RELEASE][root@fw]/root: pkg-static which /usr/local/sbin/pkg-static
      /usr/local/sbin/pkg-static was installed by package pkg-2.2.2_2
      
      [25.07.1-RELEASE][root@fw]/root: /usr/local/sbin/pkg-static info pkg
      pkg-2.2.2_2
      Name           : pkg
      Version        : 2.2.2_2
      Installed on   : Tue Sep 16 10:21:37 2025 PDT
      Origin         : ports-mgmt/pkg
      Architecture   : FreeBSD:15: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 required:
      	libarchive.so.7
      	libc.so.7
      	libcrypto.so.35
      	libelf.so.2
      	libjail.so.1
      	libm.so.5
      	libssl.so.35
      	libthr.so.3
      	libutil.so.10
      	libz.so.6
      Shared Libs provided:
      	libpkg.so.4
      Annotations    :
      	FreeBSD_version: 1500063
      	build_timestamp: 2025-09-05T15:21:54+00:00
      	built_by       : poudriere-git-3.4.99.20250601
      	repo_type      : binary
      	repository     : pfSense
      Flat size      : 53.3MiB
      Description    :
      Package management tool
      
      [25.07.1-RELEASE][root@fw]/root: ldd -a /usr/local/sbin/pkg
      /usr/local/sbin/pkg:
      	libelf.so.2 => /lib/libelf.so.2 (0xe785d6f0000)
      	libjail.so.1 => /lib/libjail.so.1 (0xe785d87b000)
      	libm.so.5 => /lib/libm.so.5 (0xe785e54d000)
      	libarchive.so.7 => /usr/lib/libarchive.so.7 (0xe785e5ab000)
      	libz.so.6 => /lib/libz.so.6 (0xe785e95d000)
      	libutil.so.10 => not found (0)
      	libssl.so.35 => not found (0)
      	libcrypto.so.35 => not found (0)
      	libthr.so.3 => /lib/libthr.so.3 (0xe785f8c7000)
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libelf.so.2:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libjail.so.1:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libm.so.5:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /usr/lib/libarchive.so.7:
      	libz.so.6 => /lib/libz.so.6 (0xe785e95d000)
      	libbz2.so.4 => /usr/lib/libbz2.so.4 (0xe7861007000)
      	liblzma.so.5 => /usr/lib/liblzma.so.5 (0xe7861d2b000)
      	libbsdxml.so.4 => /lib/libbsdxml.so.4 (0xe78622f0000)
      	libprivatezstd.so.5 => /usr/lib/libprivatezstd.so.5 (0xe7862d48000)
      	libcrypto.so.30 => /lib/libcrypto.so.30 (0xe7863de7000)
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libz.so.6:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libthr.so.3:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      	libsys.so.7 => /lib/libsys.so.7 (0xe78642ba000)
      /lib/libc.so.7:
      	libsys.so.7 => /lib/libsys.so.7 (0xe78642ba000)
      /usr/lib/libbz2.so.4:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /usr/lib/liblzma.so.5:
      	libmd.so.7 => /lib/libmd.so.7 (0xe7864567000)
      	libthr.so.3 => /lib/libthr.so.3 (0xe785f8c7000)
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libbsdxml.so.4:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /usr/lib/libprivatezstd.so.5:
      	libthr.so.3 => /lib/libthr.so.3 (0xe785f8c7000)
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libcrypto.so.30:
      	libthr.so.3 => /lib/libthr.so.3 (0xe785f8c7000)
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      /lib/libmd.so.7:
      	libc.so.7 => /lib/libc.so.7 (0xe785fd27000)
      [preloaded]
      	[vdso] (0xe785c63e000)
      
      S 1 Reply Last reply Reply Quote 1
      • dennypageD Offline
        dennypage
        last edited by dennypage

        In case anyone is going to ask:

        [25.07.1-RELEASE][root@fw]/root: /usr/local/sbin/pkg-static update
        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.
        
        [25.07.1-RELEASE][root@fw]/root: /usr/local/sbin/pkg-static 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 for upgrades (2 candidates): 100%
        Processing candidates (2 candidates): 100%
        Checking integrity... done (0 conflicting)
        Your packages are up to date.
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          SteveITS Rebel Alliance @dennypage
          last edited by

          @dennypage said in pkg broken in 25.07.1?:

          "libutil.so.10" not found

          hmm, see: https://forum.netgate.com/topic/198800/solved-pkg-upgrade-not-found-required-by-pkg/2

          Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
          Upvote ๐Ÿ‘ helpful posts!

          dennypageD 1 Reply Last reply Reply Quote 1
          • dennypageD Offline
            dennypage
            last edited by

            hmm indeed.

            A force re-install resulted in a downgrade of pkg. My only guess here is that version 2.2.2_2 of pkg was in use during the beta of 25.07?

            [25.07.1-RELEASE][root@fw]/root: pkg-static install -fy pkg pfSense-repo 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.
            The following 3 package(s) will be affected (of 0 checked):
            
            Installed packages to be DOWNGRADED:
            	pkg: 2.2.2_2 -> 1.21.3_5 [pfSense]
            
            Installed packages to be REINSTALLED:
            	pfSense-repo-25.07.1 [pfSense]
            	pfSense-upgrade-1.3.11 [pfSense]
            
            Number of packages to be reinstalled: 2
            Number of packages to be downgraded: 1
            
            The operation will free 7 MiB.
            17 MiB to be downloaded.
            [1/3] Fetching pfSense-repo-25.07.1.pkg: 100%    6 KiB   6.3kB/s    00:01    
            [2/3] Fetching pkg-1.21.3_5.pkg: 100%   17 MiB   8.9MB/s    00:02    
            [3/3] Fetching pfSense-upgrade-1.3.11.pkg: 100%   31 KiB  31.6kB/s    00:01    
            Checking integrity... done (0 conflicting)
            [1/3] Reinstalling pfSense-repo-25.07.1...
            [1/3] Extracting pfSense-repo-25.07.1: 100%
            [2/3] Reinstalling pfSense-upgrade-1.3.11...
            [2/3] Extracting pfSense-upgrade-1.3.11: 100%
            [3/3] Downgrading pkg from 2.2.2_2 to 1.21.3_5...
            [3/3] Extracting pkg-1.21.3_5: 100%
            certctl: Skipping untrusted certificate f3377b1b (/etc/ssl/untrusted/f3377b1b.0)
            certctl: Skipping untrusted certificate 76cb8f92 (/etc/ssl/untrusted/76cb8f92.0)
            certctl: Skipping untrusted certificate 2e5ac55d (/etc/ssl/untrusted/2e5ac55d.0)
            certctl: Skipping untrusted certificate 5a7722fb (/etc/ssl/untrusted/5a7722fb.0)
            certctl: Skipping untrusted certificate 18856ac4 (/etc/ssl/untrusted/18856ac4.0)
            certctl: Skipping untrusted certificate 5e98733a (/etc/ssl/untrusted/5e98733a.0)
            certctl: Skipping untrusted certificate 66445960 (/etc/ssl/untrusted/66445960.0)
            certctl: Skipping untrusted certificate 57bcb2da (/etc/ssl/untrusted/57bcb2da.0)
            certctl: Skipping untrusted certificate 5d3033c5 (/etc/ssl/untrusted/5d3033c5.0)
            certctl: Skipping untrusted certificate 4304c5e5 (/etc/ssl/untrusted/4304c5e5.0)
            certctl: Skipping untrusted certificate 4a6481c9 (/etc/ssl/untrusted/4a6481c9.0)
            certctl: Skipping untrusted certificate 3e44d2f7 (/etc/ssl/untrusted/3e44d2f7.0)
            certctl: Skipping untrusted certificate 3e45d192 (/etc/ssl/untrusted/3e45d192.0)
            certctl: Skipping untrusted certificate 1636090b (/etc/ssl/untrusted/1636090b.0)
            certctl: Skipping untrusted certificate 08063a00 (/etc/ssl/untrusted/08063a00.0)
            certctl: Skipping untrusted certificate 5273a94c (/etc/ssl/untrusted/5273a94c.0)
            certctl: Skipping untrusted certificate 03179a64 (/etc/ssl/untrusted/03179a64.0)
            certctl: Skipping untrusted certificate 7aaf71c0 (/etc/ssl/untrusted/7aaf71c0.0)
            certctl: Skipping untrusted certificate 5e98733a (/etc/ssl/untrusted/5e98733a.0)
            certctl: Skipping untrusted certificate 57bcb2da (/etc/ssl/untrusted/57bcb2da.0)
            certctl: Skipping untrusted certificate 08063a00 (/etc/ssl/untrusted/08063a00.0)
            certctl: Skipping untrusted certificate 18856ac4 (/etc/ssl/untrusted/18856ac4.0)
            You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
            
            S 1 Reply Last reply Reply Quote 0
            • dennypageD Offline
              dennypage @SteveITS
              last edited by

              @SteveITS said in pkg broken in 25.07.1?:

              @dennypage said in pkg broken in 25.07.1?:

              "libutil.so.10" not found

              hmm, see: https://forum.netgate.com/topic/198800/solved-pkg-upgrade-not-found-required-by-pkg/2

              And thanks, I had missed that post.

              1 Reply Last reply Reply Quote 0
              • S Offline
                SteveITS Rebel Alliance @dennypage
                last edited by

                @dennypage said in pkg broken in 25.07.1?:

                version 2.2.2_2 of pkg

                May have been pulled yesterday by https://forum.netgate.com/topic/198787/what-is-it-25.11.a.20250916.0600/6 as that was logged on the router I used. I haven't tried running pkg though.

                Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                Upvote ๐Ÿ‘ helpful posts!

                dennypageD 1 Reply Last reply Reply Quote 0
                • dennypageD Offline
                  dennypage @SteveITS
                  last edited by

                  @SteveITS said in pkg broken in 25.07.1?:

                  May have been pulled yesterday by https://forum.netgate.com/topic/198787/what-is-it-25.11.a.20250916.0600/6 as that was logged on the router I used. I haven't tried running pkg though.

                  Sure enough:

                  <13>1 2025-09-16T10:23:23.770794-07:00 fw pkg-static 66477 - - pkg upgraded: 1.21.3_5 -> 2.2.2_2
                  

                  I didn't take any action to initiate that which makes me rather uncomfortable.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    SteveITS Rebel Alliance @dennypage
                    last edited by

                    @dennypage You logged in ~1 minute before that. :) I think it's part of the dashboard update check.

                    Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                    Upvote ๐Ÿ‘ helpful posts!

                    dennypageD 1 Reply Last reply Reply Quote 0
                    • dennypageD Offline
                      dennypage @SteveITS
                      last edited by

                      @SteveITS said in pkg broken in 25.07.1?:

                      You logged in ~1 minute before that. :) I think it's part of the dashboard update check.

                      LOL, yes.

                      However, any package / firmware changes need to require an explicit action to be taken by an administrator. Simply logging in definitely should never constitute such an action.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        SteveITS Rebel Alliance @dennypage
                        last edited by SteveITS

                        @dennypage That's a valid question. In general, in the past the "current" branch would change versions over time and presumably the update was tied to checking the new version. So it's not new behavior AFAIK but I wonder if it's still necessary.

                        FWIW this is also (seems) related to the "another instance is running" warning when logging in and immediately trying to update. On slower/ARM devices it can take a few minutes to update pkg and after that log entry appears the "other instance" is no longer running, in my experience.

                        That said though, I checked my home router and it was 29 hours after the login so seems unrelated:

                        Sep 15 11:28:06 	php-fpm 	23574 	/index.php: Successful login for user 'admin' from: _____ (Local Database) 
                        Sep 16 16:31:44 	pkg-static 	7428 	pkg upgraded: 1.21.3_5 -> 2.2.2_2
                        

                        I checked a 2100 where the last login was Sept 11 and it doesn't have pkg upgrading at all, until I logged in just now. Here's the delay for pkg there. Note the different version:

                        Sep 17 15:51:51 	php-fpm 	93201 	/index.php: Successful login for user 'admin' from: _______ (Local Database) 
                        Sep 17 15:59:32 	pkg-static 	69005 	pkg upgraded: 1.21.3_4 -> 1.21.3_5
                        
                        

                        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                        Upvote ๐Ÿ‘ helpful posts!

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          SteveITS Rebel Alliance @SteveITS
                          last edited by

                          I made a redmine for the pkg update delay.

                          Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                          When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                          Upvote ๐Ÿ‘ helpful posts!

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

                            Hmm, yes pkg is upgraded by pfSense-upgrade during the check to be sure it can check for pkgs! ๐Ÿ˜‰ But it can result in that ugly error. pkg-static should always work though as you found.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              SteveITS Rebel Alliance @SteveITS
                              last edited by

                              said in pkg broken in 25.07.1?:

                              I made a redmine for the pkg update delay.

                              Jim replied to it already, short version, it's already solved. "...in Plus 25.11 and CE 2.9.0 the certutil program has been rewritten in C upstream and now completes in <1 second even on 1100."

                              Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                              When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                              Upvote ๐Ÿ‘ helpful posts!

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

                                Yup, it's waaaay faster!

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