prayagupa/dotfiles

error: Package `starter-kit' is not available for installation

Closed this issue · 2 comments

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

error: Package `starter-kit' is not available for installation

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.

need to try following command, if that works.

M-x package-refresh-contents 
#close emacs and restart will start downloading to ~/.emacs.d/elpa

Or (but will ask for a specific package)

M-x package-install

Ref

http://clojure-doc.org/articles/tutorials/emacs.html

For emacs version 24.2.1

0

$ emacs24 --version
GNU Emacs 24.2.1
Copyright (C) 2012 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

1. elpa/

$ ls -l ~/.emacs.d/elpa/
total 44
drwxrwxr-x 6 prayagupd prayagupd 4096 Apr 29 20:10 archives
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:18 cl-lib-0.5
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:19 find-file-in-project-20140221.557
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:18 git-commit-mode-20140313.1504
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:18 git-rebase-mode-20140313.1504
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:19 idle-highlight-mode-20120920.948
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:19 ido-ubiquitous-20140327.1625
drwxr-xr-x 2 prayagupd prayagupd 4096 Apr 29 20:19 magit-20140416.1539
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:19 paredit-20140128.1248
drwxrwxr-x 2 prayagupd prayagupd 4096 Apr 29 20:19 smex-20140425.1314
drwxr-xr-x 2 prayagupd prayagupd 4096 Apr 29 20:19 starter-kit-20130904.1547

Getting following exception,

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

error: Your Emacs has a non-elisp version of `execute-extended-command', which is incompatible with Smex

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.

In a working machine with emacs 24.3.1

0

$ emacs --version
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

1. elpa

$ ls -l ~/.emacs.d/elpa/
total 72
drwxrwxr-x 4 pupadhyay pupadhyay 4096 Jan 31 10:38 archives
drwxr-xr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 cider-0.5.0
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 clojure-mode-2.1.1
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 clojure-test-mode-3.0.0
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 dash-2.5.0
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 elisp-slime-nav-0.7
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 epl-0.4
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 find-file-in-project-3.2
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 idle-highlight-mode-1.1.2
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 ido-ubiquitous-2.9
drwxr-xr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 magit-1.2.0
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 paredit-22
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 pkg-info-0.4
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 smex-3.0
drwxr-xr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 starter-kit-2.0.3
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 starter-kit-bindings-2.0.2
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 starter-kit-eshell-2.0.3
drwxrwxr-x 2 pupadhyay pupadhyay 4096 Jan 31 10:39 starter-kit-lisp-2.0.3

2

pupadhyay at pupadhyay in ~/backup/hacker_/w.groovy/MDevelop/DTest on providerErVisits*
$ ls -l /usr/share/emac*
/usr/share/emacs:
total 8
drwxr-xr-x 5 root root 4096 Dec 31 13:36 24.3
drwxr-xr-x 5 root root 4096 Apr  2 11:48 site-lisp

/usr/share/emacs24:
total 4
drwxr-xr-x 4 root root 4096 Mar 19 10:46 site-lisp

3

$ ls -l /etc/em*
/etc/emacs:
total 8
drwxr-xr-x 2 root root 4096 Mar 19 10:46 site-start.d
-rw-r--r-- 1 root root  412 Feb 12  2012 site-start.el

/etc/emacs24:
total 4
drwxr-xr-x 2 root root 4096 Mar 19 10:46 site-start.d

Fixed after emacs version 24.3.1 followed by M-x package-refresh-contents
47e776d