wireshark是一个网络流量分析软件,通常在爬虫是会使用。
进入Ubuntu版wireshark官网,里面有详细的安装过程
首先,官网会告诉你
From Ubuntu 16.04 you also need to enable “universe” repository, see:
http://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository
如果是Ubuntu16.04,要首先开启universe仓库,开启的方法在那个网址有
如果要使用命令而不是Software开启的话,在终端输入
sudo add-apt-repository universe
- 1
在旧版本的Ubuntu上,您可能需要使用完整的源代码行
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
- 1
使所有的Ubuntu软件(main universe restricted multiverse
)存储库都能使用
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
- 1
您还可以添加不同链接的partner
存储库
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
- 1
然后添加PPA
sudo add-apt-repository ppa:wireshark-dev/stable
- 1
更新包列表
sudo apt update
- 1
如果必要的话可以手动安装
sudo apt install wireshark
- 1
- 2
注意:安装时在设定wireshark-common的时候要选择 是
查看wireshark所在组
cat /etc/group | grep wireshark
- 1
把当前登录用户加入到wireshark组中
sudo usermod -a -G wireshark username
- 1
重启生效