all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* elpa & proxy authentication
@ 2013-05-30 16:14 Luca Ferrari
  2013-05-30 16:47 ` Tim Visher
  0 siblings, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2013-05-30 16:14 UTC (permalink / raw
  To: help-gnu-emacs

Hi,
I believe this is trivial but I cannot find a solution: I'm behind an
http proxy that requires authentication, and I cannot install packages
using elpa.
I've placed in my .emacs file something like:

(setq url-proxy-services '(("no_proxy" . "work\\\\.com")
			   ("http" . "<user>:<password>@<proxy>:<port>")))

and the first time I try to refresh the package list I got prompted
for the username, that is the same I specified, and for the password,
and then a generic error "unable to download package gnu" appears.
Then I try to download and install a package, I'm prompted again for
username and password for the proxy (and this time the username is the
one I'm running emacs within, not the one specified in the
configuration file) and Emacs still gives me an error that cannot
download: "Error during download request: proxy authentication
required".

Any idea?
Thanks,
Luca



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: elpa & proxy authentication
  2013-05-30 16:14 elpa & proxy authentication Luca Ferrari
@ 2013-05-30 16:47 ` Tim Visher
  2013-05-31  6:42   ` Luca Ferrari
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Visher @ 2013-05-30 16:47 UTC (permalink / raw
  To: Luca Ferrari; +Cc: help-gnu-emacs

Hi Luca,

You need to provide more info about your environment.

I know when I needed to do this the only solution I was able to come
up with was to use the http_proxy environment variable. Not sure why
what you did wouldn't work but all of the various tools I use,
including emacs, seem to honor the environment variable.i

On Thu, May 30, 2013 at 12:14 PM, Luca Ferrari <fluca1978@infinito.it> wrote:
> Hi,
> I believe this is trivial but I cannot find a solution: I'm behind an
> http proxy that requires authentication, and I cannot install packages
> using elpa.
> I've placed in my .emacs file something like:
>
> (setq url-proxy-services '(("no_proxy" . "work\\\\.com")
>                            ("http" . "<user>:<password>@<proxy>:<port>")))
>
> and the first time I try to refresh the package list I got prompted
> for the username, that is the same I specified, and for the password,
> and then a generic error "unable to download package gnu" appears.
> Then I try to download and install a package, I'm prompted again for
> username and password for the proxy (and this time the username is the
> one I'm running emacs within, not the one specified in the
> configuration file) and Emacs still gives me an error that cannot
> download: "Error during download request: proxy authentication
> required".
>
> Any idea?
> Thanks,
> Luca
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: elpa & proxy authentication
  2013-05-30 16:47 ` Tim Visher
@ 2013-05-31  6:42   ` Luca Ferrari
  2013-05-31  7:20     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2013-05-31  6:42 UTC (permalink / raw
  To: Tim Visher; +Cc: help-gnu-emacs

On Thu, May 30, 2013 at 6:47 PM, Tim Visher <tim.visher@gmail.com> wrote:
> Hi Luca,
>
> You need to provide more info about your environment.
>

I'm running emacs 24.2 on Kubuntu 12.10 64 bit.


> I know when I needed to do this the only solution I was able to come
> up with was to use the http_proxy environment variable. Not sure why
> what you did wouldn't work but all of the various tools I use,
> including emacs, seem to honor the environment variable.i
>

I've tried it, but again the editor asks me for usernam/password each
time I try to do a net-related operation and then refuses to download
packages with the same error (Proxy authentication required).
Of course, I've tried using http_proxy variable and, at the same time,
I removed the .emacs configuration. Please note that the same
http_proxy variable value works from the command line (e.g., wget
something works).

Any idea?

Luca



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: elpa & proxy authentication
  2013-05-31  6:42   ` Luca Ferrari
@ 2013-05-31  7:20     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2013-05-31  7:20 UTC (permalink / raw
  To: Luca Ferrari; +Cc: help-gnu-emacs

Luca Ferrari <fluca1978@infinito.it> writes:

> I've tried it, but again the editor asks me for usernam/password each
> time I try to do a net-related operation and then refuses to download
> packages with the same error (Proxy authentication required).
> Of course, I've tried using http_proxy variable and, at the same time,
> I removed the .emacs configuration. Please note that the same
> http_proxy variable value works from the command line (e.g., wget
> something works).
>
> Any idea?

url-auth.el uses auth-sources.el. So you could try to configure your
proxy server credentials this way. See

  (info "(auth)Help for users")

for an example how to specify passwords for http.

> Luca

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-31  7:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 16:14 elpa & proxy authentication Luca Ferrari
2013-05-30 16:47 ` Tim Visher
2013-05-31  6:42   ` Luca Ferrari
2013-05-31  7:20     ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.