Error when updating Pihole

Hello,
My pihole has been working fine, but today I noticed there was an update available.
I ran sudo pihole -up and it starts the update, but then it stops and gives this error and I can't update it.

Error: URL https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-linux-x86_64 not found
Unable to complete update, please contact Pi-hole Support

Here is the token
https://tricorder.pi-hole.net/d3h1xyDk/

Thanks.

This is exactly how I figured out that my local DNS resolver wasn't working. (can't resolve github.com into an IP). Are you using unbound?

Your debug log shows no problems.

Maybe this was a temporary problem on github or a temporary connection issue.
Did you try again? Is this still happening?

Tried it just now and still the same error. Can a dev from Pihole take a look at the link to make sure it's working?

Have you tried updating to see if you get the same?

I am not using Unbound. I have the simplest setup ever lol.
Just running Pihole in ubuntu.

Anything on this issue yet?
I just tried to update and the link it still broken. Is this issue being looked at all?

There's no issue on our side or on GitHub. I'd be alerted immediately if pepole were not able to install Pi-hole.

You could try curl -IL https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-linux-x86_64 and see where you are being blocked.

I believe it was an issue with Ubuntu update. This issue with Pihole started right after I updated Ubuntu 22.04.

I reinstalled Ubuntu and the issue is gone.

It's happening again. I updated Ubuntu to the latest version and I started getting the same error when trying to update Pihole

When using that code you provided, I get...

I checked with Ubuntu and here is what they said...

"It doesn't seem to be a problem with Ubuntu, but that the URL changed at GitHub, and the link going through their "latest" is broken. You should file an issue there on that GitHub project, so they can update/fix their link there."

As another data point, it's working okay here (selected lines from output below):

$ curl -IL https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-linux-x86_64
HTTP/2 302 
server: GitHub.com
date: Sat, 25 Feb 2023 21:07:11 GMT

HTTP/2 302 
server: GitHub.com
date: Sat, 25 Feb 2023 21:07:33 GMT

HTTP/2 200 
content-type: application/octet-stream
last-modified: Fri, 10 Feb 2023 18:58:56 GMT
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
content-disposition: attachment; filename=pihole-FTL-linux-x86_64
date: Sat, 25 Feb 2023 21:07:33 GMT
content-length: 19765824

Connection refused means that something, likely GitHub themselves, are blocking your access.

Our links are just fine, if they were broken then no one would be able to install Pi-hole and I know for a fact that isn't the case.

Then I don't know what the issue is. Why does it work fine when I reinstall Ubuntu, but then breaks when I update it?

I don't know.

What does dig github.com return as the IP address?

; <<>> DiG 9.18.1-1ubuntu1.3-Ubuntu <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18141
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;github.com. IN A

;; ANSWER SECTION:
github.com. 60 IN A 140.82.112.4

;; Query time: 31 msec
;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP)
;; WHEN: Sat Feb 25 16:24:27 EST 2023
;; MSG SIZE rcvd: 55

The only thing that breaks when I update to the latest version of Ubuntu 22.04 is the ability to update Pihole.
Everything else seems to work fine.

That's GitHub's IP address.

You can try this command on any other client, linux or Windows or Mac, and see the comparison results.

curl -IL https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-linux-x86_64

Other than that, I don't have much to help with. I know everything on our side is functioning correctly.

Do you think it's an issue with the Ubuntu update?

No idea.