1. 输入 sudo apt-get update 2. 输入 sudo apt upgrade 下载完成后就可以输入sudo apt install net-tools 最后正常使用ifconfig.