# Error installing artifact dependency

**URL:** <https://discourse.julialang.org/t/error-installing-artifact-dependency/57961>\
**Category:** General Usage\
**Created:** [March 25, 2021, 6:26pm UTC](https://discourse.julialang.org/t/error-installing-artifact-dependency/57961 "2021-03-25T18:26:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bencherian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bencherian/32/18025_2.png) [@bencherian](https://discourse.julialang.org/u/bencherian)\
**Post date:** [March 25, 2021, 6:26pm UTC](https://discourse.julialang.org/t/error-installing-artifact-dependency/57961/1 "2021-03-25T18:26:26Z")

</div>

I just installed Julia 1.6.0 and was installing a basic set of packages when I got the error below when trying to install Plots.jl

```julia
(@v1.6) pkg> add Plots
   Resolving package versions...
  Downloaded artifact: XML2
  Downloaded artifact: XML2
ERROR: Unable to automatically install 'XML2' from 'C:\Users\<username_redacted>\.julia\packages\XML2_jll\Slt3Q\Artifacts.toml'

```

Some Googling led me to similar error messages in an issue and a suggestion to try manually determining the underlying error using DebugArtifacts.jl. This resulted in a more meaningful error message:

```julia
Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.

```

What is odd is that I do not get this error message in my Julia 1.5.2 installation. I am running this on a work laptop that uses a MITM SSL proxy so I’m guessing this has something to do with how local trusted root certificates are set up and new use of libcurl in Julia 1.6 for downloads. Does anyone know of a workaround for this issue? What’s rather odd is that this only happens for Artifact downloads…I would have thought this kind of certificate issue would have affected any HTTPS connection, but I am able to install “pure” Julia packages that don’t have any binary dependencies without any issues.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 26, 2021, 12:36am UTC](https://discourse.julialang.org/t/error-installing-artifact-dependency/57961/2 "2021-03-26T00:36:30Z")

</div>

@StefanKarpinski this is interesting: download used to work in Julia v1.5, but not v1.6. Any clue?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 27, 2021, 12:10am UTC](https://discourse.julialang.org/t/error-installing-artifact-dependency/57961/3 "2021-03-27T00:10:25Z")

</div>

@bencherian I believe you’re experiencing the same issue as [Julia 1.6 libcurl firewall download issue: Windows Schannel certificate revocation check failure](https://discourse.julialang.org/t/julia-1-6-new-package-manager-curl-firewall-problems/58021), try setting

```julia
ENV["JULIA_SSL_NO_VERIFY_HOSTS"] = "github.com"

```

or the other solutions suggested there

---

<div class="post-metadata">

**Author:** ![bencherian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bencherian/32/18025_2.png) [@bencherian](https://discourse.julialang.org/u/bencherian)\
**Post date:** [March 29, 2021, 9:52pm UTC](https://discourse.julialang.org/t/error-installing-artifact-dependency/57961/4 "2021-03-29T21:52:01Z")

</div>

Thanks @giordano. I was looking for the equivalent of `curl -k`. That fixed the artifact download issue. I don’t really see a good explanation for why this is needed for artifact downloads.

For future reference for others. I also have an similar issue relating to registry updates. In Julia 1.6, I also get the following error when trying to update the registry:

```julia
(@v1.6) pkg> registry up
    Updating registry at `C:\Users\<username_redacted>\.julia\registries\General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:976

```

The same command works fine in my Julia 1.5 installation. If I set the same environment variable for the registry server, it is able to update.

```julia
ENV["JULIA_SSL_NO_VERIFY_HOSTS"] = "pkg.julialang.org"

```
