• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
18 Posts 4 Posters 1.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.
  • F
    firefox
    last edited by firefox Feb 20, 2021, 2:52 PM Feb 20, 2021, 2:38 PM

    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 Feb 21, 2021, 5:45 AM Reply Quote 0
    • F
      firefox @firefox
      last edited by Feb 21, 2021, 5:45 AM

      ??
      How can I fix this?

      F 1 Reply Last reply Feb 22, 2021, 2:42 PM Reply Quote 0
      • F
        firefox @firefox
        last edited by Feb 22, 2021, 2:42 PM

        ???

        I 1 Reply Last reply Feb 22, 2021, 3:16 PM Reply Quote 0
        • I
          itsupport1212121 @firefox
          last edited by Feb 22, 2021, 3:16 PM

          @firefox upgrades typically auto-upgrade the packages

          F 1 Reply Last reply Feb 22, 2021, 7:00 PM Reply Quote 0
          • F
            firefox @itsupport1212121
            last edited by firefox Feb 22, 2021, 7:04 PM Feb 22, 2021, 7:00 PM

            @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 Feb 23, 2021, 6:24 PM Reply Quote 0
            • F
              firefox @firefox
              last edited by Feb 23, 2021, 6:24 PM

              ???

              S 1 Reply Last reply Feb 23, 2021, 6:41 PM Reply Quote 0
              • S
                SteveITS Galactic Empire @firefox
                last edited by SteveITS Feb 23, 2021, 6:41 PM Feb 23, 2021, 6:41 PM

                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 Feb 24, 2021, 6:26 AM Reply Quote 0
                • F
                  firefox @SteveITS
                  last edited by firefox Feb 24, 2021, 6:28 AM Feb 24, 2021, 6:26 AM

                  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

                  G 1 Reply Last reply Feb 24, 2021, 6:44 AM Reply Quote 0
                  • G
                    Gertjan @firefox
                    last edited by Gertjan Feb 24, 2021, 6:46 AM Feb 24, 2021, 6:44 AM

                    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 Feb 24, 2021, 2:32 PM Reply Quote 0
                    • F
                      firefox @Gertjan
                      last edited by Feb 24, 2021, 2:32 PM

                      @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

                      G 1 Reply Last reply Feb 24, 2021, 3:26 PM Reply Quote 0
                      • F
                        firefox @Gertjan
                        last edited by Feb 24, 2021, 2:36 PM

                        @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
                        • G
                          Gertjan @firefox
                          last edited by Feb 24, 2021, 3:26 PM

                          @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 Feb 24, 2021, 3:54 PM Reply Quote 0
                          • F
                            firefox @Gertjan
                            last edited by Feb 24, 2021, 3:54 PM

                            @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 Feb 25, 2021, 8:57 AM Reply Quote 0
                            • F
                              firefox @firefox
                              last edited by Feb 25, 2021, 8:57 AM

                              How do I fix this ?

                              G 1 Reply Last reply Feb 25, 2021, 9:01 AM Reply Quote 0
                              • G
                                Gertjan @firefox
                                last edited by Gertjan Feb 25, 2021, 9:01 AM Feb 25, 2021, 9:01 AM

                                @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 Feb 25, 2021, 3:34 PM

                                  @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 ?

                                  G 1 Reply Last reply Feb 25, 2021, 3:51 PM Reply Quote 0
                                  • G
                                    Gertjan @firefox
                                    last edited by Gertjan Feb 25, 2021, 3:51 PM Feb 25, 2021, 3:51 PM

                                    @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 Feb 25, 2021, 4:57 PM Reply Quote 0
                                    • F
                                      firefox @Gertjan
                                      last edited by Feb 25, 2021, 4:57 PM

                                      @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
                                      18 out of 18
                                      • First post
                                        18/18
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                        This community forum collects and processes your personal information.
                                        consent.not_received