随笔 - 298  文章 - 377  trackbacks - 0
<2016年11月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用链接

留言簿(34)

随笔分类

随笔档案

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜

sources.list (/etc/apt/sources.list)
deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 CD Binary-1 20090214-16:29]/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

#以下是后来添加的
deb ftp://ftp.debian.org/debian/ lenny main contrib non-free
deb-src ftp://ftp.debian.org/debian/ lenny main contrib non-free


修改后执行:
#apt-get update
#apt-get upgrade
IP Address (/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
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.18.4
netmask 255.255.255.0
gateway 192.168.18.1
DNS (/etc/resolve.conf)
domain localdomain
search localdomain
nameserver 192.168.18.1
 

修改好后可能需要执行:
#/etc/init.d/networking restart
甚至是重启。

posted on 2009-06-10 16:03 聂文龙 阅读(3184) 评论(2)  编辑 收藏 引用

FeedBack:
# re: Debian(5.0) lenny中配置源(sources.list)ip地址,dns 2009-06-10 16:10 聂文龙
My Debian 5.0 sources.list
 
# deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 NETINST Binary-1 20090214-16:03]/ lenny main

deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main

deb http://ftp.us.debian.org/debian/ lenny contrib
deb-src http://ftp.us.debian.org/debian/ lenny contrib

deb http://ftp.us.debian.org/debian/ lenny non-free
deb-src http://ftp.us.debian.org/debian/ lenny non-free

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
  回复  更多评论
  
# re: Debian(5.0) lenny中配置源(sources.list)ip地址,dns 2009-06-10 16:34 聂文龙

目前debian lenny 5.0速度最快最稳定的源 - [系统安装]


在终端执行命令

备份当前的源列表,以便日后需要时恢复:

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

编辑源列表

Ubuntu 和debian 中执行:
gedit /etc/apt/sources.list

Kubuntu 中执行:
kdesu kate /etc/apt/sources.list

Xubuntu 中执行:
gksu mousepad /etc/apt/sources.list

适用于所有版本:
sudo vim /etc/apt/sources.list

从以下各服务器列表内容中选择一段替换文件中的所有内容,一般来说加入一至两组即可,加多了影响更新速度。为防止非官方源中软件包不全的问题,请在sources.list文件中尾部添加一组官方源。
# deb file:/cdrom/ etch main contrib

#deb http://mirrors.cn99.com/debian/ lenny main non-free contrib
#deb-src http://mirrors.cn99.com/debian/ lenny main non-free contrib
 
deb http://mirrors.163.com/debian stable contrib main non-free
deb-src http://mirrors.163.com/debian stable contrib main non-free

deb http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib
deb-src http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib         
deb http://debian.ustc.edu.cn/debian/ lenny main non-free contrib
deb-src http://debian.ustc.edu.cn/debian/ lenny main non-free contrib

deb http://ftp.tw.debian.org/debian lenny main 

deb-src http://ftp.tw.debian.org/debian lenny main

以上是目前debian lenny 速度稳定的源

编辑保存后执行 apt-get update    apt-get upgrade    apt-get dist-upgrade

  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理