I was working with someone on a project and I noticed they were using mtr
(My Trace Route) instead of traceroute
, is there some advantage to this? Why would they use that other tool instead?
I tried to use traceroute
for my networking project. But whenever I tried to install traceroute
it shows that
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt--fix-broken install' to correct these.
The following packages have unmet dependencies:
code : Depends: libgconf-2-4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Then I followed this link. But again it is not successfully installed and shows that,
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies: code : Depends: libgconf-2-4 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Now my question is, How I can install the traceroute
in my ubuntu 18.04?
I am currently taking a Controlled Assessment, and this is one of the tasks.
Make sure that you have the program
traceroute
installed. (Install it if necessary.)
I went on https://www.codeground.net/howto/traceroute-is-not-installed-by-default-on-ubuntu-replaced-by-mtr/, and it told me to use sudo apt-get install traceroute
,so I tried that, but it comes up with an errror message when I try it.
If you have any solutions I would be very grateful! :-)
Edit: I just used anand's answer, but it says:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I am unaware of what this means, so can someone please help.
Edit 2:I tried anand's updated answer, but the error message that comes up is:
Some index files failed to download. They have been ignored, or old ones used instead.
Edit 3: anand told me to add the logs, so here they are.
I recently read a bit of an article on HowToGeek that has me scratching my head a little. I've got fairly little experience with Linux though, so forgive me if this is entry-level:
"The tracepath command is similar to traceroute, but it doesn’t require root privileges."
How do traceroute and tracepath perform a similar function, differently?
What does traceroute do, which requires root privileges, that tracepath doesn't?
Are there scenarios where one should prefer tracepath over traceroute, or vice-versa?
It seems like xt
(xtraceroute) has been dropped from the repository, does anyone know of another graphical traceroute program in the main repos which draws maps? If not, then a loose deb package will do, or a PPA.