How to run the traceroute command in linux?

My GCSE coursework in linux is asking me to do this:

Stupid GCSE questions

Whenever I attempt it it says this:

It doesn't work

So do I just need to install the packages and it will work?


The default command for this purpose in Ubuntu is tracepath.

However you can install traceroute too by running

sudo apt install traceroute

as you can see in the error message.


Install traceroute by using the following command :

sudo apt-get install inetutils-traceroute 

However you can use the default command in linux which is tracepath, but it is not as flexible as traceroute. In traceroute we can choose between TCP, UDP, ICMP data formats and gives us ability to change some options. Thus it requires root privileges.