1,问题描述:virtualbox 安装 ubuntu12.04,想固定ip地址,修改 /etc/network/interfaces文件
auto eth1
iface eth1 inet static
address 192.168.56.100
netmask 255.255.255.0
gateway 192.168.56.1
重启网络时报错:/etc/init.d/networking restart
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything
2,解决办法,参考官方文档:https://help.ubuntu.com/12.04/serverguide/network-configuration.html#name-resolution
1),把/etc/resolv.conf 文件拷贝到目录:/run/resolvconf/ 下
2),删除/etc/resolv.conf
3),建立软连接:ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
还可以删除(此方法没试过):
apt-get remove resolvconf

在VirtualBox中安装Ubuntu12.04后,尝试固定IP地址时遇到网络配置问题,报错‘/etc/resolv.conf isn't a symlink, not doing anything’。解决方案包括按照官方文档操作:将/etc/resolv.conf文件复制到/run/resolvconf/,删除原有的resolv.conf文件,并创建到/run/resolvconf/resolv.conf的软链接。"
109230884,8460978,行为金融学与传统金融学的碰撞,"['金融学', '行为经济学', '投资策略', '市场异象', '心理偏差']
最低0.47元/天 解锁文章
876

被折叠的 条评论
为什么被折叠?



