# Error: failed to clone ...

**URL:** <https://discourse.julialang.org/t/error-failed-to-clone/15023>\
**Category:** New to Julia\
**Created:** [September 16, 2018, 4:51pm UTC](https://discourse.julialang.org/t/error-failed-to-clone/15023 "2018-09-16T16:51:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Hultberg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim_hultberg/32/210994_2.png) [@Tim\_Hultberg](https://discourse.julialang.org/u/Tim_Hultberg)\
**Post date:** [September 16, 2018, 4:51pm UTC](https://discourse.julialang.org/t/error-failed-to-clone/15023/1 "2018-09-16T16:51:18Z")

</div>

I discovered Julia very recently and am very excited about what I have seen in some youtube presentations. I want to start using Julia instead of C++ and python. However my first experience (on xubuntu) is very discouraging - see below. Any help to get me past this issue is highly appreciated.

thh@thh-Aspire-XC600:~$ julia-stable  
\_  
\_ \_ _(_)\_ | Documentation: [https://docs.julialang.org](https://docs.julialang.org)  
(_) | (_) (_) |  
\_ \_ | | \_\_ \_ | Type “?” for help, “]?” for Pkg help.  
| | | | | | |/ ` | |  
| | || | | | (_| | | Version 1.0.0 (2018-08-08)  
_/ |\ __‘_|_|_|\__ ’\_| | Official [https://julialang.org/](https://julialang.org/) release  
|\_\_/ |

julia\> using Pkg

julia\> Pkg.add(“Plots”)  
Cloning default registries into /home/thh/snap/julia-stable/1/.julia/registries  
Cloning registry General from “[GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git)”  
ERROR: failed to clone from [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git), error: GitError(Code:ERROR, Class:Net, curl error: Could not resolve host: [github.com](http://github.com)  
)  
Stacktrace:  
[1] pkgerror(::String) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120  
[2] #clone#2(::String, ::Base.Iterators.Pairs{Symbol,LibGit2.CachedCredentials,Tuple{Symbol},NamedTuple{(:credentials,),Tuple{LibGit2.CachedCredentials}}}, ::Function, ::String, ::String) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GitTools.jl:102  
[3] #clone at ./none:0 [inlined]  
[4] (::getfield(Pkg.Types, Symbol(“##50#54”)))(::LibGit2.CachedCredentials) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:927  
[5] shred!(::getfield(Pkg.Types, Symbol(“##50#54”)), ::LibGit2.CachedCredentials) at ./secretbuffer.jl:184  
[6] #registries#49(::Bool, ::Function) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:923  
[7] registries at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:907 [inlined]  
[8] macro expansion at ./logging.jl:307 [inlined]  
[9] update\_registry(::Pkg.Types.Context) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:96  
[10] #handle\_repos\_add!#31(::Bool, ::Nothing, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:593  
[11] #handle\_repos\_add! at ./none:0 [inlined]  
[12] #add\_or\_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:54  
[13] #add\_or\_develop at ./none:0 [inlined]  
[14] #add\_or\_develop#12 at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:29 [inlined]  
[15] #add\_or\_develop at ./none:0 [inlined]  
[16] #add\_or\_develop#11(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::Array{String,1}) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:28  
[17] #add\_or\_develop at ./none:0 [inlined]  
[18] #add\_or\_develop#10 at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:27 [inlined]  
[19] #add\_or\_develop at ./none:0 [inlined]  
[20] #add#18 at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69 [inlined]  
[21] add(::String) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69  
[22] top-level scope at none:0

---

<div class="post-metadata">

**Author:** ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)\
**Post date:** [September 16, 2018, 9:18pm UTC](https://discourse.julialang.org/t/error-failed-to-clone/15023/2 "2018-09-16T21:18:39Z")

</div>

How did you install Julia? Will running the git clone directly (e.g. `$ git clone https://github.com/JuliaRegistries/General.git`) succeed?

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [September 16, 2018, 10:39pm UTC](https://discourse.julialang.org/t/error-failed-to-clone/15023/3 "2018-09-16T22:39:51Z")

</div>

This seems to be an error with your network, rather than with Julia per se (but I may be wrong). Are you behind a proxy or firewall?

---

<div class="post-metadata">

**Author:** ![Tim\_Hultberg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim_hultberg/32/210994_2.png) [@Tim\_Hultberg](https://discourse.julialang.org/u/Tim_Hultberg)\
**Post date:** [September 17, 2018, 3:52pm UTC](https://discourse.julialang.org/t/error-failed-to-clone/15023/4 "2018-09-17T15:52:25Z")

</div>

Thanks for fast replies. (I am not behind a proxy or firewall)

I installed Julia with the software manager of (x)ubuntu - apparently this was the problem. In the meanwhile I removed it and compiled it from the sources instead and now it works 🙂

Tim

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [September 17, 2018, 4:19pm UTC](https://discourse.julialang.org/t/error-failed-to-clone/15023/5 "2018-09-17T16:19:30Z")

</div>

You can also just download the generic Linux binary, rather than compiling it yourself.

---

<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:** [September 17, 2018, 4:58pm UTC](https://discourse.julialang.org/t/error-failed-to-clone/15023/6 "2018-09-17T16:58:52Z")

</div>

> [@Tim\_Hultberg](#):
>
> I installed Julia with the software manager of (x)ubuntu -

I just want to point out that the julia installations provided by various platform specific package managers are not generally officially supported - they are community contributed and may differ from the official version from [Download Julia](http://julialang.org/downloads). See [here](https://julialang.org/downloads/platform.html), section `Distribution-Specific Packages`.
