Reading package lists... Done
Building dependency tree
Reading state information... Done
net-tools is already the newest version (1.60-26ubuntu1).
The following NEW packages will be installed:
traceroute
0 upgraded, 1 newly installed, 0 to remove and 279 not upgraded.
Need to get 46.4 kB of archives.
After this operation, 172 kB of additional disk space will be used.
Err:1 http://in.archive.ubuntu.com/ubuntu xenial/universe i386 traceroute i386 1:2.0.21-1
Could not connect to 172.16.0.1:8888 (172.16.0.1). - connect (111: Connection refused)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/t/traceroute/traceroute_2.0.21-1_i386.deb Could not connect to 172.16.0.1:8888 (172.16.0.1). - connect (111: Connection refused)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
答案1
要安装该traceroute
包,请在命令行输入以下命令:
sudo apt install traceroute
对我来说,这个方法很好用。如果你不适用,请检查你的网络是否有问题,并确保先更新其他内容,如下所示:
sudo apt update
其次是
sudo apt upgrade
然后,尝试再次安装 traceroute。
答案2
您是否使用了代理或防火墙?在我看来,您输入了正确的apt install ....
代码,但连接本身并未建立。