traceroute 未安装在 ubuntu 18.04 LTS 上

traceroute 未安装在 ubuntu 18.04 LTS 上

我尝试将其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).

然后我跟着这个关联。但还是没有安装成功,并显示,

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).

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

答案1

更新:

您的 apt 包管理器遇到问题,您需要运行:

sudo apt install -f
sudo apt autoclean

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

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

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

tracepath google.com

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

sudo apt install -y net-tools traceroute

相关内容