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

    Upgrading 2.3.2-RELEASE-p1 "pfSense-repo-2.3.3.txz: Not Found"

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    11 Posts 5 Posters 2.6k 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.
    • A Offline
      andrewinhawaii
      last edited by

      Actual output:

      root: pfSense-upgrade -d

      Updating repositories metadata…
      Updating FreeBSD repository catalogue...
      FreeBSD repository is up to date.
      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.
      Upgrading pfSense-repo...
      Updating FreeBSD repository catalogue...
      FreeBSD repository is up to date.
      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 2 package(s) will be affected (of 0 checked):

      New packages to be INSTALLED:
              pfSense-upgrade: 0.21 [pfSense]

      Installed packages to be UPGRADED:
              pfSense-repo: 2.3.2_1 -> 2.3.3 [pfSense]

      Number of packages to be installed: 1
      Number of packages to be upgraded: 1

      17 KiB to be downloaded.
      pkg: https://pkg.pfsense.org/pfSense_v2_3_2_amd64-pfSense_v2_3_2/All/pfSense-repo-2.3.3.txz: Not Found
      root:

      Looking in the parent directory of he URL (https://pkg.pfsense.org/pfSense_v2_3_2_amd64-pfSense_v2_3_2/All/)  I see a "pfSense-repo-2.3.3_1.txz" but not "pfSense-repo-2.3.3.txz"

      Is there a pkg dependency that I can tweak to get past this?

      Thanks-

      Andrew

      1 Reply Last reply Reply Quote 0
      • P Offline
        PiBa
        last edited by

        What if you run?:

        pkg-static unlock pfSense-kernel-pfSense
        pkg-static update -f
        pkg-static upgrade -f
        
        1 Reply Last reply Reply Quote 0
        • A Offline
          andrewinhawaii
          last edited by

          I think this is the root of the problem here:

          /root: pkg-static update -f
          Updating FreeBSD repository catalogue…
          Fetching meta.txz: 100%    944 B  0.9kB/s    00:01   
          Fetching packagesite.txz: 100%    6 MiB  1.5MB/s    00:04   
          Processing entries: 100%
          FreeBSD repository update completed. 26279 packages processed.
          Updating pfSense-core repository catalogue...
          Fetching meta.txz: 100%    944 B  0.9kB/s    00:01   
          Child process pid=86978 terminated abnormally: Segmentation fault
          /root: pkg update -f
          Updating FreeBSD repository catalogue…
          Fetching meta.txz: 100%    944 B  0.9kB/s    00:01   
          Fetching packagesite.txz: 100%    6 MiB  2.0MB/s    00:03   
          Processing entries: 100%
          FreeBSD repository update completed. 26279 packages processed.
          Updating pfSense-core repository catalogue...
          Fetching meta.txz: 100%    944 B  0.9kB/s    00:01   
          Child process pid=23214 terminated abnormally: Segmentation fault
          /root:

          1 Reply Last reply Reply Quote 0
          • P Offline
            PiBa
            last edited by

            Can you try the command below, and post the (long) output? (perhaps attach it as a file..)

            truss pkg update -f
            
            1 Reply Last reply Reply Quote 0
            • A Offline
              andrewinhawaii
              last edited by

              Second try - I did not know that a text file name needs to end in a suffix ".txt" to attach.

              I did not realize that truss was part of the distribution.  I'll try (again) to attach the 1.78MB output.

              Here are the last few lines, cleaned up:

              
              Fetching meta.txz:   0%
              write(1,"Fetching meta.txz:   0%",23)             = 23 (0x17)
              write(11,"\M-}7zXZ\0\0\^D\M-f\M-V\M-4F\^B"...,944) = 944 (0x3b0)
              ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xffffa380) = 0 (0x0)
              Fetching meta.txz: 100%
              write(1,"\rFetching meta.txz: 100%",24)           = 24 (0x18)
                  944 B
              write(1,"    944 B",9)                          = 9 (0x9)
                 0.9kB/s 
              write(1,"   0.9kB/s ",11)                     = 11 (0xb)
                 00:01
              write(1,"   00:01",8)                            = 8 (0x8)
              
              write(1,"    ",4)                            = 4 (0x4)
              ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xffffa370) = 0 (0x0)
              
              write(1,"\n",1)                                  = 1 (0x1)
              write(13,"\^U\^C\^C\0\^Z@\M^Z\M-L\M-n\^R"...,31) = 31 (0x1f)
              madvise(0x803576000,0x7000,0x5)                  = 0 (0x0)
              madvise(0x808424000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x808453000,0xe000,0x5)                  = 0 (0x0)
              madvise(0x808469000,0x4000,0x5)                  = 0 (0x0)
              madvise(0x8084f0000,0x5000,0x5)                  = 0 (0x0)
              madvise(0x808525000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x808535000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x80858b000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x808597000,0x20000,0x5)                 = 0 (0x0)
              madvise(0x8085bd000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x8085cd000,0xc000,0x5)                  = 0 (0x0)
              madvise(0x8085df000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x8085f9000,0x20000,0x5)                 = 0 (0x0)
              madvise(0x80861d000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x808657000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x808677000,0x4000,0x5)                  = 0 (0x0)
              madvise(0x8086bd000,0x8000,0x5)                  = 0 (0x0)
              madvise(0x8086ea000,0x3000,0x5)                  = 0 (0x0)
              madvise(0x808463000,0x3000,0x5)                  = 0 (0x0)
              madvise(0x8084bb000,0xd000,0x5)                  = 0 (0x0)
              madvise(0x8086d5000,0x1000,0x5)                  = 0 (0x0)
              madvise(0x8086d8000,0x1000,0x5)                  = 0 (0x0)
              madvise(0x8086e2000,0x4000,0x5)                  = 0 (0x0)
              madvise(0x805e63000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x805e6f000,0xa000,0x5)                  = 0 (0x0)
              madvise(0x805e99000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x805edd000,0xa000,0x5)                  = 0 (0x0)
              madvise(0x805ee9000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x805f10000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x805f14000,0x1000,0x5)                  = 0 (0x0)
              madvise(0x805f18000,0x1000,0x5)                  = 0 (0x0)
              madvise(0x805f1e000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x805f38000,0x4000,0x5)                  = 0 (0x0)
              madvise(0x805f6b000,0x5000,0x5)                  = 0 (0x0)
              madvise(0x805f8f000,0xc000,0x5)                  = 0 (0x0)
              madvise(0x805fbb000,0x2000,0x5)                  = 0 (0x0)
              madvise(0x805e6b000,0x1000,0x5)                  = 0 (0x0)
              madvise(0x805f5c000,0xa000,0x5)                  = 0 (0x0)
              close(13)                                        = 0 (0x0)
              futimes(11,{ 1489096559.000000, 1489096559.000000 }) = 0 (0x0)
              unlink("/var/db/pkg/pfSense-core.meta")          = 0 (0x0)
              lseek(11,0x0,SEEK_SET)                           = 0 (0x0)
              openat(AT_FDCWD,"/var/db/pkg/pfSense-core.meta",O_WRONLY|O_CREAT|O_TRUNC,0644) = 13 (0xd)
              fchown(11,0,0)                                   = 0 (0x0)
              socketpair(0x1,0x1,0x0,0x7fffffffd2a4)           = 0 (0x0)
              sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
              fork()                                           = 39194 (0x991a)
              sigprocmask(SIG_SETMASK,{ },0x0)                 = 0 (0x0)
              close(14)                                        = 0 (0x0)
              read(15,"\0\^D\0\0\0meta\0\^A\0\0\^F\aS"...,1024) = 269 (0x10d)
              read(15,"\^A\^D\0\0\0meta\M-C\^A\0\0-----"...,755) = 464 (0x1d0)
              read(15,0x803407add,291)                         = 0 (0x0)
              wait4(39194,{ EXITED,val=0 },0x0,0x0)            = 39194 (0x991a)
              open("/usr/local/share/pfSense/keys/pkg/trusted",O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,010) = 14 (0xe)
              fstatfs(14,{ fstypename=ufs,mntonname=/,mntfromname=/dev/ufsid/58872c0aca157781,fsid=0a2c8758817715ca }) = 0 (0x0)
              getdirentries(0xe,0x80357d000,0x1000,0x80342a828) = 96 (0x60)
              openat(AT_FDCWD,"/usr/local/share/pfSense/keys/pkg/trusted/beta.pfsense.org.20151223",O_RDONLY,00) = 16 (0x10)
              fstat(16,{ mode=-rw-r--r-- ,inode=7876120,size=95,blksize=32768 }) = 0 (0x0)
              mmap(0x0,95,PROT_READ,MAP_SHARED,16,0x0)         = 34366357504 (0x800650000)
              munmap(0x800650000,95)                           = 0 (0x0)
              close(16)                                        = 0 (0x0)
              openat(AT_FDCWD,"/usr/local/share/pfSense/keys/pkg/trusted/pkg.pfsense.org.20160406",O_RDONLY,00) = 16 (0x10)
              fstat(16,{ mode=-rw-r--r-- ,inode=7876121,size=95,blksize=32768 }) = 0 (0x0)
              mmap(0x0,95,PROT_READ,MAP_SHARED,16,0x0)         = 34366357504 (0x800650000)
              munmap(0x800650000,95)                           = 0 (0x0)
              close(16)                                        = 0 (0x0)
              getdirentries(0xe,0x80357d000,0x1000,0x80342a828) = 0 (0x0)
              close(14)                                        = 0 (0x0)
              stat("/usr/local/share/pfSense/keys/pkg/revoked",{ mode=drwxr-xr-x ,inode=7871155,size=512,blksize=32768 }) = 0 (0x0)
              open("/usr/local/share/pfSense/keys/pkg/revoked",O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,010) = 14 (0xe)
              fstatfs(14,{ fstypename=ufs,mntonname=/,mntfromname=/dev/ufsid/58872c0aca157781,fsid=0a2c8758817715ca }) = 0 (0x0)
              getdirentries(0xe,0x80357d000,0x1000,0x80342a828) = 40 (0x28)
              openat(AT_FDCWD,"/usr/local/share/pfSense/keys/pkg/revoked/.empty",O_RDONLY,00) = 16 (0x10)
              fstat(16,{ mode=-rw-r--r-- ,inode=7876122,size=0,blksize=32768 }) = 0 (0x0)
              close(16)                                        = 0 (0x0)
              SIGNAL 11 (SIGSEGV)
              process killed, signal = 11 (core dumped)
              
              

              truss.txt

              1 Reply Last reply Reply Quote 0
              • P Offline
                PiBa
                last edited by

                Different angle.. just spotted that it seems to be updating freebsd repositories.. did you enable the freebsd repository to install some extra package from? The pfSense repo does not have 26279 packages.. Might be the freebsd repo contains something pfSense doesn't expect or contained a incompatible version of something..

                If you've got it enabled, then disable that repository and try again.?

                1 Reply Last reply Reply Quote 0
                • A Offline
                  andrewinhawaii
                  last edited by

                  Yep, I have added FreeBSD package databases for some of my "must haves" like emacs, 35 years of muscle memory is not going away.  And minicom to use the serial port out. Sorry, I forgot about that; these two packages do drag in a few dependencies.  I've attached the output of ls /var/cache/pkg/ as pkg.txt if that will help identify the offending package.

                  OK, I disabled the FreeBSD repos, and so the output from truss pkg update -f is much smaller, 144KB.

                  truss.txt
                  pkg.txt

                  1 Reply Last reply Reply Quote 0
                  • BismarckB Offline
                    Bismarck
                    last edited by

                    I had the same problem, in my case it was because pkg was at version 1.10.1 from the freebsd repo update.

                    pkg-1.10.1-b9adc75209.txz
                    pkg-1.10.1.txz
                    

                    downgrading to pkg 1.9.4 did the trick for me, be sure the freebsd repo is off and

                    pkg-static install -f pkg
                    

                    after that pkg would throw a sqlite error about wrong version, we need to fix first:

                    pkg shell
                    CREATE VIRTUAL TABLE pkg_search USING fts4(id, name, origin);
                    pragma user_version=33;
                    

                    if not just skip this step and update from cli with option 13.

                    Now you should be able to updated to 2.3.4-RELEASE, which will update pkg again to 1.10.1 but now this should no issue anymore.

                    Good luck.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      andrewinhawaii
                      last edited by

                      Yes, that was it.  Thank you very much; I am up and running pfSense 2.3.4-RELEASE.

                      I must admit that I am more than a bit concerned that slightly different versions of pkg fail in a wildly spectacular fashion like this.  Generally a "SIGSEV" means you've dereferenced a null pointer.  Which means that the mistake is much further back, failing to check for a null pointer.  What is going on with the FBSD development team, this is a rookie error.

                      Andrew

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        pfsensation
                        last edited by

                        @Bismarck:

                        I had the same problem, in my case it was because pkg was at version 1.10.1 from the freebsd repo update.

                        pkg-1.10.1-b9adc75209.txz
                        pkg-1.10.1.txz
                        

                        downgrading to pkg 1.9.4 did the trick for me, be sure the freebsd repo is off and

                        pkg-static install -f pkg
                        

                        after that pkg would throw a sqlite error about wrong version, we need to fix first:

                        pkg shell
                        CREATE VIRTUAL TABLE pkg_search USING fts4(id, name, origin);
                        pragma user_version=33;
                        

                        if not just skip this step and update from cli with option 13.

                        Now you should be able to updated to 2.3.4-RELEASE, which will update pkg again to 1.10.1 but now this should no issue anymore.

                        Good luck.

                        This worked perfectly for me too. Now I'm also on 2.3.4. Nice one! :D

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          KranZ
                          last edited by

                          For the next person who finds this thread but it doesn't work, here is what I did:

                          Verify you still have pkg-1.9.4_1 in your cache.  If not, then find a copy and download it manually.

                          ls -l /var/cache/pkg/pkg-1.9.4_1
                          -rw-r--r--  1 root  wheel  2549424 Feb 10 21:20 pkg-1.9.4_1-de95a0ff9b.txz
                          lrwxr-xr-x  1 root  wheel       26 Mar 27 21:26 pkg-1.9.4_1.txz -> pkg-1.9.4_1-de95a0ff9b.txz
                          
                          

                          Then run```
                          pkg add -f /var/cache/pkg-1.9.4_1.txz

                          
                          It will complain about the DB version so continue the steps from Bismark's comment above about changing the DB version manually.
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.