ubuntu网络配置&&ubuntu apt-get错误解决办法
2013-12-01 09:26
471 查看
网络配置:
方式1:网卡通过DHCP自动获取IP地址
$ sudo gedit /etc/network/interfaces
# 修改文件/etc/network/interfaces如下文
#-------------------------------------------------------------------------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# The loopback network interface(配置环回口)
auto lo # 开机自动激lo接口
iface lo inet loopback # 配置lo接口为环回口
# The primary network interface (配置主网络接口)
auto eth0 #开机自动激活eth0接口
iface eth0 inet dhcp #配置eth0接口为DHCP自动获取
#-------------------------------------------------------------------------------
$ sudo /etc/init.d/networking restart # 重启网络
来自http://www.linuxidc.com/Linux/2010-03/24820.htm
apt-get错误
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
方式1:网卡通过DHCP自动获取IP地址
$ sudo gedit /etc/network/interfaces
# 修改文件/etc/network/interfaces如下文
#-------------------------------------------------------------------------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# The loopback network interface(配置环回口)
auto lo # 开机自动激lo接口
iface lo inet loopback # 配置lo接口为环回口
# The primary network interface (配置主网络接口)
auto eth0 #开机自动激活eth0接口
iface eth0 inet dhcp #配置eth0接口为DHCP自动获取
#-------------------------------------------------------------------------------
$ sudo /etc/init.d/networking restart # 重启网络
来自http://www.linuxidc.com/Linux/2010-03/24820.htm
apt-get错误
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
相关文章推荐
- ubuntu更新apt-get update时的索引文件获取错误解决办法
- Ubuntu中apt-get安装或更新软件错误的解决办法
- ubuntu 使用sudo apt-get update 出现 被配置多次导致无法升级错误解决方法
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- sudo apt-get install openssh-server时提示需要安装1:6.6p1-2ubuntu1的解决办法(图文详解)
- tomcat 5.5 Cannot create JDBC driver of class '' for connect URL 'null' 配置数据源错误解决办法
- Ubuntu下的Ubuntu虚拟机--源配置问题:apt-get update 显示could not resolve 'mirrors.163.com'
- "网络适配器本地连接没有有效ip地址配置"错误的解决办法
- windows 2008初体验常见问题: 无线网络"没有正确配置为使用IP协议" 错误解决办法
- ubuntu 使用apt-get install sqlite3 出现问题的解决办法
- apt-get "Segmentation faultsts ... x%":升级Ubuntu9.04到10.04中的错误
- linux下出现ping:unknown host www.baidu.com问题时的解决办法——ubuntu下局域网络的配置
- [转]ubuntu apt错误解决办法
- windows 2008初体验常见问题: 无线网络"没有正确配置为使用IP协议" 错误解决办法
- apt-get安装软件Unable to locate package错误解决办法
- Ubuntu中sudo apt-get update很慢解决办法
- ubuntu下sudo apt-get update Sources 404 Not Found [IP: 91.189.92.200 80]解决办法
- Ubuntu系统下eclipse配置mapreduce插件常见错误和解决办法汇总
- ubuntu 14.04LTS apt-get update时出现错误解决
- Microsoft VBScript 运行时错误 (0x800A0046) 没有权限: 'GetObject' /localstart.asp, 第 40 行 错误解决办法