Pkg error: identity of could not be verified

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

(@v1.7) pkg> update
    Updating registry at `~/.julia/registries/General`
    Updating git-repo ``
TLS host verification: the identity of the server `` 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?

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



] up

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