# Pkg.add hangs when installing packages

**URL:** <https://discourse.julialang.org/t/pkg-add-hangs-when-installing-packages/31821>\
**Category:** New to Julia\
**Created:** [December 3, 2019, 9:15pm UTC](https://discourse.julialang.org/t/pkg-add-hangs-when-installing-packages/31821 "2019-12-03T21:15:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonyang5](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jasonyang5/32/11678_2.png) [@jasonyang5](https://discourse.julialang.org/u/jasonyang5)\
**Post date:** [December 3, 2019, 9:15pm UTC](https://discourse.julialang.org/t/pkg-add-hangs-when-installing-packages/31821/1 "2019-12-03T21:15:24Z")

</div>

Pkg.add stays stuck at 99.9% for 20+ minutes at a time. I’ve tried installing the following packages:  
QuadGK  
LinearAlgebra (already natively installed, but still hangs)  
Optim

I’ve attempted other solutions like removing the registries\General folder, reinstalling, calling Pkg.registry.add(“General”), etc. and they haven’t worked so far.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [December 3, 2019, 11:59pm UTC](https://discourse.julialang.org/t/pkg-add-hangs-when-installing-packages/31821/2 "2019-12-03T23:59:09Z")

</div>

On which operating system?  
And did you check your internet connection?  
Sufficient disk space?

---

<div class="post-metadata">

**Author:** ![jasonyang5](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jasonyang5/32/11678_2.png) [@jasonyang5](https://discourse.julialang.org/u/jasonyang5)\
**Post date:** [December 4, 2019, 12:24am UTC](https://discourse.julialang.org/t/pkg-add-hangs-when-installing-packages/31821/3 "2019-12-04T00:24:03Z")

</div>

This is using Windows and the Ubuntu windows subsystem  
There is sufficient disk space and a working internet connection

Sorry for not having very much information, I’m not getting any specific errors- only hanging.  
When I cancel (ctrl + c) it usually takes a few minutes, and eventually only returns an interrupt error.
