安装 Ubuntu, 首先当然要下载光盘(邮寄除外). 但光盘下载服务器远在欧洲, 国内的镜像又不多. 如果下载的是刚出的版本或者daily版, 就只能从官方下载了. 这样的话下载很慢, 很耗时.
此时就可以使用jigdo, 一个用来下载Debian安装光盘的软件.
原理:
jigdo 从源里下载软件包, 然后与一个"模板"文件组装, 生成ISO文件.
而国内快速的源是很多的.
使用方法很简单:
1) 安装
代码: 全选
sudo aptitude install jigdo-file
以 7.10 i386 Alternate CD 为例, 进入下载页面 http://releases.ubuntu.com/gutsy/
将这两个文件
ubuntu-7.10-alternate-i386.template
ubuntu-7.10-alternate-i386.jigdo
下载下来. 因为很小(131K + 5.2M), 所以不会用很长时间.
3) 下载
为了整洁, 建一个目录
代码: 全选
mkdir gutsy && cd gutsy
然后开始下载
代码: 全选
jigdo-lite ubuntu-7.10-alternate-i386.jigdo
代码: 全选
-----------------------------------------------------------------
If you already have a previous version of the CD you are
downloading, jigdo can re-use files on the old CD that are also
present in the new image, and you do not need to download them
again. Mount the old CD ROM and enter the path it is mounted under
(e.g. `/mnt/cdrom').
Alternatively, just press enter if you want to start downloading
the remaining files.
Files to scan:
因为我们是首次下载, 所以直接回车即可.
代码: 全选
-----------------------------------------------------------------
The jigdo file refers to files stored on Ubuntu mirrors. Please
choose an Ubuntu mirror as follows: Either enter a complete URL
pointing to a mirror (in the form
`http://archive.ubuntu.com/archive/'), or enter any regular expression
for searching through the list of mirrors: Try a two-letter
country code such as `de', or a country name like `United
States', or a server name like `sunsite'.
Ubuntu mirror [http://debian.ustc.edu.cn/ubuntu/]:
不必担心找不到太新的文件. 如果这个源没找到需要的文件, 就会自动到官方源下载.
然后就是下载过程.........
如果一切顺利, jigdo 在最后会提示校检成功. 而 ISO 则乖乖地躺在当前目录下.
*) 关于续传
jigdo 会在下载完一定数量的文件后(默认是10个), 自动将文件写到一个 tmp 文件中. 其实那个文件也是一个 ISO. 续传的话只要挂载那个 tmp 文件, 然后在第一步指定扫描目录即可.
**) 参考文章
http://dirac.org/linux/debian/jigdo/deb ... .9.50.html
http://www-128.ibm.com/developerworks/c ... ian/jigdo/