<p dir="auto">Hello julia community!</p>
<p dir="auto">I am facing big problems with Julia packages: Pkg.init() and Pkg.update() are not working. I have scanned the internet regarding the message, but nothing seems to be the right solution. I have already had a long odyssey ...<br>
This seems to be an frequent trap. So it might be advantageous to be more clear in the installation chapter of julia.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Pkg.init()     "><pre class="notranslate"><code class="notranslate">Pkg.init()     
</code></pre></div>
<p dir="auto">displays the following :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: Initializing package repository /home/user/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized)
 [inlined code] from libgit2/error.jl:98
 in clone at libgit2/repository.jl:189
 in __clone#364__ at libgit2.jl:310
 in anonymous at pkg/dir.jl:49
 in cd at file.jl:47
 in init at pkg/dir.jl:47
 in init at pkg.jl:22
 in eval at ./boot.jl:264"><pre class="notranslate"><code class="notranslate">INFO: Initializing package repository /home/user/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized)
 [inlined code] from libgit2/error.jl:98
 in clone at libgit2/repository.jl:189
 in __clone#364__ at libgit2.jl:310
 in anonymous at pkg/dir.jl:49
 in cd at file.jl:47
 in init at pkg/dir.jl:47
 in init at pkg.jl:22
 in eval at ./boot.jl:264
</code></pre></div>
<p dir="auto">by the way:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sudo git pull
sudo make"><pre class="notranslate"><code class="notranslate">sudo git pull
sudo make
</code></pre></div>
<p dir="auto">works fine! The only thing is, that I cannot install packages in Julia. My computer is behind the proxy. The proxy settings for git seems to be correct</p>
<p dir="auto">System environment<br>
Linux Mint 17.02  (based on Ubuntu 14.04)</p>
<p dir="auto">newest julia from github<br>
~/julia $ sudo ./julia<br>
_<br>
_       _ <em>(</em>)_     |  A fresh approach to technical computing<br>
(<em>)     | (</em>) (<em>)    |  Documentation: <a href="http://docs.julialang.org" rel="nofollow">http://docs.julialang.org</a><br>
_ _   <em>| |</em>  __ _   |  Type "?help" for help.<br>
| | | | | | |/ <em>` |  |<br>
| | |</em>| | | | (</em>| |  |  Version 0.5.0-dev+1265 (2015-11-13 08:40 UTC)<br>
<em>/ |_</em>'<em>|</em>|<em>|__'</em>|  |  Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/f04583146e1176d72bfd9ba53fda9e764ea115e1/hovercard" href="https://github.com/JuliaLang/julia/commit/f04583146e1176d72bfd9ba53fda9e764ea115e1"><tt>f045831</tt></a> (0 days old master)<br>
|__/                   |  x86_64-linux-gnu</p>
<p dir="auto">I'm seeing the following issue when trying to use <code class="notranslate">Pkg.init()</code> on a fresh build of master:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./julia 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type &quot;?help&quot; for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+640 (2015-10-06 18:24 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 128f8c6 (0 days old master)
|__/                   |  x86_64-linux-gnu

julia&gt; Pkg.init()
INFO: Initializing package repository /home/lkuper/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized)
 [inlined code] from libgit2/error.jl:96
 in clone at libgit2/repository.jl:185
 in clone at libgit2.jl:303
 in anonymous at pkg/dir.jl:49
 in cd at file.jl:22
 in init at pkg/dir.jl:47
 in init at pkg.jl:23"><pre class="notranslate"><code class="notranslate">$ ./julia 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+640 (2015-10-06 18:24 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 128f8c6 (0 days old master)
|__/                   |  x86_64-linux-gnu

julia&gt; Pkg.init()
INFO: Initializing package repository /home/lkuper/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized)
 [inlined code] from libgit2/error.jl:96
 in clone at libgit2/repository.jl:185
 in clone at libgit2.jl:303
 in anonymous at pkg/dir.jl:49
 in cd at file.jl:22
 in init at pkg/dir.jl:47
 in init at pkg.jl:23
</code></pre></div>
<p dir="auto">I started seeing this after pulling and rebuilding to fix the libgit2 SSL certificate issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109228540" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/13399" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/13399/hovercard" href="https://github.com/JuliaLang/julia/issues/13399">#13399</a>.  I'm now seeing this error instead of the certificate error.  There's more discussion on that bug.</p>
<p dir="auto">This is on Ubuntu 14.04, and I have <code class="notranslate">libssl-dev</code> installed.  I've already tried <code class="notranslate">make -C deps distclean-libgit2</code>.  I even did a <code class="notranslate">make distcleanall</code> to make extra sure.</p>
<p dir="auto">Before I deleted my <code class="notranslate">~/.julia/v0.5</code> directory (because I hoped that doing that and running <code class="notranslate">Pkg.init()</code> might solve the problem), I was seeing a similar error message from <code class="notranslate">Pkg.update()</code>.</p>
<p dir="auto">I'm also having the same problem on CentOS with <code class="notranslate">openssl-devel</code> installed.</p>