我看到了命令sudo apt-get update --dry-run,它显然说它应该给出需要更新的软件包的数量。然而,当我在Ubuntu16.04上运行它时,我得到了E: Command line option --dry-run is not understood in combination with the other options.
给出更新数量的正确命令是什么,最好类似于sudo apt-get update --dry-run?
发布于 2020-06-05 18:35:22
这是获取“需要更新的软件包数量”的错误命令。
正确的命令是
sudo apt update它将检查更新并显示如下数字:
1 package can be upgraded. Run 'apt list --upgradable' to see it.https://askubuntu.com/questions/1247311
复制相似问题