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

    After upgrading version 2.5.0 it is not possible to update the packages

    Problems Installing or Upgrading pfSense Software
    4
    18
    1.8k
    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.
    • F
      firefox
      last edited by firefox

      As listed in the title
      After upgrading to version 2.5.0 it is not possible to update the packages
      I have 4 packages that require updating
      And cannot be updated

      When I click update I get this message

      Please wait while the update system initializes
      

      And nothing happens

      The packages that need updating are
      ntopng
      snort
      squid
      Status_Traffic_Totals

      Additionally
      Snort seems to have stopped working

      and have this

      Unable to check for updates
      

      In the version box

      F 1 Reply Last reply Reply Quote 0
      • F
        firefox @firefox
        last edited by

        ??
        How can I fix this?

        F 1 Reply Last reply Reply Quote 0
        • F
          firefox @firefox
          last edited by

          ???

          I 1 Reply Last reply Reply Quote 0
          • I
            itsupport1212121 @firefox
            last edited by

            @firefox upgrades typically auto-upgrade the packages

            F 1 Reply Last reply Reply Quote 0
            • F
              firefox @itsupport1212121
              last edited by firefox

              @itsupport1212121
              upgrades typically auto-upgrade the packages

              In all the upgrades I had
              It never upgraded the packages

              1.png

              2.png

              3.png

              F 1 Reply Last reply Reply Quote 0
              • F
                firefox @firefox
                last edited by

                ???

                S 1 Reply Last reply Reply Quote 0
                • S
                  SteveITS Galactic Empire @firefox
                  last edited by SteveITS

                  See if Troubleshooting a Broken pkg Database helps.

                  Also see The safest practice is to remove all packages before upgrading to a new release.

                  Pre-2.7.2/23.09: 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 restart, or more depending on packages and device speed.
                  Upvote 👍 helpful posts!

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    firefox @SteveITS
                    last edited by firefox

                    With the first two commands there was no problem

                    [2.5.0-RELEASE][admin@router.home]/root: /bin/mkdir -p /var/db/pkg/ /root/var/db/pkg/
                    [2.5.0-RELEASE][admin@router.home]/root: /usr/local/sbin/pkg-static update -f
                    Updating pfSense-core repository catalogue...
                    Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
                    Fetching packagesite.txz: 100%    2 KiB   1.8kB/s    00:01    
                    Processing entries: 100%
                    pfSense-core repository update completed. 7 packages processed.
                    Updating pfSense repository catalogue...
                    Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
                    Fetching packagesite.txz: 100%  141 KiB 143.9kB/s    00:01    
                    Processing entries: 100%
                    pfSense repository update completed. 509 packages processed.
                    All repositories are up to date.
                    
                    

                    The third command I received this message

                    [2.5.0-RELEASE][admin@router.home]/root: /usr/local/sbin/pkg-static install -yf pkg pfSense pfSense-kernel-pfSense
                    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.
                    process with pid 96727 still holds the lock
                    process with pid 96727 still holds the lock
                    process with pid 96727 still holds the lock
                    process with pid 96727 still holds the lock
                    process with pid 96727 still holds the lock
                    process with pid 96727 still holds the lock
                    pkg-static: Cannot get an advisory lock on a database, it is locked by another process
                    
                    
                    

                    It is still not possible to update

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @firefox
                      last edited by Gertjan

                      There you have it :

                      @firefox said in After upgrading version 2.5.0 it is not possible to update the packages:

                      process with pid 96727 still holds the lock

                      Did you asked yourself : who is this process ID : 96727 ?
                      Let me bet on this one : it's called 'pkg' ;) Which means another pkg instance is already running.
                      I've seen this in other forum posts.

                      Look at Diagnostics > System Activity
                      Or far better : use the SSH (or console) access, option 8 and

                      ps ax | grep 'pkg'
                      

                      Stop process 96727 :

                      kill 96727
                      

                      My advise :
                      Always stop the services of the big packages that you want to upgrade.
                      With big I mean : snort, suricata, ntopd, Traffic_totals etc.

                      edit : see the forum for recent ntopd issues.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      F 2 Replies Last reply Reply Quote 0
                      • F
                        firefox @Gertjan
                        last edited by

                        @gertjan said in After upgrading version 2.5.0 it is not possible to update the packages:

                        kill 96727

                        i try that

                        [2.5.0-RELEASE][admin@router.home]/root: ps ax | grep 'pkg'
                        62412 v0  I+       0:00.41 /usr/local/bin/php -f /etc/rc.packages pfSense-pkg-squidGuard POST-INSTALL
                        96492 v0  I+       0:00.00 pkg-static upgrade -U
                        96727 v0  S+       0:04.01 pkg-static upgrade -U
                        43676  0  S+       0:00.00 grep pkg
                        
                        kill 96727
                        
                        [2.5.0-RELEASE][admin@router.home]/root: /usr/local/sbin/pkg-static install -yf pkg pfSense pfSense-kernel-pfSense
                        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 REINSTALLED:
                        	pfSense-2.5.0 [pfSense]
                        	pfSense-kernel-pfSense-2.5.0 [pfSense-core]
                        	pkg-1.16.1 [pfSense]
                        
                        Number of packages to be reinstalled: 3
                        
                        

                        I stopped the packages
                        And I tried to update again
                        I got the same result

                        GertjanG 1 Reply Last reply Reply Quote 0
                        • F
                          firefox @Gertjan
                          last edited by

                          @gertjan said in After upgrading version 2.5.0 it is not possible to update the packages:

                          ntopd

                          I did a search in the forums for that word
                          The only result is your post here

                          1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan @firefox
                            last edited by

                            @firefox said in After upgrading version 2.5.0 it is not possible to update the packages:

                            kill 96727

                            kill them all.
                            The restart updating/upgrading.

                            @gertjan said in After upgrading version 2.5.0 it is not possible to update the packages:

                            ntopd

                            Humm => ntopng

                            See here : https://forum.netgate.com/search?term=ntopng&in=posts&matchWords=all&timeRange=7776000&timeFilter=newer&sortBy=relevance&sortDirection=desc&showAs=posts

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              firefox @Gertjan
                              last edited by

                              @gertjan
                              kill them all

                              I did it
                              But each time something different came out

                              [2.5.0-RELEASE][admin@router.home]/root: kill 62412
                              [2.5.0-RELEASE][admin@router.home]/root: kill 58021
                              58021: No such process
                              [2.5.0-RELEASE][admin@router.home]/root: ps ax | grep 'pkg'
                              23060  0  S+       0:00.00 grep pkg
                              [2.5.0-RELEASE][admin@router.home]/root: kill 23060
                              23060: No such process
                              [2.5.0-RELEASE][admin@router.home]/root: ps ax | grep 'pkg'
                              62270  0  S+       0:00.00 grep pkg
                              
                              [2.5.0-RELEASE][admin@router.home]/root: /usr/local/sbin/pkg-static install -yf pkg pfSense pfSense-kernel-pfSense
                              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 3 package(s) will be affected (of 0 checked):
                              
                              Installed packages to be REINSTALLED:
                              	pfSense-2.5.0 [pfSense]
                              	pfSense-kernel-pfSense-2.5.0 [pfSense-core]
                              	pkg-1.16.1 [pfSense]
                              
                              Number of packages to be reinstalled: 3
                              [1/3] Reinstalling pkg-1.16.1...
                              [1/3] Extracting pkg-1.16.1: 100%
                              [2/3] Reinstalling pfSense-2.5.0...
                              [2/3] Extracting pfSense-2.5.0: 100%
                              [3/3] Reinstalling pfSense-kernel-pfSense-2.5.0...
                              [3/3] Extracting pfSense-kernel-pfSense-2.5.0: 100%
                              ===> Keeping a copy of current kernel in /boot/kernel.old
                              You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed.
                              
                              

                              After that I tried to update and it does not work

                              I did everything again and then restarted the system and then I tried to update and it also did not work

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                firefox @firefox
                                last edited by

                                How do I fix this ?

                                GertjanG 1 Reply Last reply Reply Quote 0
                                • GertjanG
                                  Gertjan @firefox
                                  last edited by Gertjan

                                  @firefox

                                  Did you cross check with this list : https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html ?

                                  No "help me" PM's please. Use the forum, the community will thank you.
                                  Edit : and where are the logs ??

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    firefox
                                    last edited by

                                    @gertjan said in After upgrading version 2.5.0 it is not possible to update the packages:

                                    grades.html ?

                                    i try all
                                    The only command that did anything is

                                    pkg-static upgrade -f
                                    

                                    It brought everything back to version 2.4.5

                                    How do I upgrade to 2.5.0 if the upgrade does not work well ?

                                    GertjanG 1 Reply Last reply Reply Quote 0
                                    • GertjanG
                                      Gertjan @firefox
                                      last edited by Gertjan

                                      @firefox said in After upgrading version 2.5.0 it is not possible to update the packages:

                                      i try all

                                      In that case apply the Last Resort option.
                                      If that doesn't work, call your ISP and terminate your relation with them, as the issue is upstream.

                                      No "help me" PM's please. Use the forum, the community will thank you.
                                      Edit : and where are the logs ??

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        firefox @Gertjan
                                        last edited by

                                        @gertjan
                                        In that case apply the Last Resort option.

                                        now i have to
                                        it crash And no longer works

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