Traceroute:无效选项 - 'T' (Ubuntu 19.10)

Traceroute:无效选项 - 'T' (Ubuntu 19.10)

我正在尝试安装traceroute:

$ sudo apt-get install inetutils-traceroute 
$ traceroute --version
traceroute (GNU inetutils) 1.9.4
Copyright (C) 2015 Free Software Foundation, Inc.

在 Ubuntu 19.10 上通过 TCP 工作,但它给出了:

$ traceroute -T google.com
traceroute: invalid option -- 'T'
Try 'traceroute --help' or 'traceroute --usage' for more information.

自从这篇文章以来很奇怪:

wget和curl可以正常工作,但ping不通

说这应该是一个有效的选择。

但我没有找到-T在我的系统/traceroute 版本上:

$ traceroute --help
Usage: traceroute [OPTION...] HOST
Print the route packets trace to network host.

  -f, --first-hop=NUM        set initial hop distance, i.e., time-to-live
  -g, --gateways=GATES       list of gateways for loose source routing
  -I, --icmp                 use ICMP ECHO as probe
  -m, --max-hop=NUM          set maximal hop count (default: 64)
  -M, --type=METHOD          use METHOD (`icmp' or `udp') for traceroute
                             operations, defaulting to `udp'
  -p, --port=PORT            use destination PORT port (default: 33434)
  -q, --tries=NUM            send NUM probe packets per hop (default: 3)
      --resolve-hostnames    resolve hostnames
  -t, --tos=NUM              set type of service (TOS) to NUM
  -w, --wait=NUM             wait NUM seconds for response (default: 3)
  -?, --help                 give this help list
      --usage                give a short usage message
  -V, --version              print program version

工作正常没有 -T

$ traceroute google.com
traceroute to google.com (216.58.213.206), 64 hops max
  1   x.x.x.x  8.310ms  8.447ms  8.461ms 
   ...
 10   x.x.x.x  22.349ms  18.459ms  21.743ms 

有什么建议么??

答案1

您需要安装traceroute提供现代traceroute命令的软件包:

sudo apt install traceroute
sudo apt remove inetutils-traceroute

或者 - 无需删除inetutils-traceroute- 您可以用于在版本sudo update-alternatives --config traceroute之间切换 。traceroute

相关内容