# Initial "\] update" fails on Windows 10 Pro with Julia 1.1.1

**URL:** https://discourse.julialang.org/t/initial-update-fails-on-windows-10-pro-with-julia-1-1-1/24559
**Category:** New to Julia
**Created:** [May 24, 2019, 9:58am UTC](https://discourse.julialang.org/t/initial-update-fails-on-windows-10-pro-with-julia-1-1-1/24559 "2019-05-24T09:58:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)
#### Post date: [May 24, 2019, 9:58am UTC](https://discourse.julialang.org/t/initial-update-fails-on-windows-10-pro-with-julia-1-1-1/24559/1 "2019-05-24T09:58:29Z")

</div>

We just received a nice new Windows 10 Pro computer and my first step was to setup Julia 1.1.1. It installed without a problem but fails on the initial `] update`. It gives me the following error.

```julia
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to connect to github.com: )

```

Out institute has an automatic proxy. The same setup procedure works on other Windows 10 Pro computers on the same network. I’ve tried following [this post](https://discourse.julialang.org/t/install-packages-behind-the-proxy/23298/6) in case that might help.

What is wrong or how can I further diagnose the problem?

---

<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: [May 24, 2019, 12:05pm UTC](https://discourse.julialang.org/t/initial-update-fails-on-windows-10-pro-with-julia-1-1-1/24559/2 "2019-05-24T12:05:53Z")

</div>

I would install Git then open a Powershell.  
git clone [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git)

ie test from command line outside of Julia. I have Windows 10 Home on my laptop.

---

<div class="post-metadata">

### Author: ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)
#### Post date: [May 29, 2019, 11:48am UTC](https://discourse.julialang.org/t/initial-update-fails-on-windows-10-pro-with-julia-1-1-1/24559/3 "2019-05-29T11:48:14Z")

</div>

https doesn’t work but for some reason http _does_. This is only via the Windows command line.

```julia
git clone http://github.com/JuliaRegistries/General.git

```

It’s still not a good solution because I still have to be able to install the various packages and it must work for other uses on the same computer.

I tried setting it to default to http but that doesn’t seem to have taken either.

```julia
git config --global url."http://".insteadOf git://

```

If I get it to somehow work I’ll post the answer here.

**Update:** Now git:// works but Julia defaults to https://. 😒

---

<div class="post-metadata">

### Author: ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)
#### Post date: [June 3, 2019, 11:56am UTC](https://discourse.julialang.org/t/initial-update-fails-on-windows-10-pro-with-julia-1-1-1/24559/4 "2019-06-03T11:56:04Z")

</div>

johnh suggested a [workaround](https://discourse.julialang.org/t/how-to-change-julia-git-settings/24730/2) in an answer to another of my posts. It works in a `try` statement for my initial setup script.

```julia
using Pkg
try
	Pkg.update()
catch
	Pkg.setprotocol!("git")
	Pkg.update()
end

```

If I find an answer to the root problem I will still post it here.

Here is additional information for the computer in question.

```julia
Windows 10.0.17763
Julia Version 1.1.1
Commit 55e36cc308 (2019-05-16 04:10 UTC)
Platform Info:
	OS: Windows (x86_64-w64-mingw32)
	CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
	WORD_SIZE: 64
	LIBM: libopenlibm
	LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

```
