Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traceroute not work in Linux #21

Open
kpf61 opened this issue Apr 14, 2023 · 3 comments
Open

traceroute not work in Linux #21

kpf61 opened this issue Apr 14, 2023 · 3 comments

Comments

@kpf61
Copy link

kpf61 commented Apr 14, 2023

image
Error as shown

@GencoreOperative
Copy link

I get the same issue.

java.io.IOException: traceroute: invalid option -- 'n'
Try 'traceroute --help' or 'traceroute --usage' for more information.

	at org.leo.traceroute.core.route.impl.OSTraceRoute.computeRoute(OSTraceRoute.java:167) ~[org.leo.traceroute.jar:na]
	at org.leo.traceroute.core.route.impl.AbstractTraceRoute.lambda$compute$6(AbstractTraceRoute.java:190) ~[org.leo.traceroute.jar:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

For reference, I'm on Linux and using GNU inetutils:

$ traceroute -V
traceroute (GNU inetutils) 1.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Elian Gidoni.

@GencoreOperative
Copy link

To resolve this issue, you will need to install version 1.2.x of traceroute rather than version 2.1.x.

sudo apt install inetutils-traceroute  # version 2:1.9.4-11ubuntu0.1, or
sudo apt install traceroute            # version 1:2.1.0-2

Remove the inetutils-traceroute package and install the traceroute. This version has the -n flag the application is looking for.

@kpf61
Copy link
Author

kpf61 commented May 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants