パッケージnet-toolsが見つからないという問題を解決します



Solve Problem Unable Locate Package Net Tools



現在、ifconfigコマンドはLinuxで実行され、コマンドは無効であり、ネットワークパッケージがインストールされて実行されます。sudo apt-get update with sudo apt install net-tools次のエラーを報告してください:unable to locate package net-toolsそこにあると判断できますはソースsources.listの問題ですが、インターネットから多くのソースを見つけ、問題を解決できず、最終的に次のソースを見つけて問題を解決します。
Ubuntuバージョン:17.04
ソースを入力してください:sudo vi sources.list、sources.listの次のコンテンツを置き換えて保存します

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

sources.listを置き換えた後、再実行sudo apt-get update with sudo apt install net-tools次に、ifconfigを実行できます。完璧な解決策! ! !