syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.9k forks source link

Spacemacs doesn't refresh packages from melpa #15619

Closed aravindsv closed 2 years ago

aravindsv commented 2 years ago

Description :octocat:

Packages from melpa will not refresh on a fresh install of spacemacs on emacs 27.1 on Ubuntu 14.04. Note that running emacs -Q does not exhibit this behavior, nor does my previous non-spacemacs config for emacs, i.e. when running emacs -Q, I am able to successfully run M-x package-refresh-contents and install packages like use-package

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart:

Expected behaviour: :heart: :smile: Packages should install

(%LAST_KEYS%) %SYSTEM_INFO%

emacs --insecure --debug-init

Backtrace :paw_prints:

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "use-package")
  require(use-package)
  spacemacs-bootstrap/init-use-package()
  funcall(spacemacs-bootstrap/init-use-package)
  (let* ((pkg-name (eieio-oref pkg ':name)) (owner (car (eieio-oref pkg ':owners)))) (spacemacs-buffer/message (format "%S -> init (%S)..." pkg-name owner)) (funcall (intern (format "%S/init-%S" owner pkg-name))))
  configuration-layer//configure-package(#<cfgl-package cfgl-package-c16648>)
  mapc(configuration-layer//configure-package (#<cfgl-package cfgl-package-c16588> #<cfgl-package cfgl-package-c165d8> #<cfgl-package cfgl-package-c165c4> #<cfgl-package cfgl-package-c165fc> #<cfgl-package cfgl-package-c16610> #<cfgl-package cfgl-package-c16634> #<cfgl-package cfgl-package-c16648> #<cfgl-package cfgl-package-c1666c>))
  (let (packages-to-configure) (let ((--dolist-tail-- packages)) (while --dolist-tail-- (let ((pkg-name (car --dolist-tail--))) (let ((pkg (configuration-layer/get-package pkg-name))) (cond ((eieio-oref pkg ...) (spacemacs-buffer/message ...)) ((and ... ...) (spacemacs-buffer/message ...)) ((null ...) (spacemacs-buffer/message ...)) ((not ...) (spacemacs-buff$
  configuration-layer//configure-packages-2((async bind-key bind-map diminish evil hydra use-package which-key))
  configuration-layer//configure-packages((abbrev ace-jump-helm-line ace-link ace-window aggressive-indent all-the-icons ansi-colors archive-mode async auto-compile auto-highlight-symbol avy bind-key bind-map bookmark buffer-menu centered-cursor-mode clean-aindent-mode column-enforce-mode compile conf-mode cus-edit dash debug default-helm-config default-ivy-c$
  configuration-layer//load()
  (cond (changed-since-last-dump-p (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message "Layer list has changed since last dump.") (configuration-layer//dump-emacs)))) (spacemacs-force-dump (configuration-layer//load) (if (spacemacs/emacs-with-pdumper-set-p) (progn (configuration-layer/message (concat "--for$
  configuration-layer/load()
  (let ((file-name-handler-alist nil)) (require 'core-spacemacs) (spacemacs/dump-restore-load-path) (configuration-layer/load-lock-file) (spacemacs/init) (configuration-layer/stable-elpa-init) (configuration-layer/load) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (spacemacs/dump-eval-delayed-functions) (if (and dotspacemacs-enable-s$
  (if (not (version<= spacemacs-emacs-min-version emacs-version)) (error (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %s or above.") emacs-version spacemacs-emacs-min-version) (let ((file-name-handler-alist nil)) (require 'core-spacemacs) (spacemacs/dump-restore-load-path) (configuration-layer/load-lock-file) (spacemacs/$
  eval-buffer(#<buffer  *load*> nil "/home/avadali/.emacs.d/init.el" nil t)  ; Reading at buffer position 3147
  load-with-code-conversion("/home/avadali/.emacs.d/init.el" "/home/avadali/.emacs.d/init.el" t t)
  load("/home/avadali/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x7e15ed>) #f(compiled-function () #<bytecode 0x7e2621>) t)
  command-line()
  normal-top-level()
thanhvg commented 2 years ago

You should do this in stead:

SPC f e U ;; configuration-layer/update-packages

or just hit the [Update Packages] showed in the home buffer.