# Unable to automatically install 'Expat'

**URL:** <https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591>\
**Category:** Tooling\
**Created:** [November 27, 2019, 4:58pm UTC](https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591 "2019-11-27T16:58:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamleshbhalui](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kamleshbhalui/32/11554_2.png) [@kamleshbhalui](https://discourse.julialang.org/u/kamleshbhalui)\
**Post date:** [November 27, 2019, 4:58pm UTC](https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591/1 "2019-11-27T16:58:15Z")

</div>

sir@sir-Inspiron-5558:~/works/julia/PackageCompiler.jl$ julia  
\_  
\_ \_ _(_)\_ | Documentation: [https://docs.julialang.org](https://docs.julialang.org)  
(_) | (_) (_) |  
\_ \_ | | \_\_ \_ | Type “?” for help, “]?” for Pkg help.  
| | | | | | |/ ` | |  
| | || | | | (_| | | Version 1.4.0-DEV.527 (2019-11-26)  
_/ |\ __‘_|_|_|\__ ’\_| | Commit 6d26f14ede (1 day old master)  
|\_\_/ |

julia\> import Pkg; Pkg.add(“PackageCompiler”)  
Updating registry at `~/.julia/registries/General`  
Updating git-repo `https://github.com/JuliaRegistries/General.git`  
Resolving package versions…  
Installed Expat\_jll ─ v2.2.7+0  
ERROR: Unable to automatically install ‘Expat’ from ‘/home/sir/.julia/packages/Expat\_jll/YXYuQ/Artifacts.toml’  
Stacktrace:  
[1] error(::String) at ./error.jl:33  
[2] ensure\_artifact\_installed(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Linux, verbose::Bool) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:810  
[3] ensure\_all\_artifacts\_installed(::String; platform::Pkg.BinaryPlatforms.Linux, pkg\_uuid::Nothing, include\_lazy::Bool, verbose::Bool) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:852  
[4] download\_artifacts(::Array{String,1}; platform::Pkg.BinaryPlatforms.Linux, verbose::Bool) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:571  
[5] download\_artifacts(::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.Linux, verbose::Bool) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:561  
[6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:1040  
[7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:133  
[8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:96  
[9] #add#21 at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:93 [inlined]  
[10] add at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:93 [inlined]  
[11] #add#18 at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:91 [inlined]  
[12] add at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:91 [inlined]  
[13] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:90  
[14] add(::String) at /home/sir/works/julia/julia/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:90  
[15] top-level scope at REPL[1]:1

julia\>

---

<div class="post-metadata">

**Author:** ![staticfloat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/staticfloat/32/34_2.png) [@staticfloat](https://discourse.julialang.org/u/staticfloat)\
**Post date:** [November 27, 2019, 8:06pm UTC](https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591/2 "2019-11-27T20:06:41Z")

</div>

Hello @kamleshbhalui, can you give me some more information about your system:

- The OS you’re running on
- The output of `import Pkg; Pkg.PlatformEngines.probe_platform_engines!(; verbose=true)`

---

<div class="post-metadata">

**Author:** ![kamleshbhalui](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kamleshbhalui/32/11554_2.png) [@kamleshbhalui](https://discourse.julialang.org/u/kamleshbhalui)\
**Post date:** [November 29, 2019, 1:10am UTC](https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591/3 "2019-11-29T01:10:42Z")

</div>

Thanks for reply.  
$uname -a  
Linux Inspiron-5558 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86\_64 x86\_64 x86\_64 GNU/Linux

julia\> import Pkg; Pkg.PlatformEngines.probe\_platform\_engines!(; verbose=true)  
[ Info: Probing for download engine…  
[ Info: Probing curl as a possibility…  
[ Info: Probe successful for curl  
[ Info: Found download engine curl  
[ Info: Probing for compression engine…  
[ Info: Probing tar as a possibility…  
[ Info: Probe successful for tar  
[ Info: Found compression engine tar  
true

---

<div class="post-metadata">

**Author:** ![staticfloat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/staticfloat/32/34_2.png) [@staticfloat](https://discourse.julialang.org/u/staticfloat)\
**Post date:** [November 30, 2019, 8:56pm UTC](https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591/4 "2019-11-30T20:56:10Z")

</div>

Do you have a restrictive `umask` set up? If so, can you try this again after setting your `umask` to `022`? If that works, then simply build Julia again after [this PR](https://github.com/JuliaLang/julia/pull/33985) is merged, which should fix the `umask` issue.
