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

    Can't install or remove packages

    Scheduled Pinned Locked Moved General pfSense Questions
    17 Posts 7 Posters 2.5k Views 7 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.
    • S Offline
      serbus
      last edited by serbus

      Hello!

      Maybe...

      https://docs.netgate.com/pfsense/en/latest/packages/fixing-a-broken-pkg-database.html

      or #13 from the console menu.

      John

      Lex parsimoniae

      QinnQ 1 Reply Last reply Reply Quote 0
      • QinnQ Offline
        Qinn @kiokoman
        last edited by

        @kiokoman said in Can't install or remove packages:

        try with Prefer IPv4 over IPv6 under system / advanced / networking

        Thanks for the reply, but sorry to report that did not work

        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
        • QinnQ Offline
          Qinn @serbus
          last edited by

          @serbus said in Can't install or remove packages:

          Hello!

          Maybe...

          https://docs.netgate.com/pfsense/en/latest/packages/fixing-a-broken-pkg-database.html

          or #13 from the console menu.

          John

          [2.4.5-RELEASE][root@pfSense.localdomain]/root: /bin/mkdir -p /var/db/pkg/ /root/var/db/pkg/
          [2.4.5-RELEASE][root@pfSense.localdomain]/root: /usr/local/sbin/pkg-static update -f
          Updating pfSense-core repository catalogue...
          Fetching meta.txz: 100%    916 B   0.9kB/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 144.4kB/s    00:01
          Processing entries: 100%
          pfSense repository update completed. 525 packages processed.
          All repositories are up to date.
          [2.4.5-RELEASE][root@pfSense.localdomain]/root: /usr/local/sbin/pkg-static update -f
          Updating pfSense-core repository catalogue...
          Fetching meta.txz: 100%    916 B   0.9kB/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 144.4kB/s    00:01
          Processing entries: 100%
          pfSense repository update completed. 525 packages processed.
          All repositories are up to date.
          [2.4.5-RELEASE][root@pfSense.localdomain]/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.
          pkg-static: Cannot get an advisory lock on a database, it is locked by another process
          [2.4.5-RELEASE][root@pfSense.localdomain]/root:
          
          

          Ran into an error...

          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 Offline
            SteveITS Rebel Alliance
            last edited by

            There are a few similar comments in https://forum.netgate.com/topic/154337/pfsense-2-4-5-release-p1-now-available/26

            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!

            QinnQ 1 Reply Last reply Reply Quote 1
            • QinnQ Offline
              Qinn @SteveITS
              last edited by

              @teamits Thanks for pointing that one out

              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 Offline
                serbus
                last edited by

                @Qinn said in Can't install or remove packages:

                pkg-static: Cannot get an advisory lock on a database, it is locked by another process

                Maybe related...

                https://forum.netgate.com/topic/141155/package-are-being-reinstalled-in-the-background

                Lex parsimoniae

                1 Reply Last reply Reply Quote 0
                • JKnottJ Offline
                  JKnott @kiokoman
                  last edited by

                  @kiokoman said in Can't install or remove packages:

                  try with Prefer IPv4 over IPv6 under system / advanced / networking

                  Why would that make a difference? I've been running pfSense with IPv6 for over 4 years without issue.

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

                  1 Reply Last reply Reply Quote 0
                  • V Offline
                    Visseroth
                    last edited by

                    I'm having the exact same issue
                    I followed what @serbus suggested with this link... https://docs.netgate.com/pfsense/en/latest/packages/fixing-a-broken-pkg-database.html
                    I started a thread here....
                    https://forum.netgate.com/topic/154389/2-4-5r1-update-no-package-re-install/14

                    My installer seems to be getting stuck on "Writing configuration... done." and then does nothing, it just sits there.

                    1 Reply Last reply Reply Quote 0
                    • kiokomanK Offline
                      kiokoman LAYER 8
                      last edited by

                      @JKnott
                      i though that maybe other isp have the same problem, and for me ipv4 is generally faster
                      https://forum.netgate.com/topic/153464/pfsense-updates-an-package-installation-very-slow-when-using-deutsche-telekom

                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                      Please do not use chat/PM to ask for help
                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                      JKnottJ 1 Reply Last reply Reply Quote 0
                      • JKnottJ Offline
                        JKnott @kiokoman
                        last edited by

                        @kiokoman

                        He said he couldn't install or remove packages. That doesn't sound like an ISP problem to me.

                        PfSense running on Qotom mini PC
                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                        UniFi AC-Lite access point

                        I haven't lost my mind. It's around here...somewhere...

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

                          Well, the "installable package list" and the "installed package list" both query the remote pfsense package server before they show up.
                          The last one checks at that moment if installed packages have the same version number as the version available in the 'store'.

                          This includes some traffic.

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

                          JKnottJ 1 Reply Last reply Reply Quote 0
                          • JKnottJ Offline
                            JKnott @Gertjan
                            last edited by

                            @Gertjan

                            Well, that's certainly easy enough to verify. There are IPv6 test sites, including a couple that run IPv6. Also, this web site runs IPv6. A bit of testing can often reveal a lot. If it were an IPv6 issue, then it would affect a lot more than updates. For example Google & Youtube are both available on IPv6. A slow or broken connection would show with either of them.

                            PfSense running on Qotom mini PC
                            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                            UniFi AC-Lite access point

                            I haven't lost my mind. It's around here...somewhere...

                            1 Reply Last reply Reply Quote 0
                            • kiokomanK Offline
                              kiokoman LAYER 8
                              last edited by kiokoman

                              you didn't read the thread I linked

                              Telekom said they do not accept your subnet because there is no route object for 2607:ee80:10::/48.
                              See https://bgp.he.net/net/2607:ee80:10::/48#_irr

                              some isp didn't have a valid route only to Netgate, no one will be able to troubleshoot this with some random ipv6 test

                              in any case, this was not the issue, it was just a suggestion because it comes to my mind something similar. and there wasn't enough information on the first post to think about something until he posted the log at least

                              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                              Please do not use chat/PM to ask for help
                              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                              JKnottJ 1 Reply Last reply Reply Quote 1
                              • JKnottJ Offline
                                JKnott @kiokoman
                                last edited by

                                @kiokoman said in Can't install or remove packages:

                                some isp didn't have a valid route only to Netgate

                                Again, this would be shown by observing what happens when you connect to this site. About 1.5 years ago, I had a problem with my ISP. This was indicated by any site that had an IPv6 address would be slow to load, because it would try IPv6 first, time out and then try IPv4. Regardless, it still went through. You simply cannot make such blanket assumptions without doing some testing. I often use Packet Capture or Wireshark, to see what's actually happening, instead of jumping to conclusions.

                                One thing I've noticed is some people are all too quick to blame IPv6, when they've done nothing to determine what the problem is. BTW, this sort of thing is not unique to IPv6, but I suspect some blame it first, simply because it's new and they don't understand it.

                                PfSense running on Qotom mini PC
                                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                UniFi AC-Lite access point

                                I haven't lost my mind. It's around here...somewhere...

                                1 Reply Last reply Reply Quote 0
                                • kiokomanK Offline
                                  kiokoman LAYER 8
                                  last edited by

                                  bla bla bla
                                  are you really trying to bully me?
                                  eh sadly I don't have time for this shit, I'd rather help than stay here to argue

                                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                  Please do not use chat/PM to ask for help
                                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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