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

Shared object "libarchive.so.7" not found, required by "pkg"

Scheduled Pinned Locked Moved General pfSense Questions
34 Posts 11 Posters 24.4k 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.
  • Q
    Qinn @stephenw10
    last edited by Jan 26, 2020, 4:17 PM

    @stephenw10 did that this is the result

    [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/release_2/All/pimd-2.3.2.txz
    pkg: warning: database version 35 is newer than libpkg(3) version 34, but still compatible
    Fetching pimd-2.3.2.txz: 100%   68 KiB  70.1kB/s    00:01
    Installing pimd-2.3.2...
    Extracting pimd-2.3.2: 100%
    
    

    Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
    Firmware: Latest-stable-pfSense CE (amd64)
    Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Jan 26, 2020, 4:26 PM

      Hmm, sure looks like it pulled something from 2.4.5 at some point.
      I have no idea what that might have been though. 😕

      1 Reply Last reply Reply Quote 0
      • Q
        Qinn
        last edited by Jan 26, 2020, 5:28 PM

        Yes, looks like it, but all will right when 2.4.5 will be released...

        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
        Firmware: Latest-stable-pfSense CE (amd64)
        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

        1 Reply Last reply Reply Quote 0
        • Q
          Qinn
          last edited by Qinn Jan 26, 2020, 6:38 PM Jan 26, 2020, 5:41 PM

          Think I found it, the pkg package gets updated when in GUI from System/Update/System update you select "Update Latest 2.4.x development version (2.4.5)" in Branch and I did not confirm it, just selected it!

          [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
          1.12.0
          [2.4.4-RELEASE][root@pfSense.localdomain]/root: 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.
          Checking integrity... done (0 conflicting)
          The following 1 package(s) will be affected (of 0 checked):
          
          Installed packages to be DOWNGRADED:
                  pkg: 1.12.0 -> 1.10.5_6 [pfSense]
          
          Number of packages to be downgraded: 1
          
          The operation will free 1 MiB.
          
          Proceed with this action? [y/N]: y
          [1/1] Downgrading pkg from 1.12.0 to 1.10.5_6...
          [1/1] Extracting pkg-1.10.5_6: 100%
          You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
          [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
          1.10.5
          

          Selected it and...

          [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
          1.12.0
          [2.4.4-RELEASE][root@pfSense.localdomain]/root:
          

          Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
          Firmware: Latest-stable-pfSense CE (amd64)
          Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

          Q 1 Reply Last reply Mar 31, 2021, 11:10 AM Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Jan 26, 2020, 8:32 PM

            Hmm, seems similar to this: https://redmine.pfsense.org/issues/9873 Though not as bad....

            Might need to open bug report for that.

            Steve

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate @Qinn
              last edited by Jan 27, 2020, 1:21 PM

              @Qinn said in Shared object "libarchive.so.7" not found, required by "pkg":

              [2.4.4-RELEASE][root@pfSense.localdomain]/tmp: pkg add http://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/All/pimd-2.3.2.txz

              Why would you do that? It's completely unnecessary for the pimd GUI package and probably the source of your issues. You do not need to have any third party repos enabled. It's a proper pfSense package.

              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
              • M
                murat.karagoz
                last edited by May 18, 2020, 3:02 AM

                "First of all, try pkg bootstrap -f (or pkg install -f pkg).
                If it fails then try pkg-static bootstrap -f (or pkg-static install -f pkg) as it doesn't require any shared objects.
                If everything else doesn't work then you can install pkg from ports:
                
                cd /usr/ports/ports-mgmt/pkg
                make
                make reinstall clean
                You should be able to use pkg now."
                
                Source:   https://unix.stackexchange.com/questions/369372/shared-object-libarchive-so-7-not-found-required-by-pkg
                

                I get the same error warning while trying to install virtualbox-ose-additions with "pkg install virtualbox-ose-additions" command in pfSense 2.4.5-Release.

                I have fixed it with "pkg bootstrap -f" command. pkg version is 1.12.0 now from pfSense repository.

                R 1 Reply Last reply Feb 19, 2021, 9:31 AM Reply Quote 1
                • R
                  Ruddimaster @murat.karagoz
                  last edited by Feb 19, 2021, 9:31 AM

                  Today I have the same error:

                  The GUI stuck on all my 7 pfsenses: "Please wait while the update system initializes"

                  The shell shows:
                  [2.4.5-RELEASE][root@firewall.local]/etc: pkg -v
                  Shared object "libarchive.so.7" not found, required by "pkg"

                  P D 2 Replies Last reply Feb 19, 2021, 9:33 AM Reply Quote 0
                  • P
                    pete35 @Ruddimaster
                    last edited by Feb 19, 2021, 9:33 AM

                    @ruddimaster
                    t
                    There is the netgate upgrade troubleshooter ... it really helps a lot.

                    https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html

                    <a href="https://carsonlam.ca">bintang88</a>
                    <a href="https://carsonlam.ca">slot88</a>

                    1 Reply Last reply Reply Quote 0
                    • D
                      DurUser @Ruddimaster
                      last edited by Feb 20, 2021, 1:02 AM

                      @ruddimaster wow, I have the same issue as well all of a sudden out of nowhere.
                      I did not do the update to 2.5.

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Feb 20, 2021, 1:06 AM

                        Yes see that document, specifically this:
                        https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html#upgrade-not-offered-library-errors

                        It's almost always caused by running some package operation when the update repo it set to a different branch than the code that running.
                        Since 2.5 was released that became the current branch and to remain on 2.4.5 you need to set the update repo to that.

                        Steve

                        D 1 Reply Last reply Feb 20, 2021, 1:20 AM Reply Quote 0
                        • D
                          DurUser @stephenw10
                          last edited by Feb 20, 2021, 1:20 AM

                          @stephenw10 ok, I flipped it back to 2.4.5 but pkg still gives me that error?

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Feb 20, 2021, 1:27 AM

                            Did you run the force reinstall line show there after doing that?

                            That should force it to pull in the correct pkg versions for your install.

                            Re-installing clean is always an option though. Make sure you have a config backup.

                            Steve

                            D 1 Reply Last reply Feb 20, 2021, 3:21 PM Reply Quote 0
                            • D
                              DurUser @stephenw10
                              last edited by Feb 20, 2021, 3:21 PM

                              @stephenw10 ok, I did the force re-install and that fixed it.
                              Thanks for the help.

                              1 Reply Last reply Reply Quote 1
                              • T
                                tkriviradev
                                last edited by tkriviradev Feb 21, 2021, 6:18 PM Feb 21, 2021, 6:15 PM

                                First restore the repository file:

                                /usr/local/share/pfSense/pkg/repos: cp pfSense-repo-245.conf pfSense-repo.conf
                                

                                Second step is to re-install pkg

                                pkg bootstrap -f
                                

                                Third clean-up and update

                                pkg clean all && pkg update
                                

                                if not error try

                                pkg search vim # and then install whatever
                                
                                I 1 Reply Last reply Sep 19, 2021, 8:17 AM Reply Quote 3
                                • C
                                  caligo-erik @Qinn
                                  last edited by caligo-erik Mar 31, 2021, 6:02 AM Mar 31, 2021, 5:50 AM

                                  @qinn said in Shared object "libarchive.so.7" not found, required by "pkg":

                                  Downgraded pkg

                                  Bumped into this post; how did you downgrade pkg?

                                  When I try the same command, I get:
                                  pkg-static: Newer FreeBSD version for package pfSense-pkg-iperf

                                  I am unsure whether to use the suggested " IGNORE_OSVERSION=yes " option..

                                  T 1 Reply Last reply Mar 31, 2021, 11:57 AM Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Mar 31, 2021, 11:07 AM

                                    No don't do that. You are trying to pull a version of pkg from a repo set to a different FreeBSD version. That is not the same as forcing a package downgrade within the same version.

                                    Steve

                                    adamwA 1 Reply Last reply Apr 23, 2021, 5:45 PM Reply Quote 1
                                    • Q
                                      Qinn @Qinn
                                      last edited by Qinn Mar 31, 2021, 11:14 AM Mar 31, 2021, 11:10 AM

                                      @qinn said in Shared object "libarchive.so.7" not found, required by "pkg":

                                      Think I found it, the pkg package gets updated when in GUI from System/Update/System update you select "Update Latest 2.4.x development version (2.4.5)" in Branch and I did not confirm it, just selected it!

                                      [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
                                      1.12.0
                                      [2.4.4-RELEASE][root@pfSense.localdomain]/root: 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.
                                      Checking integrity... done (0 conflicting)
                                      The following 1 package(s) will be affected (of 0 checked):
                                      
                                      Installed packages to be DOWNGRADED:
                                              pkg: 1.12.0 -> 1.10.5_6 [pfSense]
                                      
                                      Number of packages to be downgraded: 1
                                      
                                      The operation will free 1 MiB.
                                      
                                      Proceed with this action? [y/N]: y
                                      [1/1] Downgrading pkg from 1.12.0 to 1.10.5_6...
                                      [1/1] Extracting pkg-1.10.5_6: 100%
                                      You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
                                      [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
                                      1.10.5
                                      

                                      Selected it and...

                                      [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
                                      1.12.0
                                      [2.4.4-RELEASE][root@pfSense.localdomain]/root:
                                      ``
                                      

                                      @caligo-erik but why would you do it? Just like @stephenw10 advises don't change the package manager version.

                                      Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                      Firmware: Latest-stable-pfSense CE (amd64)
                                      Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                                      C 1 Reply Last reply Mar 31, 2021, 1:18 PM Reply Quote 0
                                      • T
                                        tkriviradev @caligo-erik
                                        last edited by Mar 31, 2021, 11:57 AM

                                        @caligo-erik

                                        If you want to stay on 2.4.5-RELEASE-p1 for a while before upgrading, make sure you go to System|Update and change your Branch to "Previous stable version". This will keep your System|Package Manager from offering Updates that may not be suitable for 2.4.5

                                        1 Reply Last reply Reply Quote 1
                                        • C
                                          caligo-erik @Qinn
                                          last edited by Mar 31, 2021, 1:18 PM

                                          @qinn said in Shared object "libarchive.so.7" not found, required by "pkg":

                                          @qinn said in Shared object "libarchive.so.7" not found, required by "pkg":

                                          Think I found it, the pkg package gets updated when in GUI from System/Update/System update you select "Update Latest 2.4.x development version (2.4.5)" in Branch and I did not confirm it, just selected it!

                                          [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
                                          1.12.0
                                          [2.4.4-RELEASE][root@pfSense.localdomain]/root: 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.
                                          Checking integrity... done (0 conflicting)
                                          The following 1 package(s) will be affected (of 0 checked):
                                          
                                          Installed packages to be DOWNGRADED:
                                                  pkg: 1.12.0 -> 1.10.5_6 [pfSense]
                                          
                                          Number of packages to be downgraded: 1
                                          
                                          The operation will free 1 MiB.
                                          
                                          Proceed with this action? [y/N]: y
                                          [1/1] Downgrading pkg from 1.12.0 to 1.10.5_6...
                                          [1/1] Extracting pkg-1.10.5_6: 100%
                                          You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
                                          [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
                                          1.10.5
                                          

                                          Selected it and...

                                          [2.4.4-RELEASE][root@pfSense.localdomain]/root: pkg -v
                                          1.12.0
                                          [2.4.4-RELEASE][root@pfSense.localdomain]/root:
                                          ``
                                          

                                          @caligo-erik but why would you do it? Just like @stephenw10 advises don't change the package manager version.

                                          It all started with wanting to install a package using the GUI, and no packages were available. I read on some forums, that it might be a temporary issue, so I waited a couple of days, and retried.

                                          Then I tried to update to 2.5, but it got stuck.

                                          Since then I've been reading up on various posts of people with similar problems, ultimately bumping into this one.

                                          I've already create a backup config.xml file and - unless I can fix this otherwise first - will do a reinstall over the weekend.

                                          C 1 Reply Last reply May 1, 2021, 3:09 PM Reply Quote 1
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received