当我们安装好Linux后,因为里面有很多功能服务没有安装(如ifconfig、vsftpd)
我们就会需要安装来使用,系统需要源索引的更新或者升级。
原因:
/etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引不是最新,
他们指向的数据,标识着这台源服务器上有哪些软件可以安装使用。
解决方法:
利用apt-get update更新 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,
并读取软件列表,然后保存在本地电脑
使用ifconfig查看网络接口配置,ficonfig
~$ ifconfig
系统提示需要安装 net-tools,sudo apt install net-tools
~$ sudo apt install net-tools
Linux系统需要更新apt的资源列表, sudo apt-get update
~$ sudo apt-get update
Linux系统apt资源列表更新完成后,重新执行安装,sudo apt install net-tools
~$ sudo apt install net-tools
使用ifconfig查看网络接口配置,ficonfig
~$ ifconfig