I saw the command sudo apt-get update --dry-run
which apparently said it should give the number of packages that need updates. However, when I run it on Ubuntu 16.04, I get E: Command line option --dry-run is not understood in combination with the other options.
What is the right command that will give the number of updates, preferably similar to sudo apt-get update --dry-run?
This is a wrong command to get "the number of packages that need updates".
The correct command is
It will check for updates and show the number like this: