No Available Packages - Package Manager
-
Hi all.
I have successfully upgraded my pfsense from 2.6 to 2.7.2.
Currently have a problem No available packages - package manager.This is the log file I got.
- Resolving timed out after 30014 milliseconds
- Closing connection
DBG(1)[86565]> CURL> No mirror set url to https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/meta.conf
DBG(1)[86565]> CURL> attempting to fetch from https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/meta.conf, left retry 2
- Couldn't find host pkg.pfsense.org in the .netrc file; using defaults
- Resolving timed out after 30008 milliseconds
- Closing connection
DBG(1)[86565]> CURL> No mirror set url to https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/meta.conf
DBG(1)[86565]> CURL> attempting to fetch from https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/meta.conf, left retry 1
- Couldn't find host pkg.pfsense.org in the .netrc file; using defaults
- Resolving timed out after 30017 milliseconds
- Closing connection
pkg: An error occured while fetching package
DBG(1)[86565]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/meta.txz
pkg: packagesite URL error for pkg+https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/meta.txz -- pkg+:// implies SRV mirror type
repository pfSense has no meta file, using default settings
DBG(1)[86565]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/packagesite.pkg
pkg: packagesite URL error for pkg+https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/packagesite.pkg -- pkg+:// implies SRV mirror type
DBG(1)[86565]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/packagesite.txz
pkg: packagesite URL error for pkg+https://pkg.pfsense.org/pfSense_v2_7_2_amd64-pfSense_v2_7_2/packagesite.txz -- pkg+:// implies SRV mirror type
Unable to update repository pfSense
Error updating repositories!
How to fix this problem ?
-
Check the output of:
pkg-static info -x pfSense
pfSense-repoc
-
@stephenw10 said in No Available Packages - Package Manager:
pfSense-repoc
Hello admin. I got this result.
-
Looks like you have a DNS problem. Try:
[2.7.2-RELEASE][admin@t70.stevew.lan]/root: host pkg01-atx.netgate.com pkg01-atx.netgate.com has address 208.123.73.209 pkg01-atx.netgate.com has IPv6 address 2610:160:11:18::209
Try to resolve it in Diag > DNS Lookup.
Make sure Unbound is running.
-
@stephenw10 Unbound is running.. I got this result.
-
The DNS lookup in the GUI uses the same 'host' command as the 'host' command on the command line. That is, they wind up using the same system call.
So, for one moment it works.
And the next moment, it won't.On the command line, use this command several times :
[23.09.1-RELEASE][root@pfSense.bhf.tld]/tmp: host pkg01-atx.netgate.com 127.0.0.1 Using domain server: Name: 127.0.0.1 Address: 127.0.0.1#53 Aliases: pkg01-atx.netgate.com has address 208.123.73.209 pkg01-atx.netgate.com has IPv6 address 2610:160:11:18::209
This gives more info, and you'll be sure 127.0.0.1 is used. 127.0.0.1 is where unbound, the resolver, listens. If the resolver doesn't answer, this means it isn't running (== listening) on 127.0.0.1.
Can you show Status > System Logs > System > DNS Resolver
Can you find the word 'start' on that page ? Often ?Also, check that you have (DNS resolver settings page ) :
or at least a selection that includes 'Localhost' = 127.0.0.1.
edit. Strange, actually.
The 'host' command uses what is listed in "/etc/resolv.conf".
Which should be 127.0.0.1 202.188.18.188 1.9.1.9 8.8.8.8
Just for my own curiosity : check that file.
And none of these IP (DNS servers) replied ?
And moments later, they all reply ?
A WAN or uplink connection problem ? -
I'd also make sure you have a valid default route in Diag > Routes.
-
Hi @Gertjan Sorry for late response. Just back from holiday..
This is my pfsense DNS.
This is my DNS resolver Settings.
Can you show Status > System Logs > System > DNS Resolver Can you find the word 'start' on that page ? Often ?
Nope. I dont find "start" on the page.
I have ping using CMD and this is the result.
-
hi
this is the result. -
That all looks good. Are you still seeing the same issues updating?
-
@stephenw10 Yes.
Still same. No package manager. -
Like
pkg-static -d update
still fails? -
@stephenw10 Hi..
Still same..
What else should I do ?![2023-12-18_13-16.png]
-
I had a same issue. I didnt find way how to resolve that. For me the main things worked, so I keep router for few days, as I dont have time. After 4 days when I logged back, everything was working and I was able to install packages.
I do not know why that happen, I tried everything what was found on phorum without any luck. @stephenw10 can you check if there arent really some package service issues on your side? Maybe thats why there is also so many issues with upgrades..?
-
I FOUND A SOLUTION !!
I go to System > General Setup
I untick the DNS Server overide.
I add cloudflare dns.
Then save
At the system information, the button check for update appear.
Then I try revisited the package manager. It work fine !!
-
@linuxstudent1990 said in No Available Packages - Package Manager:
Nope. I dont find "start" on the page.
I presume you have this :
set to level 2 or 3. That means that every dns request will get flogged, and this flushes out the log fil really fast - like the line you've showed : just one second.This :
says your one 2.7.2
This :
says the same thing - the prompt says 2.7.2.
Then why the 2_7_1 repository is requested ?I stephenw10 doesn't know a correct command line solution for this one, I'll vote for the fast way out that will succeed without a hitch : get a copy of the config.xml, re install, import the copy of the config.xml and call it a day.
-
@GeorgeCZ58 I think I have solve this issue. It happen because of the DNS.
-
DNS did its work :
But true : never understood what these do on a firewall
pfSense doesn't need "them" to work.
You need public (company owned) DNS servers if your own company forces you make your DNS records public or you have a special uplink with high latency to root or tld DNS servers, and a more close by servers speeds things up a little bit.
pfSense doesn't need the DNS server it got from the upstream DHCP server (most probably it well send the IP of the ISP router, itself being a forwarder to an ISP DNS router).
Remember : public DNS servers, your ISP DNS servers are revolvers that use the Internet's root and DNS tld servers, something that pfSense also does with the resolver.Anyway, the issue right now is : pfSense is on 2.7.2. It's internal package database 'thinks' it's on 2.7.1.
-
Yes that^. Make sure you set the update branch to 2.7.2 because it appears you are running 2.7.2 but pulling packages from 2.7.1.
-
@GeorgeCZ58 I think I have solve this issue. It happen because of the DNS.
@Gertjan said in No Available Packages - Package Manager:
pfSense doesn't need the DNS server it got from the upstream DHCP server (most probably it well send the IP of the ISP router, itself being a forwarder to an ISP DNS router).
Remember : public DNS servers, your ISP DNS servers are revolvers that use the Internet's root and DNS tld servers, something that pfSense also does with the resolver.I also feeling weird. That dns are from my isp. After remove the DNS override. Its fix the problem.