由于需要下载“traceroute”来完成一些工作,我尝试使用“sudo apt-get install”下载软件包。在网上查找后,我发现我可能必须更新软件,但这也不起作用。有什么想法吗?
ubuntu@ubuntu:~$ sudo apt-get install traceroute
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package traceroute is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'traceroute' has no installation candidate
ubuntu@ubuntu:~$ sudo apt-get install update
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package update
PS inetutils-traceroute 不起作用,因此我需要另一个答案才能下载该包。
答案1
首先运行以下命令来更新存储库,如果提示按 y/n,请按 y:
sudo apt-get update
之后运行此命令来更新现有软件,如果提示按 y/n,请按 y:
sudo apt-get upgrade
然后使用下面的命令安装 traceroute,再次,如果提示按 y/n,请按 y:
sudo apt-get install inetutils-traceroute