linux - 为什么我不能在 ubuntu 上运行没有 -a 参数的 lsb_release?
问题描述
为什么我不能在 ubuntu 上运行没有 -a 参数的 lsb_release?因为当我运行 lsb_release 命令时,我收到消息“没有可用的 LSB 模块”。
解决方案
说明: lsb_release
命令 -打印机器上的 linux 发行版本。
解决方案:(-v
版本)在没有参数的情况下是默认的。对于观看 linux 发行版的完整信息,请始终使用-a
标志或-r
版本号。
例子:
$lsb_release -a
#output:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
$lsb_release -r
#output:
Release: 18.04
标志是:
-v, --version
Show the version of the LSB against which your current installation is compliant. The version is expressed as a colon separated list of LSB module descriptions.
-i, --id
Display the distributor's ID.
-d, --description
Display a description of the currently installed distribution.
-r, --release
Display the release number of the currently installed distribution.
-c, --codename
Display the code name of the currently installed distribution.
-a, --all
Display all of the above information.
-s, --short
Use the short output format for any information displayed. This format omits the leading header(s).
-h, --help
Show summary of options.
推荐阅读
- powershell - 使用 Powershell 递归复制文件和文件夹
- json - 为我的传入 Webhook 输入 Teams ConversationID
- c# - 两种类型使用子依赖——如何使用不同的实现
- excel - 是否有一个 Excel 功能可以复制所有没有空白单元格的结果,同时在另一列中搜索匹配项
- mysql - MYSQL SELECT 与 JOIN、COUNT 和 GROUP BY
- typescript - 如何测试刷新和过期令牌场景?
- apollo - 使用 Apollo React 钩子重新获取查询
- angular - 从复选框打开 NgModal 时出现 ExpressionChangedAfterItHasBeenCheckedError
- javascript - 如何从 WebSocket 二进制数据中显示图像?
- linux - 如何使用 find 和 sed 命令递归地附加到匹配的模式