Emacs can't find package to install

6.1k views Asked by At

I got this error when trying install Emacs package automatically.

Warning (initialization): An error occurred while loading `/Users/username/.emacs.d/init.el':

File error: http://melpa.org/packages/projectile-20150619.800.el, Not found

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.
4

There are 4 answers

0
Hoa Hoang On

And here's my solution:

  • Open your browser, and enter: http://melpa.org/

  • Search package name: 'projectile'

  • Then download and extract the package into ~/.emacs.d/elpa

0
xuchunyang On

You need to first refresh ELPA package archives by M-x package-refresh-contents, because yours are out-of-date so the package manager can't download package for you.

You can also install packages from Package Menu (entering via M-x list-packages), refreshing will be done automatically.

0
SzymonPajzert On

If you use ubuntu you can also just use apt-get install elpa-projectile as described in documentation.

0
zachaysan On

One reason this may be happening is that you may be trying to set up the package in your emacs.el file before setting up the melpa connection, so your package list is much smaller. Try disabling it there and refreshing the package list to see if that helps.