LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1620|回复: 16

Debian安装时,能不能自己设置安装源?

[复制链接]
发表于 2009-9-26 06:46:10 | 显示全部楼层 |阅读模式
现在默认的两个源太慢了,我想设成163来安装,不知道行不行

另:

上一次安装时,可能是安装grub时出了问题,现在开机只显示grub
我尝试以下操作:
sh:grub> root (hd0,1)
sh:grub> setup(hd0)
error:unknown command 'setup'

kernel /boot/vmlinuz-2.6.30-1-686
error:unknown command 'kernel'
发表于 2009-9-26 11:25:03 | 显示全部楼层

参考一下挑一下你觉得好的源吧

#
# deb cdrom:[Debian GNU/Linux 5.0.3 _Lenny_ - Official i386 CD Binary-1 20090905-08:23]/ lenny main

deb cdrom:[Debian GNU/Linux 5.0.3 _Lenny_ - Official i386 CD Binary-1 20090905-08:23]/ lenny main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ lenny/updates main
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ lenny/updates main

# Line commented out by installer because it failed to verify:
#deb http://volatile.debian.org/debian-volatile lenny/volatile main
# Line commented out by installer because it failed to verify:
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

#=============================================
#deb http://ftp.de.debian.org/debian sid main contrib non-free

#deb http://ftp.de.debian.org/debian experimental main

#deb http://ftp.de.debian.org/debian squeeze main non-free



deb http://ftp.de.debian.org/debian stable main contrib non-free

deb http://ftp.de.debian.org/debian stable-proposed-updates main contrib non-free

deb http://ftp.de.debian.org/debian lenny main non-free contrib

deb http://ftp.de.debian.org/debian lenny-proposed-updates main non-free contrib

#deb http://ftp.de.debian.org/debian testing main non-free contrib

#deb http://ftp.de.debian.org/debian testing-proposed-updates main non-free contrib

#=============================================

deb http://security.debian.org/debian-security lenny/updates main non-free contrib

#deb http://security.debian.org/debian-security stable/updates main non-free contrib

#=============================================

deb http://news.u-picardie.fr/debian lenny main non-free contrib

deb http://news.u-picardie.fr/debian lenny-proposed-updates main non-free contrib

#deb http://news.u-picardie.fr/debian testing contrib non-free

#deb http://news.u-picardie.fr/debian testing-proposed-updates main non-free contrib

#============================================================

deb http://mirrors.163.com/debian/ lenny   contrib non-free

deb http://ftp.se.debian.org/debian/ lenny contrib non-free

deb http://ftp.se.debian.org/mirror/debian/ lenny  contrib non-free

deb http://ftp.se.debian.org/mirror/debian/ stable contrib non-free
#===================================================================

# 多媒体相关(stable, testing):

deb ftp://ftp.debian-multimedia.org lenny main

deb ftp://ftp.debian-multimedia.org testing main

#===================================================================

# 电驴 aMule(stable, testing):
deb http://www.vollstreckernet.de/debian/ stable amule-stable wx upnp
#deb http://www.vollstreckernet.de/debian/ testing amule-stable wx
#Wine源===========================================================

#deb http://www.backports.org/debian/ lenny-backports main

#deb http://www.lamaresh.net/apt lenny main

#deb http://www.lamaresh.net/apt squeeze main

#UBUNTU源=============================================

#更新MPlayer:
#Ubuntu 9.04 Jaunty
#deb http://ppa.launchpad.net/rvm/mplayer/ubuntu jaunty main
#Ubuntu 8.10 Intrepid
#deb http://ppa.launchpad.net/rvm/mplayer/ubuntu intrepid main
#Ubuntu 8.04 Hardy
#deb http://ppa.launchpad.net/rvm/mplayer/ubuntu hardy main

#添加公钥:
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 85c8674a3706facd12503abc015a66e603e02400
#---------------------------------------------------------------
#更新SMPlayer 0.6.8:
#Ubuntu 9.04 Jaunty
#deb http://ppa.launchpad.net/rvm/smplayer/ubuntu jaunty main

#Ubuntu 8.10 Intrepid
#deb http://ppa.launchpad.net/rvm/smplayer/ubuntu intrepid main

#Ubuntu 8.04 Hardy
#deb http://ppa.launchpad.net/rvm/smplayer/ubuntu hardy main

#添加公钥:
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys e23a3c5344ae497c2fee7b0ba7e13d78e4a4f4f4
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-26 11:57:00 | 显示全部楼层
不是安装好后选择更新源的问题,
我要的是在安装系统时自己设置安装源的方法,系统自带的两个源太慢了
回复 支持 反对

使用道具 举报

发表于 2009-9-26 12:15:07 | 显示全部楼层
可以,甚至使用Debian盘安装Ubuntu也是可以滴。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-26 12:23:16 | 显示全部楼层
Post by defrag;2030510
可以,甚至使用Debian盘安装Ubuntu也是可以滴。。。


怎么设置啊?
回复 支持 反对

使用道具 举报

发表于 2009-9-26 12:28:42 | 显示全部楼层
Ctrl+Alt+F2
  1. # vi /etc/apt/sources.list                  #使用nano也可以
  2. deb http://mirror.163.com/debian/ stable main contrib non-free
  3. # cp /etc/apt/sources.list /target/etc/apt
复制代码

只是安装盘得是那种Business Card(明信片光盘)映像,用5毛钱的劣质盘即可。。。
http://www.debian.org/CD/netinst/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-26 12:29:56 | 显示全部楼层
Post by defrag;2030514
  1. vi /etc/apt/sources.list                  #使用nano也可以
  2. cp /etc/apt/sources.list /target/etc/apt
复制代码


安装到哪一步时这么做?
回复 支持 反对

使用道具 举报

发表于 2009-9-26 12:35:12 | 显示全部楼层
要选择Expert安装,在分区完成后做,然后设置APT。。。。
回复 支持 反对

使用道具 举报

发表于 2009-9-26 17:23:48 | 显示全部楼层
在出现选择源的那一步就本来就可以选择自己输入的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-26 17:48:46 | 显示全部楼层
在出现源选择和分区完成后都不行
/etc下根本就没有apt文件夹,甚至还没有vi命令
在出现源选择时,还没有/target文件夹

现在还是在用默认的anheng安装基本系统,看基本系统安装完成后能不能修改
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表