我去年安装了Ubuntu 16.04和Windows 10双系统,目前总有一个系统无法上网。我已经在win10和BIOS里面把网卡唤醒关掉了。
之前Ubuntu系统能够正常连接有线,可是用完Ubuntu之后,转回win10就会出现有线网无法使用问题。可是在win命令行运行以下命令之后就能正常上网了。
代码: 全选
@Echo on
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
del %
代码: 全选
make -C src/ install
make[1]: Entering directory '/home/luke/Downloads/r8168/src'
make -C /lib/modules/4.4.1-040401-generic/build SUBDIRS=/home/luke/Downloads/r8168/src INSTALL_MOD_DIR=kernel/drivers/net/ethernet/realtek modules_install
make[2]: Entering directory '/lib/modules/4.4.1-040401-generic/build'
make[2]: *** No rule to make target 'modules_install'. Stop.
make[2]: Leaving directory '/lib/modules/4.4.1-040401-generic/build'
Makefile:103: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/luke/Downloads/r8168/src'
Makefile:54: recipe for target 'install' failed
make: *** [install] Error 2