【问题标题】:apt-cache search [emacs*+] doesnt find emacs in debianapt-cache search [emacs*+] 在 debian 中找不到 emacs
【发布时间】:2020-11-29 20:03:01
【问题描述】:

我找不到要在 debian 上安装的 emacs 包。
我正在使用apt-cache search [emacs*+],我得到了一个依赖于 emacs 的包列表,而不是 emacs 本身。

有什么想法吗?我只安装了 Debian 基础系统。

【问题讨论】:

  • [emacs*+] 对我来说看起来很奇怪。这不应该只是[emacs*] 甚至emacs吗?

标签: emacs debian apt-get


【解决方案1】:

首先[emacs*+] 没有意义。其次,添加更多 apt 存储库。只需搜索emacsemacs*+ 就相当于使用emac 进行apt-cache 搜索。

我的显示超过 300 个匹配 emacs 的条目:

 # Correct search
 $ apt-cache search emacs | wc -l
 330

 # Wrong
 $ apt-cache search emacs*+ | wc -l
 333

【讨论】:

  • 我应该添加哪个apt repos,我只想使用稳定的包。
  • 尝试执行sudo apt-get update并按照我的建议尝试apt-cache。
  • 运行 apt-get update,现在 emacs 出现了。感谢您的帮助。
  • @bjg 愉快地使用 emacs 编码 ;)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-06-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-05-22
  • 2016-02-05
  • 1970-01-01
相关资源
最近更新 更多