出现这样子的错误,我尝试过换源,但是也不行,使用 brew cask 安装的emacs,使用的develop分支,求助 Found 110 new package(s) to install… –> refreshing package archive: gnu-cn… [3/3] –> installing package: async@spacemacs-bootstrap… [1/110] Package async is unavailable. Is the package name misspelled? –> installing package: bind-key@spacemacs-bootstrap… [2/110] Package bind-key is unavailable. Is the package name misspelled? –> installing package: bind-map@spacemacs-bootstrap… [3/110] Package bind-map is unavailable. Is the package name misspelled? –> installing package: diminish@spacemacs-bootstrap… [4/110] Package diminish is unavailable. Is the package name misspelled? –> installing package: dotenv-mode@spacemacs-bootstrap… [5/110] Package dotenv-mode is unavailable. Is the package name misspelled? –> installing package: evil@spacemacs-bootstrap… [6/110] Package evil is unavailable. Is the package name misspelled? –> installing package: hydra@spacemacs-bootstrap… [8/110] Package hydra is unavailable. Is the package name misspelled? –> installing package: org-plus-contrib@spacemacs-org… [9/110] Package org-plus-contrib is unavailable. Is the package name misspelled? –> installing package: pcre2el@spacemacs-bootstrap… [10/110] Package pcre2el is unavailable. Is the package name misspelled? –> installing package: use-package@spacemacs-bootstrap… [11/110] Package use-package is unavailable. Is the package name misspelled? –> installing package: which-key@spacemacs-bootstrap… [12/110] Package which-key is unavailable. Is the package name misspelled? –> installing package: ace-jump-helm-line@helm… [13/110] Package ace-jump-helm-line is unavailable. Is the package name misspelled? –> installing package: ace-link@spacemacs-navigation… [14/110] Package ace-link is unavailable. Is the package name misspelled? –> installing package: ace-window@spacemacs-navigation… [15/110] Package ace-window is unavailable. Is the package name misspelled? –> installing package: aggressive-indent@spacemacs-editing… [16/110] Package aggressive-indent is unavailable. Is the package name misspelled? –> installing package: auto-compile@emacs-lisp… [17/110] Package auto-compile is unavailable. Is the package name misspelled? –> installing package: auto-highlight-symbol@spacemacs-navigation… [18/110] Package auto-highlight-symbol is unavailable. Is the package name misspelled? –> installing package: avy@spacemacs-editing… [19/110] Package avy is unavailable. Is the package name misspelled? –> installing package: centered-cursor-mode@spacemacs-navigation… [20/110] Package centered-cursor-mode is unavailable. Is the package name misspelled? –> installing package: clean-aindent-mode@spacemacs-editing… [21/110] Package clean-aindent-mode is unavailable. Is the package name misspelled? –> installing package: column-enforce-mode@spacemacs-editing-visual… [22/110] Package column-enforce-mode is unavailable. Is the package name misspelled? –> installing package: define-word@spacemacs-language… [23/110] Package define-word is unavailable. Is the package name misspelled? –> installing package: devdocs@spacemacs-misc… [24/110] Package devdocs is unavailable. Is the package name misspelled? –> installing package: doom-modeline@spacemacs-modeline… [25/110] Package doom-modeline is unavailable. Is the package name misspelled? –> installing package: dumb-jump@spacemacs-misc… [26/110] Package dumb-jump is unavailable. Is the package name misspelled? –> installing package: editorconfig@spacemacs-editing… [27/110] Package editorconfig is unavailable. Is the package name misspelled? –> installing package: elisp-slime-nav@emacs-lisp… [28/110] Package elisp-slime-nav is unavailable. Is the package name misspelled? –> installing package: eval-sexp-fu@spacemacs-editing… [29/110] Package eval-sexp-fu is unavailable. Is the package name misspelled? –> installing package: evil-anzu@spacemacs-evil… [30/110] Package evil-anzu is unavailable. Is the package name misspelled? –> installing package: evil-args@spacemacs-evil… [31/110] Package evil-args is unavailable. Is the package name misspelled? –> installing package: evil-cleverparens@spacemacs-evil… [32/110] Package evil-cleverparens is unavailable. Is the package name misspelled? –> installing package: evil-ediff@spacemacs-evil… [33/110] Package evil-ediff is unavailable. Is the package name misspelled? –> installing package: evil-escape@spacemacs-evil… [34/110] Package evil-escape is unavailable. Is the package name misspelled? –> installing package: evil-exchange@spacemacs-evil… [35/110] Package evil-exchange is unavailable. Is the package name misspelled? –> installing package: evil-goggles@spacemacs-evil… [36/110] Package evil-goggles is unavailable. Is the package name misspelled? –> installing package: evil-iedit-state@spacemacs-evil… [37/110] Package evil-iedit-state is unavailable. Is the package name misspelled? –> installing package: evil-indent-plus@spacemacs-evil… [38/110] Package evil-indent-plus is unavailable. Is the package name misspelled? –> installing package: evil-lion@spacemacs-evil… [39/110] Package evil-lion is unavailable. Is the package name misspelled? –> installing package: evil-lisp-state@spacemacs-evil… [40/110] Package evil-lisp-state is unavailable. Is the package name misspelled? –> installing package: evil-matchit@spacemacs-evil… [41/110] Package evil-matchit is unavailable. Is the package name misspelled? –> installing package: evil-mc@multiple-cursors… [42/110]
尝试刷新几次,或者不用https看看。
都尝试了,也不是网络原因,所有package 都找不到 很难受
dotspacemacs-elpa-timeout 300 在 init.el 中修改.
init.el 没看到这个timeout 我在 .spacemacs 中找到了,修改了,不管用。。。
真是劝退了,我应该用vscode。。。
非常感谢您的回答,我放弃了
连什么问题都还没分析出来呢。先搞清楚什么问题,然后再解决问题。
Package bind-key is unavailable. Is the package name misspelled?
这代表什么?显然没有写错,肯定有其它可能。
请问需要提供什么其他的信息来确定问题, 我搜索了很多解决方法,都尝试了一下,没有解决问题 so sad。。。。
Is the package name misspelled?
解决办法在 spacemacs 的 README 里面其实写有了的,在命令行以 emacs --insecure
来启动,这样会用 http 来安装包,我不太清楚这样的风险,如果比较了解的同学看到还请说一下。在 spacemacs 的 README 里面搜索 insecure ,读一读。
另外还有一个常见的错误是 gpg key 没有更新,这样会导致安装新的 layer 时不能安装新的包。见 spacemacs 安装中gnu 的key 出错,有遇到的吗? - #2,来自 seagle0128
我在用旧版本的 emacs 的时候是在 .spacemacs
里面这样额外安装了 gnu-elpa-keyring-update
,如下,这行设置默认是空的。但我不记得我更新 key 的步骤了,安装之后好像要调用函数,又好像不用。在 http://elpa.gnu.org/packages/gnu-elpa-keyring-update.html 有说明。
(defun dotspacemacs/layers ()
;;...
dotspacemacs-additional-packages '(gnu-elpa-keyring-update)
)
还有个回复说明了怎么手动安装 https://emacs-china.org/t/gnu-elpa/9255/3
希望可以帮到忙。
感谢你的回答,我已经解决了