all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: izzy.yichao.cai@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Ubuntu 16.04 server --- Contacting host: elpa.gnu.org:80 when package-refresh-contents
Date: Thu, 18 Jan 2018 18:28:29 -0800 (PST)	[thread overview]
Message-ID: <25bfc0c0-be6e-477b-abd1-f2d45bf43df2@googlegroups.com> (raw)
In-Reply-To: <mailman.7505.1516191159.27995.help-gnu-emacs@gnu.org>

to...@tuxteam.de於 2018年1月17日星期三 UTC+8下午8時12分42秒寫道:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, Jan 17, 2018 at 03:56:34AM -0800, izzy.yichao.cai@gmail.com wrote:
> > Hi folks,
> > 
> > I have tried to install elpy in emacs (24.5.1) on my server which is running Ubuntu 16.04.
> > 
> > When I run M-x package-refresh-contents, emacs successfully connected to stable.melpa.org:443. 
> > After that, it was hanged on "Contacting host: elpa.gnu.org:80". I am pretty sure that I am not behind proxy. 
> 
> I don't know about this...
> 
> > Then I tried to ping this host and this is what I got:
> > me@server:~$ ping elpa.gnu.org:80
> > ping: unknown host elpa.gnu.org:80
> 
> ...but this won't work. Indeed, "elpa.gnu.org:80" isn't a host name.
> Try pinging "elpa.gnu.org". It's there and replies to pings :)
> 
> > However, pinging other websites is normal. I also tried to access this (elpa.gnu.org:80) on my local computer and it is accessible.
> 
> You don't ping websites -- you ping hosts. Actually, elpa.gnu.org
> is serving a website at port 80 currently. So the URL
> http://elpa.gnu.org:80/ should get you something (since port 80
> is the default for http anyway, you can leave it out).
> 
> That said, elpa.gnu.org is also serving https, so I'd strongly
> recommend going with https://elpa.gnu.org/
> 
> Cheers
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> 
> iEYEARECAAYFAlpfPa0ACgkQBcgs9XrR2kZ+5wCfUj5LUoKJbu+ty2kjd6fJCKjK
> d0gAnis0HbxOkzP0n579SeUupTJUFEAa
> =136e
> -----END PGP SIGNATURE-----

Hi Tomas,

Basically, I've been following the instruction from elpy github repo for installation. (https://github.com/jorgenschaefer/elpy)

In my .emacs file. I've added the following:
```
(require 'package)
(add-to-list 'package-archives
             '("melpa-stable" . "https://stable.melpa.org/packages/"))

(package-initialize)
(elpy-enable)
```

So, I am using https, which is a safe practice as Dan pointed out.
How did emacs decide to connect to elpa.gnu.org? Is this a default of emacs? Because I never included the elpa.gnu.org link in my .emacs file or evaluated it in my buffer. (That means I have no choice in using https or http. :( It just happened and I don't know why.)

> ...but this won't work. Indeed, "elpa.gnu.org:80" isn't a host name.
> Try pinging "elpa.gnu.org". It's there and replies to pings :)
Yep, I tried to ping "elpa.gnu.org" and it did replied.

------------------
**ISSUE UPDATE**:
------------------
This is an update on the issue.

So, I have successfully installed eply in my emacs right now! However, this remains mysterious to me as in how it worked out.

In my first post, emacs was hanged on "Contacting host: elpa.gnu.org:80". Exiting emacs here and running package-install resulted in could not find the elpy package. 
Since I am running emacs on my server, I decided to let it run in hope that it would get connected anyhow. 
After two days, when I come back to it, it's still hanged. So I quite emacs (C-x C-c) and restart it. Then, I run package-install and elpy now can be installed.

Then, I tried package-refresh-content again but it still got hanged.

Do you have any idea how this might happen?
Thank you so much!

Best regards,
Yichao



  parent reply	other threads:[~2018-01-19  2:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-17 11:56 Ubuntu 16.04 server --- Contacting host: elpa.gnu.org:80 when package-refresh-contents izzy.yichao.cai
2018-01-17 12:12 ` tomas
2018-01-17 12:41   ` Dan Čermák
     [not found]   ` <mailman.7506.1516192916.27995.help-gnu-emacs@gnu.org>
2018-01-17 14:15     ` Rusi
2018-01-17 14:28       ` Dan Čermák
2018-01-17 14:41         ` Robert Pluim
2018-01-17 21:21           ` Stefan Monnier
     [not found] ` <mailman.7505.1516191159.27995.help-gnu-emacs@gnu.org>
2018-01-19  2:28   ` izzy.yichao.cai [this message]
2018-01-19  9:42     ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25bfc0c0-be6e-477b-abd1-f2d45bf43df2@googlegroups.com \
    --to=izzy.yichao.cai@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.