package-refresh-contents hangs at Contacting host: elpa.gnu.org:80
I'm running Emacs 24.4 for Windows (installed through Chocolatey) and trying to install CIDER.
When I run
M-x package-install [RET] cider [RET], I get
[No match]. When I run
M-x package-refresh-contents [RET], it hangs on Contacting host:
~/.emacs.d is populated with the GitHub repo recommended by braveclojure.com (here). I've reinstalled Emacs and I'm still getting the same problem.
I had this same problem on emacs ELPA wiki they say to set un ELPA you have to modify the emacs init file located at
~/.emacs.d/init.el for me it was
~/.emacs-live.el since I have this version.
I just updated that file with the following:
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/") ("melpa" . "http://melpa.org/packages/")))
Seems that I needed the configuration from where ELPA is going to look for packages.
After that i just ran
M-x package-refresh-contents [RET] and
M-x package-install [RET] cider [RET] that installed cider.
can not access melpa packages- hung up at Contacting host: elpa , can not access melpa packages- hung up at Contacting host: elpa.gnu.org:80 · package linux. I am trying to access the melpa packages but when typing: package- It is hanging for me at Contacting host: elpa.gnu.org:80 using GNU's emacs-24.4-bin-i686-pc-mingw32.zip freshly downloaded and installed under Windows 7. When I try the same M-x package-refresh-contents command in Emacs 24.4.1 under Ubuntu 15.04 it works perfectly.
This guide fixed it for me: http://www.lonecpluspluscoder.com/2015/08/adding-tls-support-to-emacs-24-5-on-windows/
Basically go to: http://sourceforge.net/projects/ezwinports/files/, grab the gnutls library and just uncompress the archive at the root of your Emacs directory.
list-packages became near-instant for me. Using Emacs 24.5.1.
Contacting host: elpa.gnu.org:80 hanged during installation · Issue , When I run M-x package-refresh-contents, emacs successfully connected to After that, it was hanged on Contacting host: elpa.gnu.org:80 . After two day's hanging, I came back to the emacs session (still hanging) and package-refresh-contents successfully checks against elpa.gnu.org and orgmode.org repos. When it comes to melpa, it just hangs at contacting host. When it comes to melpa, it just hangs at contacting host.
Other than setting up your package archives, like a previous answer mentions (FWIW I'm using HTTPS directly)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ("marmalade" . "https://marmalade-repo.org/packages/") ("melpa" . "https://melpa.org/packages/")))
one might encounter another problem but with the same symptom of getting stuck at "Contacting host" due to running gpg in batch mode to verify the packages, but needing some input. You can disable that via
(setq package-check-signature nil)
Emacs hangs at contacting host · Issue #4453 · syl20bnr/spacemacs , Once it opened with orgmode.org:80 instead, but I haven't been able to ("gnu" . "http://elpa.gnu.org/packages/")))). Changing this config to as Below the mode line, it said: Contacting host: melpa.org:443 windows 10. spacemacs hangs at "refreshing package archive:org. (package-refresh-contents). The docstring for package-refresh-contents says: Download descriptions of all configured ELPA packages. For each archive configured in the variable ‘package-archives’, inform Emacs about the latest versions of all packages it offers, and make them available for download. Optional argument ASYNC specifies whether to perform the
I had the same problem with Emacs 24 in Ubuntu 16.04 and nothing seemed to solve the problem. Finally, installing Emacs 25 solved the problem. For Ubuntu, there are packages at https://launchpad.net/~kelleyk/+archive/ubuntu/emacs .
Windows binaries may also be available somewhere.
Emacs hanging on package-refresh-contents : emacs, Emacs hanging on package-refresh-contents. Stuck on contacting host: elpa.gnu.org:80, anyone else having this issue? is the service reachable? Suggestions? I tried M-x package-refresh-contents and saw the following messages. Contacting host: elpa.gnu.org:80 Failed to download `gnu' archive. Any suggestions on how I go about debugging this issue?
Stack Overflow sometimes deletes chats. Fortunately it seems like I've still got access to a read-only version of the transcript.
From my perspective we didn't get a satisfactory answer. Here are the highlights:
We determined that the variable
package-archivescontained only GNU ELPA.
After discovering this, the OP wrote
I edited the package.el file. It works!
I suggested that editing a core Emacs Lisp file is not a good solution, but didn't hear anything back from the OP.
Since the referenced
init.elfile tries to add MELPA, I think there's something else going on. Perhaps the
.emacs.d/directory is in the wrong location, for example.
package.el is certainly not a good solution. Doing more work to determine why the config isn't being properly loaded would be a good approach.
Re: Ubuntu 16.04 server --- Contacting host: elpa.gnu.org:80 when , 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). Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Ubuntu 16.04 server --- Contacting host: elpa.gnu.org:80 when , Subject: Ubuntu 16.04 server --- Contacting host: elpa.gnu.org:80 when package-refresh-contents. Date: Wed, 17 Jan 2018 03:56:34 -0800 (PST). User-agent @ivan-m Solved, I think, at least now it highlights the Haskell code, which before wasn't doing it. Tomorrow I will play more with it. I basically searched for this haskell-mode library from the list returned by package-list-packages and then I click [Install] on the buffer that appear when I click on the item of the list corresponding to haskell-mode.
bug#17879: 24.3.92; package-refresh-contents hangs at contacting , package-refresh-contents successfully checks against elpa.gnu.org and When it comes to melpa, it just hangs at contacting host. It works in Hi all, is anyone else experiencing problems with pulling the list of packages from elpa.gnu.org? When I issue M-x list-packages emacs hangs with a message "Connecting to host: elpa.gnu.org:80". I have emacs 24.3 installed, I'm not behind a proxy server. I can browse the list of packages in my web browser, though it is slow sometimes.
Newest 'elpa' Questions, package-refresh-contents hangs at Contacting host: elpa.gnu.org:80. I'm running Emacs 24.4 for Windows (installed through Chocolatey) and trying to install