Emacs package-install Fails (Package Not Found or Archive Error)

Share
Workaround available Windows, macOS, Linux Updated November 14, 2026Based on 2 user reportsHow we research

Quick answer

package-install fails when the package list is stale or an archive is missing. Run package-refresh-contents first and check package-archives.

Most likely fix: Refresh the package list

How to fix it

Try these in order — the most common fix is first.

  1. 1. Refresh the package list

    1. Run M-x package-refresh-contents
    2. Retry M-x package-install
    Did this fix it?
  2. 2. Add MELPA

    1. Add (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
    2. Run package-refresh-contents
    Did this fix it?
  3. 3. Check network and signature

    1. Open the archive URL in a browser
    2. See the failed-to-verify-signature guide if the error mentions a signature
    Did this fix it?

Symptoms

'Package X is unavailable', 'Failed to download archive' or 'Error retrieving' messages when installing from MELPA or ELPA.

Why it happens

  • The package list was never refreshed
  • MELPA is not in package-archives
  • TLS or network problems reaching the archive
  • Signature verification failing for ELPA

This guide also covers

  • emacs package install failed
  • emacs package unavailable
  • emacs melpa not working

Still not working?

If GNU Emacs keeps failing, you're not alone. See every GNU Emacs problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other GNU Emacs errors