# \`Git error\` on Ubuntu

**URL:** <https://discourse.julialang.org/t/git-error-on-ubuntu/14049>\
**Category:** General Usage\
**Created:** [August 25, 2018, 5:08pm UTC](https://discourse.julialang.org/t/git-error-on-ubuntu/14049 "2018-08-25T17:08:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noel\_Araujo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/noel_araujo/32/4862_2.png) [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Post date:** [August 25, 2018, 5:08pm UTC](https://discourse.julialang.org/t/git-error-on-ubuntu/14049/1 "2018-08-25T17:08:47Z")

</div>

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

```julia
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

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [August 25, 2018, 5:19pm UTC](https://discourse.julialang.org/t/git-error-on-ubuntu/14049/2 "2018-08-25T17:19:14Z")

</div>

Firewall? Proxy settings?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 25, 2018, 6:55pm UTC](https://discourse.julialang.org/t/git-error-on-ubuntu/14049/3 "2018-08-25T18:55:25Z")

</div>

> Could not resolve host: [github.com](http://github.com)

Just to rule stuff out - [DNS](https://imgur.com/YKvOiA4) 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.

---

<div class="post-metadata">

**Author:** ![Noel\_Araujo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/noel_araujo/32/4862_2.png) [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Post date:** [August 25, 2018, 6:57pm UTC](https://discourse.julialang.org/t/git-error-on-ubuntu/14049/4 "2018-08-25T18:57:40Z")

</div>

Looks like this issue is solved installing in dev-mode

```julia
sudo snap install julia-stable --devmode

```

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

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 25, 2018, 7:01pm UTC](https://discourse.julialang.org/t/git-error-on-ubuntu/14049/5 "2018-08-25T19:01:55Z")

</div>

Are you talking about [this](https://snapcraft.io/julia-stable)? Just FYI, as far as I know, Julia is only officially distributed through the website - installations through various package managers are [not supported](https://julialang.org/downloads/platform.html) (see “Distribution-Specific Packages”).

---

<div class="post-metadata">

**Author:** ![Noel\_Araujo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/noel_araujo/32/4862_2.png) [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Post date:** [August 25, 2018, 7:05pm UTC](https://discourse.julialang.org/t/git-error-on-ubuntu/14049/6 "2018-08-25T19:05:32Z")

</div>

Yes, it is this link.
