Certificate validation mirrors.switch.ca

What is the problem?

upgrade to python 3 fails

What did you already try to solve it?

checked internet connection

Have you tried running in safe mode?

yes

Did running in safe mode solve the problem?

no

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

yes ...

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

1.73,0.17
octoprint-systeminfo-20220219205350.zip (20.4 KB)

Updating package list...
Checking package list for python3-dev
Installing python3-dev...
E: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/d/dh-python/dh-python_3.20190308_all.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: Failed to fetch https://mirrors.switch.ca/raspbian/raspbian/pool/main/p/python3-defaults/libpython3-dev_3.7.3-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?
ERROR: failed to install python3-dev
Please try manually

I don't think https://mirrors.switch.ca is a repository that is there by default. Presumably you have changed this on your OctoPi image?

On a fresh OctoPi 0.18 /etc/apt/sources.list looks like this:

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

Double check what yours has.

Other mirrors are an option, and can be faster than the raspberrypi.org one for wherever you are located in the world. But I wouldn't change it to something that doesn't work...

According to https://www.raspbian.org/RaspbianMirrors it's a valid mirror, but it doesn't seem to be updated. A quick google pointed me to this; https://dev.to/ryderdamen/fixing-broken-mirrors-raspberry-pi-1een seems like it might be a common problem with that mirror, but that site has a fix.

Thanks GordonTGopher and Charlie_Powell that fixed it.

Added “http://muug.ca/mirror/raspian/raspian buster main contrib non-free rpi” to the top of the /etc/apt/sources.list file via “sudo nano /etc/apt/sources.list”

I did have “Cache entry deserialization failed, entry ignored” come up twice under “installing build dependencies” and twice under “Updating pip”

It otherwise appears to have completed the migration.
The main webpage comes up without error.

I guess I’ll have to print something later to be sure.

Thanks for your time and help.
Bobby

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