# Pkg.update() ERROR: stat: unknown error (UNKNOWN)

**URL:** <https://discourse.julialang.org/t/pkg-update-error-stat-unknown-error-unknown/7316>\
**Category:** General Usage\
**Created:** [November 26, 2017, 2:26am UTC](https://discourse.julialang.org/t/pkg-update-error-stat-unknown-error-unknown/7316 "2017-11-26T02:26:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstook](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstook/32/3731_2.png) [@cstook](https://discourse.julialang.org/u/cstook)\
**Post date:** [November 26, 2017, 2:26am UTC](https://discourse.julialang.org/t/pkg-update-error-stat-unknown-error-unknown/7316/1 "2017-11-26T02:26:25Z")

</div>

Pkg.update fails with the following error.

```julia
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: https://docs.julialang.org
   _ _ _| |_ __ _ | Type "?help" for help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.6.1 (2017-10-24 22:15 UTC)
 _/ |\ __'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32

julia> Pkg.update()
INFO: Updating METADATA...
ERROR: stat: unknown error (UNKNOWN)
Stacktrace:
 [1] stat(::String) at .\stat.jl:69
 [2] isdir at .\stat.jl:279 [inlined]
 [3] available(::Array{String,1}) at .\pkg\read.jl:19
 [4] update(::String, ::Set{String}) at .\pkg\entry.jl:383
 [5] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}})() at .\pkg\dir.jl:36
 [6] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}}, ::String) at .\file.jl:59
 [7] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N} where N) at .\pkg\dir.jl:36
 [8] update() at .\pkg\pkg.jl:228

julia> 

```

Any idea how to fix this?

---

<div class="post-metadata">

**Author:** ![cstook](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstook/32/3731_2.png) [@cstook](https://discourse.julialang.org/u/cstook)\
**Post date:** [November 27, 2017, 6:07am UTC](https://discourse.julialang.org/t/pkg-update-error-stat-unknown-error-unknown/7316/2 "2017-11-27T06:07:33Z")

</div>

I gave up, deleted my package directory and reinstalled everything. Pkg.update() works now.
