Doom-emacs: 在配方存储库中找不到包X

创建于 2020-03-31  ·  12评论  ·  资料来源: hlissner/doom-emacs

doom upgrade更新末日,或使用doom update更新其包后,出现以下错误:

Package error: (error Could not find package org-roam in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror))
Package error: (error Could not find package company-org-roam in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror))

和/或类似以下错误:

Cannot open load file: No such file or directory, org-roam
Cannot open load file: No such file or directory, org-superstar
bug common packages straight resolved

最有用的评论

这是一个已知问题,您的本地melpa仓库未得到更新,因此直接(我们的程序包管理器)找不到新程序包(例如org-roam或org-superstar)。

我正在修复,但与此同时,您需要手动更新本地melpa存储库:

编辑:这已在最近的《毁灭战士》中修复,但是来自旧版本的用户可能在第一次运行doom upgrade仍会遇到此问题,因此此修复程序仍适用于您:

# Update MELPA
cd ~/.emacs.d/.local/straight/repos/melpa
git pull

# Clear straight's cache
rm -f ~/.emacs.d/.local/straight/build-cache.el
doom sync

所有12条评论

我也是。

这是一个已知问题,您的本地melpa仓库未得到更新,因此直接(我们的程序包管理器)找不到新程序包(例如org-roam或org-superstar)。

我正在修复,但与此同时,您需要手动更新本地melpa存储库:

编辑:这已在最近的《毁灭战士》中修复,但是来自旧版本的用户可能在第一次运行doom upgrade仍会遇到此问题,因此此修复程序仍适用于您:

# Update MELPA
cd ~/.emacs.d/.local/straight/repos/melpa
git pull

# Clear straight's cache
rm -f ~/.emacs.d/.local/straight/build-cache.el
doom sync

我遇到了同样的问题,建议的解决方法失败,如下所示:

$ doom sync
Building straight...
Building straight...done
Building use-package...
Building use-package → Building bind-key...
Building use-package → Building bind-key...done
Building use-package...
Building use-package...done
> Synchronizing your config with Doom Emacs...
  > Regenerating envvars file at "~/.emacs.d/.local/env"
  - Scraping shell environment
    - Ignoring HOME=/Users/jcf
    - Ignoring GPG_TTY=/dev/ttys006
    - Ignoring PWD=/Users/jcf/.emacs.d/.local/straight/repos/melpa
    - Ignoring __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x2
    - Ignoring SSH_AUTH_SOCK=/Users/jcf/.gnupg/S.gpg-agent.ssh
    - Ignoring TERM=xterm-256color
    ✓ Successfully generated "~/.emacs.d/.local/env"
  > (Re)generating core autoloads...
    > Generating core autoloads...
    > Byte-compiling core autoloads file...
    ✓ Generated .local/autoloads.elc
  > Installing packages...
    → Cloning auto-minor-mode...
x There was an unexpected error:
  Type: doom-package-error
  Message:
    Error with packages
  Data:
    "auto-minor-mode"
    (error "Failed to run \"git\"; see buffer *straight-process*")
    "fatal: destination path '/Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode' already exists and is not an empty directory.
    "
  Straight output:
    fatal: destination path '/Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode' already exists and is not an empty directory.


Run the command again with the -d (or --debug) switch to enable debug
mode and (hopefully) generate a backtrace from this error:

  doom -d sync

If you file a bug report, please include it!
$ ls -alh /Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode
ls: /Users/jcf/.emacs.d/.local/straight/repos/auto-minor-mode: No such file or directory

更新:在c96303830835ed49b6803a5288379891d6ab7cfc中移到Straight.el的主分支(而不是开发)已为我解决了一些问题。

为了后代和避免混淆, @jcf的问题与此无关(请参阅#2937,该问题已单独解决)。

我对shellcheck遇到了同样的问题,发现它也在我的配置(package.el)中,将其删除,消息现在消失了...

从0e851ac开始, bin/doom将在安装/更新软件包之前更新您的配方存储库,这将解决此问题。 如果不是这种情况,请告诉我,我将重新打开它。 感谢您引起我的注意!

有同样的问题。 刚刚尝试了厄运升级/更新并得到了这个

Type: error
  Message:
    error
  Data:
    "Could not find package org-superstar in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror)"

更新:按照以下步骤工作

@kawaiier也有同样的问题org-superstar 。 如上所述手动更新Melpa可以解决此问题

我已经完成了如上所述的修复,但是下次我运行doom upgrade ,它总是会再次中断

x There was an unexpected error:ate...
  Type: doom-package-error
  Message:
    Error with packages
  Data:
    "org-superstar"
    (error "Failed to run \"git\"; see buffer *straight-process*")
  Straight output:
    fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
    HEAD

@harrisj我有同样的问题:sweat_smile:

@harrisj @VitalyAnkh试试

git -C ~/.emacs.d pull
git -C ~/.emacs.d/.local/straight/repos/melpa pull
rm -rf ~/.emacs.d/.local/straight/repos/org-superstar
rm -f ~/.emacs.d/.local/straight/build-cache.el
doom sync

万一有人为组织超级巨星发生这种情况, @ hlissner几天前将超级巨星更改为要求(org +pretty)init.el (由于速度问题)。

如果以上软件包的刷新内容无效,则可能需要添加此标志。

此页面是否有帮助?
0 / 5 - 0 等级