根据/etc/apt/sources.list“Ubuntu 团队完全不支持” ,如何检查我是否安装了任何 Universe 或 Multiverse 软件包?
我正在寻找的是 Ubuntu 18 LTS 服务器(无 GUI)的命令行,用于按组件列出已安装的软件包,包括不可用的已安装软件包apt-get(不是 中配置的档案的一部分/etc/apt/sources.list)。
aptitude versions '?name(.)'列出可用的包及其安装状态,但不输出它们的源组件,也不输出apt-cache.
当我将一些 apt 配置文件放入/etc/apt/preferences.dUbuntu 20 LTS 桌面时,它会被忽略(在 的输出中看不到apt-config dump)。
当我将相同的*.conf文件放入目录中时/etc/apt/apt.conf.d,它很荣幸(可以在 的输出中看到apt-config dump)。
/etc/apt/preferences.d那么Ubuntu 中该目录的用途是什么?
尽管默认情况下启用了压缩(我没有在 中更改它/etc/systemd/journald.conf),但我的 Ubuntu 18 LTS 服务器中的日志文件似乎没有被压缩,并且journalctl声称可以看到压缩文件:
# journalctl --header | grep PRESS | uniq
Incompatible Flags: COMPRESSED-LZ4
# journalctl --disk-usage
Archived and active journals take up 4.0G in the file system.
# journalctl -o verbose | wc
4 GB in 90 Mio lines # about the same size as the journal files itself
# journalctl -o verbose | gzip | wc -c
193 MB # reduced by a factor of 20
grep -v '^#' /etc/systemd/journald.conf
[Journal] …Run Code Online (Sandbox Code Playgroud) 在Ubuntu的LTS 18服务器的缺省配置,按下V键在less调用nano编辑器来代替vi,而没有任何的环境变量$LESSEDIT,$VISUAL或$EDITOR设置。
我能够恢复记录在man lesswith 中的正确行为,update-alternatives --set editor /usr/bin/vim.basic但这证明lessexecuteseditor而不是vi.
这是文档错误(Ubuntu 行为故意与默认上游less行为不同)还是错误较少,还是我的错(我错过了什么)?