解决unable to locate package net-tools
Article Directory
This article is reproduced in the solution to unable to locate package net-tools , if it is helpful, please follow and like the original author.
Today I want to execute the ifconfig command in linux, the command is invalid, and then install the network package, execute sudo apt-get update
and sudo apt install net-tools
, the following error is reported: unable to locate package net-tools
, I can confirm that there is a problem with my source sources.list, but I have found a lot of sources on the Internet, but I have not been able to solve the problem. Finally found the source below which solved the problem.
ubuntu version: 17.04
Enter the source: sudo vi sources.list
, replace sources.list
the content in the following content, and save
deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
After sources.list is replaced, re-execute sudo apt-get update
and sudo apt install net-tools
, and then it can be executed ifconfig
. Perfect solution! ! !