traceroute 未安装在 ubuntu 18.04 LTS 上

mef*_*man 3 networking ip-address traceroute

我试图traceroute用于我的网络项目。但是每当我尝试安装traceroute它时都会显示

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).
Run Code Online (Sandbox Code Playgroud)

然后我点击了这个链接。但它再次没有成功安装并显示,

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).
Run Code Online (Sandbox Code Playgroud)

现在我的问题是,如何traceroute在我的 ubuntu 18.04 中安装?

nic*_*3ts 7

更新:

你的 apt 包管理器有问题,你需要运行:

sudo apt install -f
sudo apt autoclean
Run Code Online (Sandbox Code Playgroud)

检查损坏的安装并清理您的 apt 包管理器。

您应该考虑重新启动计算机(取决于 apt 修复的内容)。

现在您可以选择使用 tracepath 包(预装在 linux 中),如下所示:

tracepath google.com
Run Code Online (Sandbox Code Playgroud)

或者使用以下命令安装 Universe 包 traceroute 和 net-tools:

sudo apt install -y net-tools traceroute
Run Code Online (Sandbox Code Playgroud)