ERROR: Error trying to get packages list. Aborting…


  • Been seeing this for a while now (couple weeks or so) at end of boot up on both 2.4 and 2.3.

    ERROR: Error trying to get packages list. Aborting…
    pkg: No package(s) matching pfSense-pkg-*

  • Rebel Alliance Developer Netgate

    Is your local pkg repo configured to look at somewhere else? Maybe you have the FreeBSD repository enabled?


  • If it is don't know how it would have changed.  And on both system s at the same time after an update on the same day.  I never intentionally changed it on either system.  Guess I should have made a note about which day it started.

    Is that the repository url option found under the update settings?

    If so it is still set where it's always been.  git://github.com/NOYB/pfsense.git
    Which has up to date copies of the pfSense branches I use: master, RELENG_2_3, RELENG_2_3_2

  • Rebel Alliance Developer Netgate

    No that would be the repository configuration in /usr/local/etc/pkg/repos/


  • Here's what I have.  Anything look wrong?

    /usr/local/etc/pkg/repos/FreeBSD.conf

    
    FreeBSD: { enabled: no  }
    
    

    Link:
    /usr/local/etc/pkg/repos/pfSense.conf
    /usr/local/share/pfSense/pkg/repos/pfSense-repo-devel.conf

    
    FreeBSD: { enabled: no }
    
    pfSense-core: {
      url: "pkg+https://beta.pfsense.org/packages/pfSense_master_amd64-core",
      mirror_type: "srv",
      signature_type: "fingerprints",
      fingerprints: "/usr/local/share/pfSense/keys/pkg",
      enabled: yes
    }
    
    pfSense: {
      url: "pkg+https://beta.pfsense.org/packages/pfSense_master_amd64-pfSense_devel",
      mirror_type: "srv",
      signature_type: "fingerprints",
      fingerprints: "/usr/local/share/pfSense/keys/pkg",
      enabled: yes
    }
    
    

    Same for 2.3 but it's url's.

    /usr/local/share/pfSense/pkg/repos/pfSense-repo-devel.conf
      url: "pkg+https://beta.pfsense.org/packages/pfSense_v2_3_i386-core",
      url: "pkg+https://beta.pfsense.org/packages/pfSense_v2_3_i386-pfSense_v2_3",

  • Rebel Alliance Developer Netgate

    Hmm, looks right


  • Found it.

    The following commit in this PR:
    https://github.com/pfsense/pfsense/pull/3157

    Allow get_pkg_info() to fallback on "pkg info" for local pkgs if "pkg search" cannot access a local catalog copy  #3157

    get_pkg_info() fallback using pkg info if no local copy of repo catalog

    master
    Commit hash: e47af756de79d4e8b0356cf22f72f62f09e9ad7d

    RELENG_2_3
    Commit hash: 46237e23f35db70a917939609061dce7b7f955f9
    (cherry picked from commit e47af756de79d4e8b0356cf22f72f62f09e9ad7d)

    Reverting this commit eliminates the error.

  • Developer Netgate Administrator

    It's now reverted, thanks!


  • Issue found and updated PR submitted #3418.