APT源服务器没有,Contents-i386.gz 文件等等

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
suitq
帖子: 22
注册时间: 2008-09-25 13:59

APT源服务器没有,Contents-i386.gz 文件等等

#1

帖子 suitq » 2008-10-21 19:24

suitq 写了:在官方地址:http://archive.ubuntu.com/ubuntu/dists/hardy/就有下列目录
Contents-amd64.gz 20-Sep-2008 05:05 14M
Contents-i386.gz 20-Sep-2008 05:19 14M
Release 20-Sep-2008 02:13 64K
Release.gpg 20-Sep-2008 02:13 189
main/ 08-Jan-2008 16:03 -
multiverse/ 08-Jan-2008 18:03 -
restricted/ 08-Jan-2008 18:03 -
universe/

而我自己做的APT源服务就没有Contents-i386.gz 文件等
http://xxxxxx/ubuntu/dists/hardy/就有下列目录
Contents-amd64.gz 20-Sep-2008 12:05 14M
Release 20-Sep-2008 09:13 64K
Release.gpg 20-Sep-2008 09:13 189
main/ 21-Oct-2008 14:56 -
multiverse/ 21-Oct-2008 11:29 -
restricted/ 21-Oct-2008 11:29 -
universe/ 21-Oct-2008 11:29
我的APT源配置文件:
############# config ##################
#
# set base_path /var/spool/apt-mirror
#
# if you change the base path you must create the directories below with write privlages
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set nthreads 20
# set _tilde 0
#
############# end config ##############

deb http://archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu

data@digger:/etc/apt$


为什么没有I386等等。。。
要如何配置才能镜像完整官方I386的,不想要AMD的,现在发现全是AMD的。


最后文件大小是:
data@digger:/var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu$ du -sh dists pool/
88M dists
54G pool
头像
den
帖子: 196
注册时间: 2007-06-15 21:19
来自: 上海

Re: APT源服务器没有,Contents-i386.gz 文件等等

#2

帖子 den » 2008-10-21 20:40

在mirror.list里面加上:

deb-i386 http://archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse

另外如果不是有很多人用你的源更新source code,就把deb-src的都删了吧,节省很多空间。
/****************************************************
/* Work hard, play harder.
/****************************************************
头像
den
帖子: 196
注册时间: 2007-06-15 21:19
来自: 上海

Re: APT源服务器没有,Contents-i386.gz 文件等等

#3

帖子 den » 2008-10-21 20:44

另外你的系统是64位的吧?apt-mirror默认会按照你的系统来做镜像,所以你下的都是64位的。

如果只想做32位的镜像源,就在mirror.list前面加一句set defaultarch i386,这样我前面帖子里deb-i386的就不需要再加了。
/****************************************************
/* Work hard, play harder.
/****************************************************
suitq
帖子: 22
注册时间: 2008-09-25 13:59

Re: APT源服务器没有,Contents-i386.gz 文件等等

#4

帖子 suitq » 2008-10-22 8:46

怎么按照你的设置,现在有i386文件


如何配置,64位,32位都能用的
头像
den
帖子: 196
注册时间: 2007-06-15 21:19
来自: 上海

Re: APT源服务器没有,Contents-i386.gz 文件等等

#5

帖子 den » 2008-10-26 19:11

举个例子:

代码: 全选

############# config ##################
#
# set base_path    /var/spool/apt-mirror
#
# if you change the base path you must create the directories below with write privlages
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  <running host architecture>
set defaultarch i386
set nthreads    5
set _tilde      0
set _autoclean  1
#
############# end config ##############

deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted universe multiverse

deb-amd64 http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-amd64 http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu/
clean http://archive.ubuntu.org.cn/ubuntu-cn/
/****************************************************
/* Work hard, play harder.
/****************************************************
suitq
帖子: 22
注册时间: 2008-09-25 13:59

Re: APT源服务器没有,Contents-i386.gz 文件等等

#6

帖子 suitq » 2008-10-27 9:27

谢谢。。。。。。。。。。。。。。。。。。。
回复