leolewis / openvisualtraceroute

Open source cross-platform (Windows/Linux/Mac) Java Visual Traceroute, packet sniffer and Whois.
http://visualtraceroute.net/
GNU Lesser General Public License v3.0
170 stars 32 forks source link

traceroute not work in Linux #21

Open kpf61 opened 1 year ago

kpf61 commented 1 year ago

image Error as shown

GencoreOperative commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

sorted Kindest Regards Kevin

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 15/05/23, 00:30:58

On Sun, 14 May 2023 at 22:04, GencoreOperative @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/leolewis/openvisualtraceroute/issues/21#issuecomment-1547001162, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7F4S7SKPSC7GNFTSXESVXTXGFCGTANCNFSM6AAAAAAW63I7U4 . You are receiving this because you authored the thread.Message ID: @.***>