Ubuntu
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.
自從這篇文章以來很奇怪:
說這應該是一個有效的選擇。
但是我在我的系統/版本的traceroute上找不到**-T**:
$ 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
有什麼建議麼??
您需要安裝
traceroute
提供現代traceroute
命令的軟體包:sudo apt install traceroute sudo apt remove inetutils-traceroute
或者 - 無需刪除
inetutils-traceroute
- 您可以使用在版本sudo update-alternatives --config traceroute
之間切換 。traceroute