安装网卡驱动时的一些报错 分类: ubuntu学习 2014-09-25 15:12 369人阅读 评论(0) 收藏
新装的ubuntu13.04,因为需要装网卡驱动,所以有些报错整理下
1,locale.Error: unsupported locale setting
解决办法:sudo echo "export LC_ALL=en_US.UTF-8" >> /home/cloud/.bash_profile
然后退出后重新登录
查看:http://www.aslibra.com/blog/read.php/1767.htm
2,Makefile:129: *** Compiler not found. Stop.
查看驱动中的Makefile文件,好像和‘kgcc gcc cc’之类的有关
解决办法:sudo apt-get install gcc
3,有的ubuntu没有设置网络,所以就算设置了/etc/network/interfaces后,还是有的不能联网
connect: network is unreachable
我所有设置都ok,后来对比其它机子,发现运行$route时,正常情况下为:
cloud@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.1.102.253 0.0.0.0 UG 0 0 0 br-origin
localnet * 255.255.255.0 U 0 0 0 br-origin
但是本机少了default。后来百度找到添加默认网关的方法,解决办法:
#route add default gw 10.1.102.253
有时还是上不了网,后来在/etc/resolv.conf中添加:
nameserver 114.114.114.114
保存后重启网络服务。
有服务器重启后不能联网,发现此配置文件中DNS又没了,后来找到解决方法:
在/etc/resolvconf/resolv.conf.d/head写上dns信息保存
版权声明:本文为博主原创文章,未经博主允许不得转载。