Update is failing with an invalid certificate for the OS download mirror

Please follow the below template, it will help us to help you!

Expected Behaviour:

Running "pihole -up" should successfully update any out of date components.

Running Raspian
Versions:
Pi-hole - v5.112.1
AdminLTE - v5.15
FTL - v5.16.1

Actual Behaviour:

When trying to update with "pihole -up" it will run until it gets to the "[i] Processing apt-get install(s) for: jq, please wait..." line and then display this error:

E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/libo/libonig/libonig5_6.9.1-1_armhf.deb Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 209.115.181.106 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I have tried the apt-get update and the --fix-missing commands and it didn't help.
I do understand what a bad cert is, I just don't know what I can do to get around it. It's been happening for at least a few weeks. I figured maybe it would be resolved at some point. Is there another mirror I can use instead of this one with the bad cert?

My Pi-hole is working, but it would be nice to be able to update it.

Debug Token:

https://tricorder.pi-hole.net

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.