Ask Your Question
0

How can I install tshark on ubuntu so I can use it on the command line?

asked 2022-07-15 05:15:32 +0000

Daniel gravatar image

updated 2022-07-19 08:02:31 +0000

Guy Harris gravatar image

I have recently updated wireshark and I also checked the check box for the installation of Tshark but when I try to use tshark on cmd using "tshark --help" or even when I try to install it using "apt install tshark" I receive a message that the tshark package cannot be located.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-07-19 07:59:45 +0000

Guy Harris gravatar image

updated 2022-07-19 20:52:07 +0000

I have recently updated wireshark and I also checked the check box for the installation of Tshark

Is this in Synaptics Package Manager?

If so, presumably you clicked "Apply" in the toolbar of Synaptics, so that it would install the "tshark" package. If not, you must do so.

Start Synaptics and look for "tshark"; if it's installed, the checkbox for it should be green. If it's not green, check it, select "Mark for Installation" in the window that pops up, and click "Apply" in the toolbar.

even when I try to install it using "apt install tshark" I receive a message that the tshark package cannot be located.

If I do sudo apt install tshark on my Ubuntu 20.04 virtual machine, it prints

Reading package lists... Done
Building dependency tree       
Reading state information... Done
tshark is already the newest version (3.2.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

It also worked on my Ubuntu 21.04 virtual machine after I uninstalled it.

I also created a new 22.04 virtual machine, and, after doing sudo apt install wireshark, if I typed "tshark" it printed

Command 'tshark' not found, but can be installed with:
sudo apt install tshark

When I ran sudo apt install tshark, it installed the tshark package, and I could run tshark from the command line.

What version of Ubuntu are you running?

What command did you run to install tshark?

What wa the exact message it reported?

edit flag offensive delete link more
0

answered 2022-07-15 07:54:50 +0000

grahamb gravatar image

Your question is confusing as you seem to be mixing OS's with discussion of "ubuntu" "apt" and "cmd", the latter is usually Windows.

If you are using Ubuntu, then via the Wireshark Download page the link to the Canonical/Ubuntu Standard Package should get you to the Ubuntu package list for Wireshark with links to the packages for the various Ubuntu versions.

Note these are "meta" packages that pull in the various individual packages for the components that make up the Wireshark suite of applications and libraries, and tshark is amongst them.

edit flag offensive delete link more

Comments

Your question is confusing as you seem to be mixing OS's with discussion of "ubuntu" "apt" and "cmd", the latter is usually Windows.

I.e., if by "on cmd" you mean "on the command line", then say "on the command line" or "on the cmd line", as that makes it clearer what you mean, avoiding confusion with, for example, cmd.exe, which is the default command-line shell on Windows.

Guy Harris gravatar imageGuy Harris ( 2022-07-19 07:00:31 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-07-15 05:15:32 +0000

Seen: 17,797 times

Last updated: Jul 19 '22