Score:0

If ifconfig is not installed, how does ubuntu tell you to install net-tools in order to use ifconfig? Why doesn't Debian do this?

ye flag

If (as an example) net-tools package is not installed and I try to use ifconfig command, Ubuntu says

Command 'ifconfig' not found, but can be installed with:
sudo apt install net-tools

How can Ubuntu (unlike e.g. Debian) know which package I need to install to use that command?

ChanganAuto avatar
us flag
Why or why not Debian does X, Y and Z is a good question for https://unix.stackexchange.com/ but not really a topic here.
cn flag
are you sure https://packages.debian.org/unstable/command-not-found as it is part of Debian.
cn flag
Have a look at https://unix.stackexchange.com/a/67473/10017 This might still be the case.
Score:2
cn flag

How does Ubuntu know which package I need to install to use that command?

The package that does this is actually called command-not-found and it uses a cache to gather all the commands installed (update-command-not-found does this).

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.