package-refresh-contents hangs at Contacting host:

melpa update packages
emacs packages
failed to download melpa' archive
emacs install from melpa
add gnu elpa to emacs
emacs package archives elpa
emacs elpa folder
doom-emacs failed to download 'gnu' archive

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 (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 or _emacs or ~/.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" . "")
                     ("marmalade" . "")
                     ("melpa" . "")))

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: · package linux. I am trying to access the melpa packages but when typing: package-  It is hanging for me at Contacting host: using GNU's 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:

Basically go to:, grab the gnutls library and just uncompress the archive at the root of your Emacs directory.

Afterwards, doing list-packages became near-instant for me. Using Emacs 24.5.1.

Contacting host: hanged during installation · Issue , When I run M-x package-refresh-contents, emacs successfully connected to After that, it was hanged on Contacting host: . After two day's hanging, I came back to the emacs session (still hanging) and  package-refresh-contents successfully checks against and 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" . "")
                         ("marmalade" . "")
                         ("melpa" . "")))

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 instead, but I haven't been able to ("gnu" . "")))). Changing this config to as Below the mode line, it said: Contacting host: 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 .

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: 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:

  1. We determined that the variable package-archives contained only GNU ELPA.

  2. After discovering this, the OP wrote

    I edited the package.el file. It works!

  3. 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.el file tries to add MELPA, I think there's something else going on. Perhaps the .emacs.d/ directory is in the wrong location, for example.

Editing 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: when , Subject: Re: Ubuntu 16.04 server --- Contacting host: 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: when , Subject: Ubuntu 16.04 server --- Contacting host: 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 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 When I issue M-x list-packages emacs hangs with a message "Connecting to host:". 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: I'm running Emacs 24.4 for Windows (installed through Chocolatey) and trying to install