Unable to install Pluto due to MbedTLS error

Hi, I just started a new course in which I need to use Julia and Pluto. I’ve successfully installed Julia v1.5.3, however, installing Pluto gives an MbedTLS error. I’m not the most tech-savvy person, so I might use incorrect terms/not provide enough information; let me know if something is unclear. The error I get when adding MbedTLS is:

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.3 (2020-11-09)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.5) pkg> add MbedTLS
   Updating registry at `C:\Users\Allison\.julia\registries\General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
ERROR: Unable to automatically install 'MbedTLS' from 'C:\Users\Allison\.julia\p
ackages\MbedTLS_jll\qMb7d\Artifacts.toml'
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] ensure_artifact_installed(::String, ::Dict{String,Any}, ::String; platform:
:Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool) at C:\buildb
ot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Artifacts.jl:8
99
 [3] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Plat
form, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool
) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\
Artifacts.jl:963
 [4] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.Bi
naryPlatforms.Windows, verbose::Bool) at C:\buildbot\worker\package_win64\build\
usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:663
 [5] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; p
latform::Pkg.BinaryPlatforms.Windows, verbose::Bool) at C:\buildbot\worker\packa
ge_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:642
 [6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUI
D,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows)
at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Op
erations.jl:1141
 [7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Ty
pes.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows, kwargs::Base.Iterators
.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\buildbot\worker\pa
ckage_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:188
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\buildbot\w
orker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:139
 [9] #add#21 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1
.5\Pkg\src\API.jl:67 [inlined]
 [10] add(::Array{Pkg.Types.PackageSpec,1}) at C:\buildbot\worker\package_win64\
build\usr\share\julia\stdlib\v1.5\Pkg\src\API.jl:67
 [11] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at C:\buildbot\worker
\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\REPLMode\REPLMode.jl:40
4
 [12] do_cmd(::REPL.LineEditREPL, ::String; do_rethrow::Bool) at C:\buildbot\wor
ker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\REPLMode\REPLMode.jl
:382
 [13] do_cmd at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1
.5\Pkg\src\REPLMode\REPLMode.jl:377 [inlined]
 [14] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REP
L.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at C:\buildb
ot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\REPLMode\REPLM
ode.jl:546
 [15] #invokelatest#1 at .\essentials.jl:710 [inlined]
 [16] invokelatest at .\essentials.jl:709 [inlined]
 [17] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterfac
e, ::REPL.LineEdit.MIState) at C:\buildbot\worker\package_win64\build\usr\share\
julia\stdlib\v1.5\REPL\src\LineEdit.jl:2355
 [18] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at C:\buildbot\wo
rker\package_win64\build\usr\share\julia\stdlib\v1.5\REPL\src\REPL.jl:1144
 [19] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at .\task.jl
:356

I tried setting the environment variable, as suggested here: IJulia install stops for MbedTLS error - #11 by giordano, but unfortunately that didn’t work.

Another post I saw suggested trying to open https://raw.githubusercontent.com/JuliaBinaryWrappers/MbedTLS_jll.jl/master/Artifacts.toml in my browser, to see if that caused issues, but I was able to (successfully) open the link.

Do you have any solutions/suggestions? I’m working on windows 8.1.

Thanks!

1 Like

Hi, welcome! Are you behind a firewall or a proxy, by any chance?

Thanks! I turned off my web protection, but this didn’t work at first. Then I turned it off again, reset my laptop and installed Pluto again, which did seem to work!

However, I now get the following error:

failed process: Process(`'C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe' -Version 3 -NoProfile -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (New-Object System.Net.Webclient).DownloadFile('https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe', 'C:\Users\Allison\.julia\conda\3\installer.exe')"`, ProcessExited(3627914474)) [3627914474]

1. **pipeline_error** @ *process.jl:525* [inlined]
2. **download_powershell** (::String, ::String)@ *download.jl:20*
3. **download** @ *download.jl:64* [inlined]
4. **_install_conda** (::String, ::Bool)@ *Conda.jl:166*
5. **_install_conda** (::String)@ *Conda.jl:157*
6. **runconda** (::Cmd, ::String)@ *Conda.jl:114*
7. **pip_interop** (::Bool, ::String)@ *Conda.jl:381*
8. **top-level scope** @ *[Local: 10](http://localhost:1234/edit?id=b393e150-67a5-11eb-21c2-7ffcdac5336b#)*

I’m not sure if this is related, though.