自己搭建的ubuntu镜像源--求高手帮忙
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
自己搭建的ubuntu镜像源--求高手帮忙
我参照了:星星之火,可以燎原!------------完整的ubuntu镜像源/本地源/更新源/离线升级包!制作总结!
上面的方法搭建了一个ubuntu10.04的镜像源,觉得唯一的区别就是我用的是电子科大的源,我花了足足一个星期来下载,但是apt-mirror完了后,怎么也用不了!
这是我的
deb http://127.0.0.1/ubuntu/ lucid main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-backports main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-security main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-updates main restricted universe multiverse
然而:
sudo apt-get update
总是出现错误:
Ign http://127.0.0.1 lucid Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-backports Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-backports/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-backports/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-backports/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-backports/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-proposed Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-proposed/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-proposed/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-proposed/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-proposed/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-security Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-security/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-security/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-security/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-security/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-updates Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-updates/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-updates/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-updates/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-updates/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid Release
Ign http://127.0.0.1 lucid-backports Release
Ign http://127.0.0.1 lucid-proposed Release
Ign http://127.0.0.1 lucid-security Release
Ign http://127.0.0.1 lucid-updates Release
Ign http://127.0.0.1 lucid/main Packages
Ign http://127.0.0.1 lucid/restricted Packages
Ign http://127.0.0.1 lucid/universe Packages
Ign http://127.0.0.1 lucid/multiverse Packages
Ign http://127.0.0.1 lucid-backports/main Packages
Ign http://127.0.0.1 lucid-backports/restricted Packages
Ign http://127.0.0.1 lucid-backports/universe Packages
Ign http://127.0.0.1 lucid-backports/multiverse Packages
Ign http://127.0.0.1 lucid-proposed/main Packages
Ign http://127.0.0.1 lucid-proposed/restricted Packages
Ign http://127.0.0.1 lucid-proposed/universe Packages
Ign http://127.0.0.1 lucid-proposed/multiverse Packages
Ign http://127.0.0.1 lucid-security/main Packages
Ign http://127.0.0.1 lucid-security/restricted Packages
Ign http://127.0.0.1 lucid-security/universe Packages
Ign http://127.0.0.1 lucid-security/multiverse Packages
Ign http://127.0.0.1 lucid-updates/main Packages
Ign http://127.0.0.1 lucid-updates/restricted Packages
Ign http://127.0.0.1 lucid-updates/universe Packages
Ign http://127.0.0.1 lucid-updates/multiverse Packages
Ign http://127.0.0.1 lucid/main Packages
Ign http://127.0.0.1 lucid/restricted Packages
Ign http://127.0.0.1 lucid/universe Packages
Ign http://127.0.0.1 lucid/multiverse Packages
Ign http://127.0.0.1 lucid-backports/main Packages
Ign http://127.0.0.1 lucid-backports/restricted Packages
Ign http://127.0.0.1 lucid-backports/universe Packages
Ign http://127.0.0.1 lucid-backports/multiverse Packages
Ign http://127.0.0.1 lucid-proposed/main Packages
Ign http://127.0.0.1 lucid-proposed/restricted Packages
Ign http://127.0.0.1 lucid-proposed/universe Packages
Ign http://127.0.0.1 lucid-proposed/multiverse Packages
Ign http://127.0.0.1 lucid-security/main Packages
Ign http://127.0.0.1 lucid-security/restricted Packages
Ign http://127.0.0.1 lucid-security/universe Packages
Ign http://127.0.0.1 lucid-security/multiverse Packages
Ign http://127.0.0.1 lucid-updates/main Packages
Ign http://127.0.0.1 lucid-updates/restricted Packages
Ign http://127.0.0.1 lucid-updates/universe Packages
Ign http://127.0.0.1 lucid-updates/multiverse Packages
Err http://127.0.0.1 lucid/main Packages
403 Forbidden
Err http://127.0.0.1 lucid/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/multiverse Packages
403 Forbidden
Get:1 http://dl.google.com stable Release.gpg [191B]
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-zh_CN
Get:2 http://dl.google.com stable Release [1,310B]
Get:3 http://dl.google.com stable/main Packages [964B]
Get:4 http://archive.canonical.com lucid Release.gpg [198B]
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-zh_CN
Hit http://archive.canonical.com lucid Release
Hit http://archive.canonical.com lucid/partner Packages
Get:5 http://ppa.launchpad.net lucid Release.gpg [307B]
Ign http://ppa.launchpad.net/tualatrix/ppa/ubuntu/ lucid/main Translation-zh_CN
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid/main Packages
Fetched 2,970B in 16s (177B/s)
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/mai ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/res ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/uni ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/mul ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
E: Some index files failed to download, they have been ignored, or old ones used instead.
希望知道的说一下!
上面的方法搭建了一个ubuntu10.04的镜像源,觉得唯一的区别就是我用的是电子科大的源,我花了足足一个星期来下载,但是apt-mirror完了后,怎么也用不了!
这是我的
deb http://127.0.0.1/ubuntu/ lucid main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-backports main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-security main restricted universe multiverse
deb http://127.0.0.1/ubuntu/ lucid-updates main restricted universe multiverse
然而:
sudo apt-get update
总是出现错误:
Ign http://127.0.0.1 lucid Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-backports Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-backports/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-backports/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-backports/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-backports/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-proposed Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-proposed/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-proposed/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-proposed/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-proposed/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-security Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-security/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-security/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-security/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-security/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid-updates Release.gpg
Ign http://127.0.0.1/ubuntu/ lucid-updates/main Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-updates/restricted Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-updates/universe Translation-zh_CN
Ign http://127.0.0.1/ubuntu/ lucid-updates/multiverse Translation-zh_CN
Ign http://127.0.0.1 lucid Release
Ign http://127.0.0.1 lucid-backports Release
Ign http://127.0.0.1 lucid-proposed Release
Ign http://127.0.0.1 lucid-security Release
Ign http://127.0.0.1 lucid-updates Release
Ign http://127.0.0.1 lucid/main Packages
Ign http://127.0.0.1 lucid/restricted Packages
Ign http://127.0.0.1 lucid/universe Packages
Ign http://127.0.0.1 lucid/multiverse Packages
Ign http://127.0.0.1 lucid-backports/main Packages
Ign http://127.0.0.1 lucid-backports/restricted Packages
Ign http://127.0.0.1 lucid-backports/universe Packages
Ign http://127.0.0.1 lucid-backports/multiverse Packages
Ign http://127.0.0.1 lucid-proposed/main Packages
Ign http://127.0.0.1 lucid-proposed/restricted Packages
Ign http://127.0.0.1 lucid-proposed/universe Packages
Ign http://127.0.0.1 lucid-proposed/multiverse Packages
Ign http://127.0.0.1 lucid-security/main Packages
Ign http://127.0.0.1 lucid-security/restricted Packages
Ign http://127.0.0.1 lucid-security/universe Packages
Ign http://127.0.0.1 lucid-security/multiverse Packages
Ign http://127.0.0.1 lucid-updates/main Packages
Ign http://127.0.0.1 lucid-updates/restricted Packages
Ign http://127.0.0.1 lucid-updates/universe Packages
Ign http://127.0.0.1 lucid-updates/multiverse Packages
Ign http://127.0.0.1 lucid/main Packages
Ign http://127.0.0.1 lucid/restricted Packages
Ign http://127.0.0.1 lucid/universe Packages
Ign http://127.0.0.1 lucid/multiverse Packages
Ign http://127.0.0.1 lucid-backports/main Packages
Ign http://127.0.0.1 lucid-backports/restricted Packages
Ign http://127.0.0.1 lucid-backports/universe Packages
Ign http://127.0.0.1 lucid-backports/multiverse Packages
Ign http://127.0.0.1 lucid-proposed/main Packages
Ign http://127.0.0.1 lucid-proposed/restricted Packages
Ign http://127.0.0.1 lucid-proposed/universe Packages
Ign http://127.0.0.1 lucid-proposed/multiverse Packages
Ign http://127.0.0.1 lucid-security/main Packages
Ign http://127.0.0.1 lucid-security/restricted Packages
Ign http://127.0.0.1 lucid-security/universe Packages
Ign http://127.0.0.1 lucid-security/multiverse Packages
Ign http://127.0.0.1 lucid-updates/main Packages
Ign http://127.0.0.1 lucid-updates/restricted Packages
Ign http://127.0.0.1 lucid-updates/universe Packages
Ign http://127.0.0.1 lucid-updates/multiverse Packages
Err http://127.0.0.1 lucid/main Packages
403 Forbidden
Err http://127.0.0.1 lucid/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-backports/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-proposed/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-security/multiverse Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/main Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/restricted Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/universe Packages
403 Forbidden
Err http://127.0.0.1 lucid-updates/multiverse Packages
403 Forbidden
Get:1 http://dl.google.com stable Release.gpg [191B]
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-zh_CN
Get:2 http://dl.google.com stable Release [1,310B]
Get:3 http://dl.google.com stable/main Packages [964B]
Get:4 http://archive.canonical.com lucid Release.gpg [198B]
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-zh_CN
Hit http://archive.canonical.com lucid Release
Hit http://archive.canonical.com lucid/partner Packages
Get:5 http://ppa.launchpad.net lucid Release.gpg [307B]
Ign http://ppa.launchpad.net/tualatrix/ppa/ubuntu/ lucid/main Translation-zh_CN
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid/main Packages
Fetched 2,970B in 16s (177B/s)
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/mai ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/res ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/uni ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid/mul ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-bac ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-pro ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-sec ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
W: Failed to fetch http://127.0.0.1/ubuntu/dists/lucid-upd ... ackages.gz 403 Forbidden
E: Some index files failed to download, they have been ignored, or old ones used instead.
希望知道的说一下!
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
说明一下,我的路径是改正确了的.
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
为什么没有人啊!!!我是在网上查不了资料才问的!什么防火墙,apache设置,我都弄过了,诺大的一个论坛,为什么没有人回啊!!
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
哀,太伤心啦,自己顶一下.
- _shendu
- 帖子: 147
- 注册时间: 2010-09-17 14:16
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
看来还真是没人了.
--------->告诉你为什么他们不愿意.
--------->告诉你为什么他们不愿意.
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
Please someone help me; I am going MAD
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
后来我仔细想了一下,比如我的/var/www为根目录,按照skyx的方法,在下面建ubuntu文件夹,网上有说改权限的,但我试过没有用的.我打开浏览器,输入http://127.0.0.1,显示
It works!,但是输入:http://127.0.0.1/ubuntu,显示:
Forbidden
You don't have permission to access /ubuntu on this server.
Apache/2.2.14 (Ubuntu) Server at 127.0.0.1 Port 80
It works!,但是输入:http://127.0.0.1/ubuntu,显示:
Forbidden
You don't have permission to access /ubuntu on this server.
Apache/2.2.14 (Ubuntu) Server at 127.0.0.1 Port 80
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: 自己搭建的ubuntu镜像源--求高手帮忙
ubuntu目录下没有index.html之类的文件吧
试着在apache配置里允许dir listing
试着在apache配置里允许dir listing
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
还要说明一下,我搭建的是10.04的源,把它放在windows的盘上,用skyx那帖81楼的方法,不过实在不知哪里出了差错.
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
我觉得我应该把我搭建的全过程写下来:
PS:想在学校搭建一个源,供学校所有用ubuntu的同学更新之用.
借鉴skyx的:
1。安装相应软件
代码:
apt-get install apt-mirror
apt-get install apache2
=====================================================
这中间有一步非常重要:
因为我/var下没有那么多的空间,所以我分了一个80G的盘给它,具体路径是:
/media/backup/
我在下面建了一个文件夹:ubuntu
然后把/var/spool下的apt-mirror整个文件移到/media/backup/ubuntu/下,然后在spool下建立一个链接文件,
即:apt-mirror -> /media/backup/ubuntu/apt-mirror/
然后在/media/backup/ubuntu/apt-mirror/目录下
mirror/ skel/ var/
在mirror下有
ubuntu.uestc.edu.cn
=====================================================
2。配制镜像
代码:
gksu gedit /etc/apt/mirror.list
#-------------------------------------------------------------------
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main restricted universe multiverse
clean http://ubuntu.dormforce.net/ubuntu
#----------------------------------------------------------------------------------
3。进行镜像
代码:
sudo apt-mirror
4。接下来,配制镜像源/本地源/更新源/离线升级包,颜色部分根据你镜像的源进行修改即可,如果只同步一个,就只执行其中一行即可
引用:
sudo ln -s /var/spool/apt-mirror/mirror/ubuntu.uestc.edu.cn/ubuntu/ /var/www/ubuntu
接下来大家都知道了吧.
PS:想在学校搭建一个源,供学校所有用ubuntu的同学更新之用.
借鉴skyx的:
1。安装相应软件
代码:
apt-get install apt-mirror
apt-get install apache2
=====================================================
这中间有一步非常重要:
因为我/var下没有那么多的空间,所以我分了一个80G的盘给它,具体路径是:
/media/backup/
我在下面建了一个文件夹:ubuntu
然后把/var/spool下的apt-mirror整个文件移到/media/backup/ubuntu/下,然后在spool下建立一个链接文件,
即:apt-mirror -> /media/backup/ubuntu/apt-mirror/
然后在/media/backup/ubuntu/apt-mirror/目录下
mirror/ skel/ var/
在mirror下有
ubuntu.uestc.edu.cn
=====================================================
2。配制镜像
代码:
gksu gedit /etc/apt/mirror.list
#-------------------------------------------------------------------
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main restricted universe multiverse
#deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main restricted universe multiverse
clean http://ubuntu.dormforce.net/ubuntu
#----------------------------------------------------------------------------------
3。进行镜像
代码:
sudo apt-mirror
4。接下来,配制镜像源/本地源/更新源/离线升级包,颜色部分根据你镜像的源进行修改即可,如果只同步一个,就只执行其中一行即可
引用:
sudo ln -s /var/spool/apt-mirror/mirror/ubuntu.uestc.edu.cn/ubuntu/ /var/www/ubuntu
接下来大家都知道了吧.
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
回复 lainme
我搭建的不是第一种啊,是用在网上的,skyx的第二个是没有空格的.
---谢谢你啊,好像只有你在回复我.
我搭建的不是第一种啊,是用在网上的,skyx的第二个是没有空格的.
---谢谢你啊,好像只有你在回复我.
- linycobie
- 帖子: 149
- 注册时间: 2010-06-16 15:40
Re: 自己搭建的ubuntu镜像源--求高手帮忙
回复: lainme
改了,果然不出我所料,出现错误,
E: Malformed line 1 in source list /etc/apt/sources.list (absolute dist)
看来是不能加空格的.
改了,果然不出我所料,出现错误,
E: Malformed line 1 in source list /etc/apt/sources.list (absolute dist)
看来是不能加空格的.