Pkg error: identity of github.com could not be verified

I am having an issue after installing julia 1.7.1 on Ubuntu using Jill.py that Pkg updates result in an error:

(@v1.7) pkg> update
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
TLS host verification: the identity of the server `github.com` could not be verified. Someone could be trying to man-in-the-middle your connection. It is also possible that the correct server is using an invalid certificate or that your system's certificate authority root store is misconfigured.
β”Œ Error: Some registries failed to update:
β”‚     β€” /home/daniel/.julia/registries/General β€” failed to fetch from repo
β”” @ Pkg.Registry /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:450

There don’t seem to be any open issues for this. Any ideas on whether I did something wrong and how to resolve it?
Thanks!

Perhaps your Ubuntu is very old?
Or you are using a Anti-Virus software which intercepts (man-in-the-middle) your encrypted connections?
Or you are behind a corporate proxy which does this?

1 Like

Thank you for the suggestions! It must be my schools firewall I guess. Ubuntu is current LTS and no antivirus that intercepts. I’ll talk to the network admins.

I found something new about his:

So you may try

ENV["JULIA_SSL_NO_VERIFY_HOSTS"] = "github.com"

before

] up
3 Likes

Thank you! The network suggestion has worked! :slight_smile: