答案1
这里你去!
首先,配置debconf
数据库:
echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections
然后,安装 Wireshark:
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install wireshark
您可能还想抑制 apt-get 的输出。在这种情况下:
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install wireshark > /dev/null