`Git error` on Ubuntu

I have a new machine with ubuntu 18.04. I`ve installed julia 1.0 via Ubuntu software, and when I try to add any package I get the message

ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:Net, curl error: Could not resolve host: github.com)

I`ve downloaded julia files from the official page, and everything is working properly.

Does anyone has an idea of what`s going on ?

Thank you

Firewall? Proxy settings?

2 Likes

Could not resolve host: github.com

Just to rule stuff out - DNS or a hosts file?

EDIT: Might also be a VPN problem, I’ve seen DNS resolution gone wrong when using a VPN. Albeit not with Ubuntu.

Looks like this issue is solved installing in dev-mode

sudo snap install julia-stable --devmode

However, the snap enviroment does not allow me acess wget or curl, and I dont want to configure/hack my system. Im going to use the files from Julia Downloads and it is enough for me.

Are you talking about this? Just FYI, as far as I know, Julia is only officially distributed through the website - installations through various package managers are not supported (see “Distribution-Specific Packages”).

1 Like

Yes, it is this link.