对于apt
命令,存在edit-sources
选项。
apt --help
指出:
edit-sources - edit the source information file
据man apt
称:
edit-sources (work-in-progress)
edit-sources lets you edit your sources.list(5) files in your preferred text editor while also providing basic sanity checks.
不过,我在网上找不到如何使用这个选项的教程。一些指导是值得赞赏的。
发布于 2022-06-10 14:48:23
在我的Ubuntu22.04中,sudo apt edit-sources
的结果如下:
Select an editor. To change later, run 'select-editor'.
1. /bin/nano <---- easiest
2. /usr/bin/vim.tiny
3. /usr/bin/emacs
4. /bin/ed
所有列出的编辑器都是免费软件,因此给编辑源用户额外的软件自由是合适的。正如sudo apt edit-sources
的输出所指出的,nano是最简单的,大多数Ubuntu用户对nano会比较满意,但是高级Ubuntu用户可能更喜欢使用功能更全面的编辑器,比如Vim或Emacs,特别是如果他们经常使用该编辑器的话。
https://askubuntu.com/questions/1413249
复制相似问题