Unable to automatically install 'Expat'

sir@sir-Inspiron-5558:~/works/julia/PackageCompiler.jl$ julia
_
_ _ ()_ | Documentation: 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>

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)
1 Like

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

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 is merged, which should fix the umask issue.