gpt4 book ai didi

ubuntu - Ubuntu终端: "Command line option ' n' [from -installed] is not understood in combination with the other options.出现错误“

转载 作者:行者123 更新时间:2023-12-04 19:30:06 33 4
gpt4 key购买 nike

我试图列出所有已安装的软件包。我运行了这个命令:

$ sudo apt list all


然后它说“Listing done”,但它不输出任何其他内容。我认为这个命令是错误的。
然后我运行以下命令:

$ sudo apt list -installed


我收到了这个错误:

Command line option 'n' [from -installed] is not understood in combination with the other options.


我也试过“sudo apt-get list -installed”。但这显示了同样的错误。
我是 Ubuntu 和终端脚本的新手。我是否因为错误的命令而破坏了系统中的某些内容。为什么会这样?

最佳答案

命令行应该是:

apt list --installed
-intalled选项不存在,这就是您收到 command.. is not understood 的原因错误。它不会破坏任何东西。

关于ubuntu - Ubuntu终端: "Command line option ' n' [from -installed] is not understood in combination with the other options.出现错误“,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67458991/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com