But it's impossible to execute apt-get install with shell=False since it requires sudo and sudo requires user to type password interactively. Not to say about warning the user about installing dependencies or even worse - removing conflicting packages. So I don't think '-y' key is the option even if command-not-found has privileges to install packages.
But it's impossible to execute apt-get install with shell=False since it requires sudo and sudo requires user to type password interactively. Not to say about warning the user about installing dependencies or even worse - removing conflicting packages. So I don't think '-y' key is the option even if command-not-found has privileges to install packages.