问题描述:
Win10 Ubuntu18.04 环境下ifconfig服务没有安装,出现类似 Commend ‘xxxxxx’ not found,but can be installed with…… 错误
~$ ifconfig
一些解决方法(我通过方法四问题得以解决)
-
方法一:
~$ sudo apt install net-tools
-
方法二:
~$ sudo apt install net-tools -y
有人用这个方法成功了但是我依然不可
-
方法三:
~$ sudo /sbin/dhclient
网上有说先使用这个命令再使用ifconfig,我的如下图:
-
方法四:
1.使用以下命令更新资源~$ sudo apt-get update
2.使用以下命令升级系统软件(此过程可能时间较长,需耐心等待)~$ sudo apt-get upgrade
3.安装net-tools(忘记截图啦……)~$ sudo apt install net-tools
4.正常使用命令
~$ifconfig
结语:
okok,今天的教程就是这样啦,希望可以帮助到大家,如果有帮助的话,不忘点个赞哟~