# Any attempt to use Pkg turns into failure

**URL:** <https://discourse.julialang.org/t/any-attempt-to-use-pkg-turns-into-failure/43222>\
**Category:** General Usage\
**Tags:** package\
**Created:** [July 17, 2020, 9:08am UTC](https://discourse.julialang.org/t/any-attempt-to-use-pkg-turns-into-failure/43222 "2020-07-17T09:08:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berz\_Qwer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/berz_qwer/32/10467_2.png) [@Berz\_Qwer](https://discourse.julialang.org/u/Berz_Qwer)\
**Post date:** [July 17, 2020, 9:08am UTC](https://discourse.julialang.org/t/any-attempt-to-use-pkg-turns-into-failure/43222/1 "2020-07-17T09:08:17Z")

</div>

ERROR: `Plots=91a5bcdd-55d7-5caf-9e0b-520d859cae80` depends on `Pkg=44cfe95a-1eb2-52ea-b672-e2afdf69b78f`, but entry with UUID `44cfe95a-1eb2-52ea-b672-e2afdf69b78f` has name `Pkg-93b6d6de857dc88e665d2c64397852ab9701ba24`.  
Stacktrace:  
[1] pkgerror(::String, ::Vararg{String,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:53  
[2] validate\_manifest(::Dict{String,Array{Pkg.Types.Stage1,1}}) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:120  
[3] Dict{Base.UUID,Pkg.Types.PackageEntry}(::Dict{String,Any}) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:154  
[4] read\_manifest(::String) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:177  
[5] Pkg.Types.EnvCache(::Nothing) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:302  
[6] EnvCache at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:281 [inlined]  
[7] Pkg.Types.Context() at ./util.jl:742  
[8] activate(::String; shared::Bool) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:907  
[9] activate(::String) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:873  
[10] top-level scope at REPL[8]:1

I am a newbie with python/scala/haskell background. the traceback is hardly interpretable. Attempts to remove Plots also raises this issue. Any idea?

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [July 17, 2020, 9:17am UTC](https://discourse.julialang.org/t/any-attempt-to-use-pkg-turns-into-failure/43222/2 "2020-07-17T09:17:36Z")

</div>

Could you give us some more information please?  
This looks like you are building on a worker node in some CI pipeline? Are you building a container?

Do you know how Julia 1.4 is installed?  
I maybe will guess - this is Ububtu OS And you are installing Julia via apt-get?

Please send the output of  
using Pkg  
Pkg.status()

Sorry to ask all the questions. And people on here do agree about the stack traces!

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [July 17, 2020, 12:26pm UTC](https://discourse.julialang.org/t/any-attempt-to-use-pkg-turns-into-failure/43222/3 "2020-07-17T12:26:38Z")

</div>

It looks like you may have manually edited your manifest and put it into an inconsistent state.

---

<div class="post-metadata">

**Author:** ![Berz\_Qwer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/berz_qwer/32/10467_2.png) [@Berz\_Qwer](https://discourse.julialang.org/u/Berz_Qwer)\
**Post date:** [July 17, 2020, 3:00pm UTC](https://discourse.julialang.org/t/any-attempt-to-use-pkg-turns-into-failure/43222/4 "2020-07-17T15:00:23Z")

</div>

> [@johnh](#):
>
> Pkg.status()

Jupyter gives the following:

Status `~/.julia/environments/v1.4/Project.toml`  
[336ed68f] CSV v0.7.3  
[a93c6f00] DataFrames v0.21.4  
[587475ba] Flux v0.11.0  
[7073ff75] IJulia v1.21.2  
[1902f260] Knet v1.2.3  
[438e738f] PyCall v1.91.4  
[d330b81b] PyPlot v2.9.0  
[0aa819cd] SQLite v1.0.3  
[3646fa90] ScikitLearn v0.6.2

from REPL i get

Pkg.status()  
ERROR: `Plots=91a5bcdd-55d7-5caf-9e0b-520d859cae80` depends on `Pkg=44cfe95a-1eb2-52ea-b672-e2afdf69b78f`, but entry with UUID `44cfe95a-1eb2-52ea-b672-e2afdf69b78f` has name `Pkg-93b6d6de857dc88e665d2c64397852ab9701ba24`.  
Stacktrace:  
[1] pkgerror(::String, ::Vararg{String,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:53  
[2] validate\_manifest(::Dict{String,Array{Pkg.Types.Stage1,1}}) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:120  
[3] Dict{Base.UUID,Pkg.Types.PackageEntry}(::Dict{String,Any}) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:154  
[4] read\_manifest(::String) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:177  
[5] Pkg.Types.EnvCache(::Nothing) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:302  
[6] EnvCache at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:281 [inlined]  
[7] Pkg.Types.Context() at ./util.jl:742  
[8] #status#123 at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:832 [inlined]  
[9] status at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:832 [inlined]  
[10] #status#120 at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:828 [inlined]  
[11] status() at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:828  
[12] top-level scope at REPL[14]:1

Pkg.status() works only from JuPyTer. Yep, it is Ububnu. Nope, it was not installed through apt-get. I stuck to the recommendations.

As for editing the manifest, surely not. I am not so experienced with JL as to edit something manually
