While running Ubuntu, while trying to execute a commmand in bash, it used to suggest that the said program was missing but found in another package Y, and that I could try installing it.

Now on a Debian system, that's no longer the case. If the command isnt found it doesn't suggest anything. But package manager list is updated. How can I get it to suggest a package from commands given on bash?