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

How to reinstall packages on 2.4.5?

Scheduled Pinned Locked Moved pfSense Packages
9 Posts 4 Posters 2.9k 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.
  • M
    mcarson75
    last edited by Feb 21, 2021, 12:46 AM

    I tried the upgrade to 2.5.0. Many things didn't work. (OpenVPN tunnels to NordVPN, 1 of my IPSec tunnels, NUT, web pages taking a long time to load, both the pfsense gui and other pages).

    After spending all afternoon troubleshooting and getting nowhere, I decided to reinstall 2.4.5 for now. I had several issues at first with the restore breaking everything when it tried to reinstall packages. Finally figured I needed to set the branch to 2.4.5 and was able to do the restore and get most things back up.

    However, it only installed the ACME package. I also need Avahi, haproxy, NUT, and pfBlocker. When I go to choose any of these however it just hangs on "Please wait while the update system initializes" and doesn't do anything further.

    How can I reinstall the correct packages? I'm fine with working at the command line if necessary.

    Thanks,
    -Matt

    T 1 Reply Last reply Feb 21, 2021, 12:58 AM Reply Quote 0
    • T
      Traveller @mcarson75
      last edited by Traveller Feb 21, 2021, 1:00 AM Feb 21, 2021, 12:58 AM

      @mcarson75 You need to go to the System > Update page and select the Previous stable version (2.4.5 DEPRECATED) branch.

      This will allow you to install packages on 2.4.5.

      M 1 Reply Last reply Feb 21, 2021, 1:05 AM Reply Quote 0
      • M
        mcarson75 @Traveller
        last edited by Feb 21, 2021, 1:05 AM

        @traveller, thanks. I had already done that actually, but it still doesn't work. I've discovered that Package Manager seems to be broken. Trying to run pkg -v at the command line returns

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

        I also see these lines at the console where I would normally see the interfaces:

        /usr/local/bin/php-cgi: Undefined symbol "alphasort@FBSD_1.5"
        /usr/local/bin/php: Undefined symbol "alphasort@FBSD_1.5"
        

        So I think the restore process is still breaking something. Just not sure how to go about fixing it. Maybe restoring things one by one?

        Thanks,
        -Matt

        T T 2 Replies Last reply Feb 21, 2021, 1:08 AM Reply Quote 0
        • T
          Traveller @mcarson75
          last edited by Feb 21, 2021, 1:08 AM

          @mcarson75 The earlier installs might have broken things.

          Consider starting again, and changing the branch first thing.

          I got lucky in that things hung, but I still have a working Package Manager. Then, I found the correct solution.

          Good luck!

          M 1 Reply Last reply Feb 21, 2021, 1:21 AM Reply Quote 0
          • M
            mcarson75 @Traveller
            last edited by Feb 21, 2021, 1:21 AM

            @traveller thanks, I'll keep playing. Last time I did a clean bare-metal install of 2.4.5, then set the branch, then restored my backup. I think I should have set the branch on my old setup before I took the backup in the first place, but a bit late for that. I did try manually modifying the config xml to set the branch but it still didn't work. I'll try a few other things. I might have an older backup too.

            1 Reply Last reply Reply Quote 0
            • M
              mcarson75
              last edited by Feb 21, 2021, 2:58 AM

              I finally got everything running on 2.4.5. I made a copy of my config.xml file and deleted the entire <installedpackages> section and restored everything else. I made sure that branch was set to 2.4.5, and then installed all of the packages I needed. Then I restored just the package manager from my original backup. Finally everything seems to be back up and working.

              T 1 Reply Last reply Feb 21, 2021, 2:15 PM Reply Quote 0
              • T
                Traveller @mcarson75
                last edited by Feb 21, 2021, 2:15 PM

                @mcarson75 Oof!

                Glad you got that sorted.

                1 Reply Last reply Reply Quote 0
                • T
                  taxilian @mcarson75
                  last edited by Apr 28, 2021, 9:49 PM

                  @mcarson75 said in How to reinstall packages on 2.4.5?:

                  @traveller, thanks. I had already done that actually, but it still doesn't work. I've discovered that Package Manager seems to be broken. Trying to run pkg -v at the command line returns
                  Shared object "libarchive.so.7" not found, required by "pkg"

                  Just in case anyone else is having this issue, I was able to fix it by first setting the branch to 2.4.5 DEPRECATED and then (this is the important bit) run:

                  pkg-static bootstrap -f
                  

                  This fixed the pkg issue for me; unfortunately I still get the "undefined symbol alphasort" thing, but at least I'm able to work on packages now

                  B 1 Reply Last reply Apr 30, 2021, 6:12 AM Reply Quote 1
                  • B
                    baseer @taxilian
                    last edited by Apr 30, 2021, 6:12 AM

                    @taxilian

                    this worked for me

                    System / Update / System Update
                    set branch to 2.4.5 DEPRECATED

                    1 Reply Last reply Reply Quote 0
                    • 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