# Pkg.update() fails

**URL:** <https://discourse.julialang.org/t/pkg-update-fails/2056>\
**Category:** General Usage\
**Tags:** package\
**Created:** [February 12, 2017, 11:05am UTC](https://discourse.julialang.org/t/pkg-update-fails/2056 "2017-02-12T11:05:56Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [February 12, 2017, 11:05am UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/1 "2017-02-12T11:05:56Z")

</div>

Hello,  
since a few days Pkg.update() fails on one of my machines:

```julia
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating GR master...
INFO: Updating QML master...
INFO: Updating RadauBVP master...
INFO: Updating Plots master...
INFO: Updating CxxWrap master...
INFO: Updating GLWindow master...
INFO: Computing changes...
ERROR: unsatisfiable package requirements detected: no feasible version could be found for package: FileIO
  (you may try increasing the value of the
   JULIA_PKGRESOLVE_ACCURACY environment variable)
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}) at ./pkg/resolve.jl:37
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::Dict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String}) at ./pkg/entry.jl:495
 in update(::String, ::Set{String}) at ./pkg/entry.jl:458
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}}, ::String) at ./file.jl:59
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at ./pkg/dir.jl:31
 in update() at ./pkg/pkg.jl:210

```

Any idea how to fix this problem?

Uwe

---

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [February 12, 2017, 11:52am UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/2 "2017-02-12T11:52:13Z")

</div>

I think this is because different packages want conflicting versions of FileIO. You can try

```julia
Pkg.dependents("FileIO")

```

and then check which version each requires.

---

<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:** [February 12, 2017, 12:10pm UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/3 "2017-02-12T12:10:34Z")

</div>

Here my output:

```julia
julia> Pkg.dependents("FileIO")
36-element Array{AbstractString,1}:
 "Luxor"        
 "Images"       
 "ELF"          
 "MFCC"         
 "GLAbstraction"
 "NRRD"         
 "LibSndFile"   
 "RData"        
 "AndorSIF"     
 "JLD"          
 ⋮              
 "QuartzImageIO"
 "FLAC"         
 "ImageView"    
 "ImageMagick"  
 "ImagineFormat"
 "Netpbm"       
 "Caesar"       
 "GslibIO"      
 "RDatasets"    

julia> 

How can I display the complete list?

```

---

<div class="post-metadata">

**Author:** ![Simon\_Bolland](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simon_bolland/32/8920_2.png) [@Simon\_Bolland](https://discourse.julialang.org/u/Simon_Bolland)\
**Post date:** [February 12, 2017, 1:48pm UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/4 "2017-02-12T13:48:17Z")

</div>

It’s not the prettiest output in the world, but gives the information required.

> julia\> showall(Pkg.dependents(“FileIO”))  
> AbstractString[“Luxor”,“Images”,“ELF”,“MFCC”,“GLAbstraction”,“NRRD”,“LibSndFile”,“RData”,“AndorSIF”,“JLD”,“GLBooks”,“PkgBenchmark”,“Weber”,“Meshes”,“WAV”,“DataFrames”,“GLVisualize”,“GLWindow”,“RigidBodyTreeInspector”,“TestImages”,“MeshIO”,“Ogg”,“TensorFlow”,“ProfileView”,“MP3”,“ColorSchemes”,“Opus”,“QuartzImageIO”,“FLAC”,“ImageView”,“ImageMagick”,“ImagineFormat”,“Netpbm”,“Caesar”,“GslibIO”,“RDatasets”]

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [February 12, 2017, 2:36pm UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/5 "2017-02-12T14:36:06Z")

</div>

What does Pkg.status() say?

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [February 12, 2017, 2:37pm UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/6 "2017-02-12T14:37:40Z")

</div>

The problem likely stems from using master of too many packages. Don’t do that unless you’re actively contributing changes to a package. Run Pkg.free to get back to tagged releases.

---

<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:** [February 12, 2017, 6:01pm UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/7 "2017-02-12T18:01:36Z")

</div>

Indeed, Pkg.free(“QML”) solved my problem. Thanks a lot!

Next question:  
I enjoy to test the newest versions of QML.jl, so why does using QML head causes a problem with FileIO?

Uwe

---

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [February 12, 2017, 7:29pm UTC](https://discourse.julialang.org/t/pkg-update-fails/2056/8 "2017-02-12T19:29:13Z")

</div>

> [@ufechner7](#):
>
> I enjoy to test the newest versions of QML.jl, so why does using QML head causes a problem with FileIO?

That’s a mystery to me, QML.jl doesn’t require FileIO. Note that at this time the only changes between the released QML.jl and master are changes in tests and examples, so you’re not missing much.
