# \`raco pkg install\` from behind proxy

**URL:** <https://racket.discourse.group/t/raco-pkg-install-from-behind-proxy/681>\
**Category:** General\
**Created:** [February 11, 2022, 4:05pm UTC](https://racket.discourse.group/t/raco-pkg-install-from-behind-proxy/681 "2022-02-11T16:05:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ogennadi](https://avatars.discourse-cdn.com/v4/letter/o/5f9b8f/32.png) [@ogennadi](https://racket.discourse.group/u/ogennadi)\
**Post date:** [February 11, 2022, 4:05pm UTC](https://racket.discourse.group/t/raco-pkg-install-from-behind-proxy/681/1 "2022-02-11T16:05:52Z")

</div>

Hi all, I installed Racket on my work machine. When I run `raco pkg install` I get the following error even though my HTTP\_PROXY and HTTPS\_PROXY env variables are set. How can I get around this?

```scheme
C:\Users\n945186>raco pkg install remote-shell
Resolving "remote-shell" via https://download.racket-lang.org/releases/8.3/catalog/
make-ports: HTTP CONNECT failed: HTTP/1.1 407 authenticationrequired
  context...:
   C:\Program Files\Racket\collects\racket\contract\private\arrow-val-first.rkt:555:3
   C:\Program Files\Racket\collects\net\url.rkt:167:0: make-ports
   C:\Program Files\Racket\collects\net\url.rkt:202:0: http://getpost-impure-port
   C:\Program Files\Racket\collects\net\url.rkt:305:0: get-pure-port/headers
   C:\Program Files\Racket\collects\racket\contract\private\arrow-val-first.rkt:555:3
   C:\Program Files\Racket\collects\pkg\private\network.rkt:59:3
   C:\Program Files\Racket\collects\pkg\private\catalog.rkt:218:0: read-from-server
   C:\Program Files\Racket\collects\pkg\private\catalog.rkt:135:2: lookup-normally
   C:\Program Files\Racket\collects\pkg\private\prefetch.rkt:129:4
   C:\Program Files\Racket\collects\pkg\private\prefetch.rkt:128:2
   C:\Program Files\Racket\collects\pkg\private\catalog.rkt:132:0: package-catalog-lookup
   C:\Program Files\Racket\collects\pkg\private\catalog.rkt:200:0: package-catalog-lookup-source
   C:\Program Files\Racket\collects\pkg\private\clone-path.rkt:371:0: desc->repo
   C:\Program Files\Racket\collects\pkg\private\clone-path.rkt:65:2: add-repo-desc
   C:\Program Files\Racket\collects\pkg\private\clone-path.rkt:46:0: adjust-to-normalize-repos
   C:\Program Files\Racket\collects\pkg\private\install.rkt:913:3
   ...

```

---

<div class="post-metadata">

**Author:** ![ogennadi](https://avatars.discourse-cdn.com/v4/letter/o/5f9b8f/32.png) [@ogennadi](https://racket.discourse.group/u/ogennadi)\
**Post date:** [February 14, 2022, 9:58pm UTC](https://racket.discourse.group/t/raco-pkg-install-from-behind-proxy/681/2 "2022-02-14T21:58:55Z")

</div>

FYI a similar question has been asked on the racket mailing list in 2014. Proxy support was not available then either

[https://www.mail-archive.com/racket-users@googlegroups.com/msg21910.html](https://www.mail-archive.com/racket-users@googlegroups.com/msg21910.html)

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [February 15, 2022, 8:27pm UTC](https://racket.discourse.group/t/raco-pkg-install-from-behind-proxy/681/3 "2022-02-15T20:27:19Z")

</div>

Nice, thanks for the pointer! Because I have limited faith in our mail archive, I'm going to paste the text of Jay's response back then:

```scheme
Jay McCarthy writes:

 > The package system currently doesn't use proxies at all. Howver, you
 > should be able to go to
 > 
 > https://github.com/jbclements/sxml/tarball/648a97f4881a8ea2f0959cf26e80bfdfec93d181
 > 
 > in a web browser and download the archive manually then install it
 > "raco pkg install -n sxml the-file.tgz"

Done. That's a good enough workaround for my immediate needs, thanks!

 > I'll work on implementing proxy support in the future.

Great. The manual technique certainly breaks down when packages
trigger the download of lots of dependencies. Proxy support
would be great. The only even better solution would be a magic
incantation that makes all Web proxies in the world disappear ;-)

Konrad

```

---

<div class="post-metadata">

**Author:** ![Lysias98](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/lysias98/32/1661_2.png) [@Lysias98](https://racket.discourse.group/u/Lysias98)\
**Post date:** [January 18, 2024, 12:35pm UTC](https://racket.discourse.group/t/raco-pkg-install-from-behind-proxy/681/4 "2024-01-18T12:35:59Z")

</div>

Succeed with [nekoray](https://github.com/MatsuriDayo/nekoray) in Tun mode 😀

Windows 11, racket 8.11, nekoray 3.26

 ![installing racket/graph](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/6/6f55cecacf553ff2fdadc23fa8fbb93ffa3800bc.png)
