When I tried to install Wireshark automatically with : sudo apt-get install -y wireshark
Ubuntu gave me that image:
How can I install wireshark from terminal without press "YES" ?why does -y
didn't skip on that screen?
Here you go!
First, configure the debconf
database:
echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections
Then, install Wireshark:
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install wireshark
You might also want to suppress the output of apt-get. In that case:
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install wireshark > /dev/null
-y
refers to apt installation, the windows you show is the wireshark configuration of the package.Wireshark
automatically