I am writing a shell script to install all my required applications on my Ubuntu PC in one shot (while I can take a stroll or do something else). For most applications adding -y to the end of the apt-get install statement, has worked well to avoid the need for any user involvement. My script looks something like this:#!/bin/bashadd-apt-repository ppa:webupd8team/sublime-text-3 -yapt-get update -yapt-get upgrade -yapt-get install synaptic -yapt-get install wireshark -yThough I no longer have to worry about Do you want to continue? [Y/n] or Press [ENTER] to continue or ctrl-c to cancel adding it, the problem is with wireshark, which requires a response to an interactive prompt as shown below:How can I avoid this mandatory intervention?
How to choose a response for interactive prompt during installation from a shell script
shell script;shell;ubuntu;wireshark;interactive