# Pkg.update() fails 

**URL:** <https://discourse.julialang.org/t/pkg-update-fails/12116>\
**Category:** General Usage\
**Created:** [July 3, 2018, 2:12am UTC](https://discourse.julialang.org/t/pkg-update-fails/12116 "2018-07-03T02:12:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phillip\_Gurman](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@Phillip\_Gurman](https://discourse.julialang.org/u/Phillip_Gurman)\
**Post date:** [July 3, 2018, 2:12am UTC](https://discourse.julialang.org/t/pkg-update-fails/12116/1 "2018-07-03T02:12:13Z")

</div>

I am having trouble getting julia to update on Ubuntu 18.04 running in WSL on Windows 10 version 1709. Pkg.update() takes a few minutes to return the following error. Any ideas would be greatly appreciated.

> \_ \_ _(_)\_ | A fresh approach to technical computing  
> (_) | (_) (_) | Documentation: [https://docs.julialang.org](https://docs.julialang.org)  
> \_ \_ | | \_\_ \_ | Type “?help” for help.  
> | | | | | | |/ ` | |  
> | | || | | | (_| | | Version 0.6.3 (2018-05-28 20:20 UTC)  
> _/ |\ __‘_|_|_|\__ ’\_| | Official [http://julialang.org/](http://julialang.org/) release  
> |\_\_/ | x86\_64-pc-linux-gnu
> 
> julia\> Pkg.update()  
> INFO: Initializing package repository /home/pgurman/.julia/v0.6  
> INFO: Cloning METADATA from [GitHub - JuliaLang/METADATA.jl: Metadata for registered Julia packages up to Julia v0.6. No longer maintained. Please see https://github.com/JuliaRegistries/General instead.](https://github.com/JuliaLang/METADATA.jl)  
> ERROR: GitError(Code:ERROR, Class:SSL, SSL error: ffffffff - UNKNOWN ERROR CODE (0001))  
> Stacktrace:  
> [1] macro expansion at ./libgit2/error.jl:99 [inlined]  
> [2] clone(::String, ::String, ::Base.LibGit2.CloneOptions) at ./libgit2/reposit ory.jl:276  
> [3] #clone#100(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractC redentials}, ::Function, ::String, ::String) at ./libgit2/libgit2.jl:562  
> [4] (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String , ::String) at ./:0  
> [5] (::Base.Pkg.Dir.##8#10{String,String})() at ./pkg/dir.jl:55  
> [6] cd(::Base.Pkg.Dir.##8#10{String,String}, ::String) at ./file.jl:70  
> [7] init(::String, ::String) at ./pkg/dir.jl:53  
> [8] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N} whe re N) at ./pkg/dir.jl:28  
> [9] update() at ./pkg/pkg.jl:228

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [July 3, 2018, 9:56am UTC](https://discourse.julialang.org/t/pkg-update-fails/12116/2 "2018-07-03T09:56:17Z")

</div>

Maybe it is related to this problem (with solution):

> [@Errors for Git / Pkg](https://discourse.julialang.org/t/errors-for-git-pkg/9351):
>
> There have been various reports of issues running package operations recently. They manifest as one of the following messages on running any package operations, such as Pkg.init or Pkg.add: ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:1407742E:SSL routines:SSL23\_GET\_SERVER\_HELLO:tlsv1 alert protocol version) or ERROR: GitError(Code:ECERTIFICATE, Class:OS, user cancelled certificate check: ) This is happening because GitHub stopped supporting TLS 1.0 in February: The error occu…

Error message is not quite the same but maybe it is because of the WSL environment that it shows only UNKNOWN ERROR.

---

<div class="post-metadata">

**Author:** ![Phillip\_Gurman](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@Phillip\_Gurman](https://discourse.julialang.org/u/Phillip_Gurman)\
**Post date:** [July 5, 2018, 12:29am UTC](https://discourse.julialang.org/t/pkg-update-fails/12116/3 "2018-07-05T00:29:34Z")

</div>

Perhaps, but if that was true, i would expect the Julia install i have on Windows 10 using Windows binaries to also be having update troubles. Its only a problem on WSL, It must be a WSL problem, but i don’t know what the question to ask of the WSL people.
