2.4.1 Package Manager Unable to retrieve package information



  • Hi, i ve this problem:

    "Unable to retrieve package information"

    This is my config:

    WAN: DHCP
    LAN: 192.168.15.2

    [2.4.1-RELEASE][root@pfSense.localdomain]/root: pkg update
    Updating pfSense-core repository catalogue...
    pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-core/meta.txz: Network is unreachable
    repository pfSense-core has no meta file, using default settings
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-core/packagesite.txz: Network is unreachable
    Unable to update repository pfSense-core
    Updating pfSense repository catalogue...
    pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-pfSense_v2_4_1/meta.txz: Network is unreachable
    repository pfSense has no meta file, using default settings
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-pfSense_v2_4_1/packagesite.txz: Network is unreachable
    Unable to update repository pfSense
    Error updating repositories!
    
    

    Reading the other post find this to check conn with nslookup:

    [2.4.1-RELEASE][root@pfSense.localdomain]/root: nslookup
    > set type=srv
    > _https._tcp.pkg.pfsense.org
    ;; Got SERVFAIL reply from 127.0.0.1, trying next server
    Server:		192.168.15.1
    Address:	192.168.15.1#53
    
    Non-authoritative answer:
    _https._tcp.pkg.pfsense.org	service = 10 10 443 files00.netgate.com.
    _https._tcp.pkg.pfsense.org	service = 10 10 443 files01.netgate.com.
    
    Authoritative answers can be found from:
    > 
    
    

    I do not know how to continue…
    I try this solution but isnt work:

    [2.4.1-RELEASE][root@pfSense.localdomain]/root: pkg upgrade pkg
    Updating pfSense-core repository catalogue...
    pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-core/meta.txz: Network is unreachable
    repository pfSense-core has no meta file, using default settings
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-core/packagesite.txz: Network is unreachable
    Unable to update repository pfSense-core
    Updating pfSense repository catalogue...
    pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-pfSense_v2_4_1/meta.txz: Network is unreachable
    repository pfSense has no meta file, using default settings
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-pfSense_v2_4_1/packagesite.txz: Network is unreachable
    Unable to update repository pfSense
    Error updating repositories!
    
    

    https://pkg.pfsense.org/pfSense_v2_4_1_amd64-pfSense_v2_4_1/ is down… i try to change to https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/ in .conf file /usr/local/etc/pkg/repos/pfSense.conf

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

    to

    FreeBSD: { enabled: no }
    
    pfSense-core: {
      url: "pkg+https://files00.netgate.com/pfSense_v2_4_1_amd64-core",
      mirror_type: "srv",
      signature_type: "fingerprints",
      fingerprints: "/usr/local/share/pfSense/keys/pkg",
      enabled: yes
    }
    
    pfSense: {
      url: "pkg+https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1",
      mirror_type: "srv",
      signature_type: "fingerprints",
      fingerprints: "/usr/local/share/pfSense/keys/pkg",
      enabled: yes
    }
    
    

    Doesnt work:

    [2.4.1-RELEASE][root@pfSense.localdomain]/root: pkg update
    Updating pfSense-core repository catalogue...
    pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-core/meta.txz: Network is unreachable
    repository pfSense-core has no meta file, using default settings
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-core/packagesite.txz: Network is unreachable
    Unable to update repository pfSense-core
    Updating pfSense repository catalogue...
    pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/meta.txz: Network is unreachable
    repository pfSense has no meta file, using default settings
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/packagesite.txz: Network is unreachable
    Unable to update repository pfSense
    Error updating repositories!
    [2.4.1-RELEASE][root@pfSense.localdomain]/root: pkg upgrade pkg
    Updating pfSense-core repository catalogue...
    pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-core/meta.txz: Network is unreachable
    repository pfSense-core has no meta file, using default settings
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-core/packagesite.txz: Network is unreachable
    Unable to update repository pfSense-core
    Updating pfSense repository catalogue...
    pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/meta.txz: Network is unreachable
    repository pfSense has no meta file, using default settings
    pkg: https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/packagesite.txz: Network is unreachable
    Unable to update repository pfSense
    Error updating repositories!
    
    

    Please help me! any idea to solve this ?



  • i try installing v 2.3.5 and isn't work !



  • Hello, i've the identical problem

    /var/db/pkg: pkg update -f
    Updating pfSense-core repository catalogue...
    pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-core/meta.txz: No route to host
    repository pfSense-core has no meta file, using default settings
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-core/packagesite.txz: No route to host
    Unable to update repository pfSense-core
    Updating pfSense repository catalogue...
    pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-pfSense_v2_4_1/meta.txz: No route to host
    repository pfSense has no meta file, using default settings
    pkg: https://pkg.pfsense.org/pfSense_v2_4_1_amd64-pfSense_v2_4_1/packagesite.txz: No route to host
    Unable to update repository pfSense
    Error updating repositories!
    
    

    The Internet connection it's ok.

    : nslookup pfsense.org
    Server:		127.0.0.1
    Address:	127.0.0.1#53
    
    Non-authoritative answer:
    Name:	pfsense.org
    Address: 208.123.73.69
    Name:	pfsense.org
    Address: 2610:160:11:11::69
    


  • Same problem on 2.4.1



  • It's ok now.



  • Hello flipflip

    i've the identical problem

    [2.4.1-RELEASE][admin@pfsense.home]/var/db/pkg: pkg update -f
    Updating pfSense-core repository catalogue…
    pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory

    [2.4.1-RELEASE][admin@pfsense.home]/var/db/pkg: nslookup pfsense.org
    Server:        127.0.0.1
    Address:        127.0.0.1#53

    Non-authoritative answer:
    Name:  pfsense.org
    Address: 208.123.73.69
    Name:  pfsense.org
    Address: 2610:160:11:11::69

    what solution did you find?

    Thank you



  • I'm not sure if I have the exact same issue or not.
    I successfully upgraded to 2.4.2, and now I can't reinstall packages because when I look at the Available Packages page nothing comes up.
    I don't get any errors either.  The installed packages page works fine.
    Any thoughts?



  • I install pfsense with 2.4.2 and then push the backup file.

    Packets now work properly again  ;D

    I think the problem had to come from 2.4.1



  • "pkg upgrade pkg" command fixed it for me… read on...

    I upgraded from 2.3.x to 2.4.2_1 (multi stage upgrade and had to jump through a few hoops). I had the exact same issue with not being able to retrieve package info. Everything I found online didn't work (DNS, option 13 at console/ssh, pkg update command...). Eventually I found a post on some site that said to run "pkg update" and then "pkg upgrade pkg". I'm not linking the site because it contains content that drove my Norton Anti-Virus crazy. As soon as I ran "pkg upgrade pkg" at the console, I refreshed the 'Installed Packages' page and bam... fixed.



  • hi anyone can help me please my pfsense  2.4.2

    i can't install any package

    i try "pkg upgrade pkg"
    but dos't working  :( :( :(





  • Rebel Alliance Developer Netgate

    @siwar:

    hi anyone can help me please my pfsense  2.4.2

    i can't install any package

    i try "pkg upgrade pkg"
    but dos't working  :( :( :(

    Fix your connectivity (WAN, default gateway) and/or fix your DNS resolution. The firewall itself cannot reach DNS servers to resolve a hostname.



  • In order to fix this problem, asuming that yours internet connection is working, you only need to fix the clock changing the host value in your NTP's client settings according to your region or country in the admin panel.

    And then you can successfully update your pkg repositories within the shell:

    pkg update
    pkg upgrade



  • okay so I spent quite a bit of time investigating (version 2.4.2) why I cannot install a single package. I checked most of the options mentioned above, but in my case the problem was hidden in System > Routing > Gateways .... both on LAN and WAN interface settings the Default Gateway check box was checked...that is why all the DNS calls went out via the LAN GW and not out to the internet. Once I unchecked the box for LAN interface, all worked like a charm. There can only be one default gateway, rest has to be fixed with static routing!



  • So, why do you have a gateway on your LAN interface?



  • @grimson we route management traffic via LAN (in this case transfer / DMZNet vlan, with a next hop on the other side, hence the dedicated GW on that interface) and the rest via WAN with its default gateway. I do not want to discuss my network topology here. I just hope that my post can save someone's time and frustration I went through. I guess it would be a nice feature to "limit" the option to have more than one default gateway selected as this caused the problem in the first place.