Emacs 不会列出任何包,也不会让我安装任何包
Emacs won't list any packages and won't let me install any packages
我一直在 mac 上设置我的 emacs。自从我在这台计算机上设置了我的 emacs 安装后,我无法安装任何软件包,甚至无法列出可用的软件包。每次我尝试刷新包存储库的内容时,我都会收到以下错误和回溯:
Debugger entered--Lisp error: (wrong-type-argument listp <!DOCTYPE)
package--read-archive-file("archives/marmalade/archive-contents")
package-read-archive-contents("marmalade")
package-read-all-archive-contents()
package--update-downloads-in-progress(("melpa-stable" . "http://stable.melpa.org/packages/"))
package--download-one-archive(("melpa-stable" . "http://stable.melpa.org/packages/") "archive-contents" nil)
package--download-and-read-archives(nil)
package-refresh-contents()
funcall-interactively(package-refresh-contents)
#<subr call-interactively>(package-refresh-contents record nil)
ad-Advice-call-interactively(#<subr call-interactively> package-refresh-contents record nil)
apply(ad-Advice-call-interactively #<subr call-interactively> (package-refresh-contents record nil))
call-interactively(package-refresh-contents record nil)
command-execute(package-refresh-contents record)
execute-extended-command(nil "package-refresh-contents")
smex-read-and-run(("pwd" "ido-wide-find-file-or-pop-dir" "bookmark-delete" "bookmark-jump" "bookmark-set" "replace-string" "flower-client-connect" "tramp-cleanup-connection" "rgrep" "tramp-cleanup-all-buffers" "tramp-cleanup-all-connections" "package-install" "magit-status" "flycheck-mode" "flycheck-set-checker-executable" "grep" "goto-line" "yank" "js2-mode" "grep-find" "rename-file" "magit-commit" "revert-buffer" "shrink-window" "clipboard-yank" "make-directory" "tramp-cleanup-this-connection" "5x5" "slime" "version" "php-mode" "web-mode" "irony-mode" "company-mode" "magit-rebase" "enlarge-window" "undo-tree-mode" "whitespace-mode" "package-initialize" "package-refresh-contents" "term" "imenu" "shell" "doctor" "eshell" "blackbox" "sgml-mode" "tern-mode" "tramp-bug" "calculator" ...))
smex()
funcall-interactively(smex)
#<subr call-interactively>(smex nil nil)
ad-Advice-call-interactively(#<subr call-interactively> smex nil nil)
apply(ad-Advice-call-interactively #<subr call-interactively> (smex nil nil))
call-interactively(smex nil nil)
command-execute(smex)
下面是我用来初始化包存储库的代码。
;; Package Managers
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.com/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)
有其他人遇到过这样的问题吗?如何从包存储库获得干净的响应以便我可以安装包?
编辑:
我正在使用 GNU Emacs 版本 25.1.1
问题是他们没有 http://marmalade-repo.com/packages/. The correct url is https://marmalade-repo.org/packages/。
归功于@jenesaisquoi。这位用户在我原来的 post.
的评论中找到了答案
;; Package Managers
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("marmalade" . "https://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)
我一直在 mac 上设置我的 emacs。自从我在这台计算机上设置了我的 emacs 安装后,我无法安装任何软件包,甚至无法列出可用的软件包。每次我尝试刷新包存储库的内容时,我都会收到以下错误和回溯:
Debugger entered--Lisp error: (wrong-type-argument listp <!DOCTYPE)
package--read-archive-file("archives/marmalade/archive-contents")
package-read-archive-contents("marmalade")
package-read-all-archive-contents()
package--update-downloads-in-progress(("melpa-stable" . "http://stable.melpa.org/packages/"))
package--download-one-archive(("melpa-stable" . "http://stable.melpa.org/packages/") "archive-contents" nil)
package--download-and-read-archives(nil)
package-refresh-contents()
funcall-interactively(package-refresh-contents)
#<subr call-interactively>(package-refresh-contents record nil)
ad-Advice-call-interactively(#<subr call-interactively> package-refresh-contents record nil)
apply(ad-Advice-call-interactively #<subr call-interactively> (package-refresh-contents record nil))
call-interactively(package-refresh-contents record nil)
command-execute(package-refresh-contents record)
execute-extended-command(nil "package-refresh-contents")
smex-read-and-run(("pwd" "ido-wide-find-file-or-pop-dir" "bookmark-delete" "bookmark-jump" "bookmark-set" "replace-string" "flower-client-connect" "tramp-cleanup-connection" "rgrep" "tramp-cleanup-all-buffers" "tramp-cleanup-all-connections" "package-install" "magit-status" "flycheck-mode" "flycheck-set-checker-executable" "grep" "goto-line" "yank" "js2-mode" "grep-find" "rename-file" "magit-commit" "revert-buffer" "shrink-window" "clipboard-yank" "make-directory" "tramp-cleanup-this-connection" "5x5" "slime" "version" "php-mode" "web-mode" "irony-mode" "company-mode" "magit-rebase" "enlarge-window" "undo-tree-mode" "whitespace-mode" "package-initialize" "package-refresh-contents" "term" "imenu" "shell" "doctor" "eshell" "blackbox" "sgml-mode" "tern-mode" "tramp-bug" "calculator" ...))
smex()
funcall-interactively(smex)
#<subr call-interactively>(smex nil nil)
ad-Advice-call-interactively(#<subr call-interactively> smex nil nil)
apply(ad-Advice-call-interactively #<subr call-interactively> (smex nil nil))
call-interactively(smex nil nil)
command-execute(smex)
下面是我用来初始化包存储库的代码。
;; Package Managers
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.com/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)
有其他人遇到过这样的问题吗?如何从包存储库获得干净的响应以便我可以安装包?
编辑:
我正在使用 GNU Emacs 版本 25.1.1
问题是他们没有 http://marmalade-repo.com/packages/. The correct url is https://marmalade-repo.org/packages/。
归功于@jenesaisquoi。这位用户在我原来的 post.
的评论中找到了答案;; Package Managers
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("marmalade" . "https://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)