我试图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 中安装?
更新:
您的 apt 包管理器有问题,您需要运行:
检查损坏的安装并清理您的 apt 包管理器。
您应该考虑重新启动计算机(取决于 apt 修复的内容)。
现在你可以选择像这样使用 tracepath 包(预装在 linux 中):
或者使用以下命令安装 Universe 包 traceroute 和 net-tools: