如何使用 Jigdo 下载 Debian 历史版本镜像
后知后觉 暂无评论

现在常见的 Linux 发行版都自己的发布规律,官网一般提供下载的都是最新主线版本,而历史版本的安装镜像都会被下架或者收藏。

例如 Debian 的历史版本就会被归档到 https://cdimage.debian.org/cdimage/archive/ 中。

但是一些历史悠久的版本就会被清理,只剩下 Jigdo 镜像模板,而没有完整的镜像文件。

获取模板

首先通过包管理器安装 Jigdo,如果是 Windows 系统可以在项目主页下载构建包,使用方法一致。

sudo apt install jigdo-file

以 Debian 8.0 版本为例,首先进入版本归档目录,以 x64 架构为例,获取目标版本的模板和清单文件:

wget https://cdimage.debian.org/cdimage/archive/8.0.0/amd64/jigdo-cd/debian-8.0.0-amd64-netinst.jigdo
wget https://cdimage.debian.org/cdimage/archive/8.0.0/amd64/jigdo-cd/debian-8.0.0-amd64-netinst.template

下载镜像

然后使用 Jigdo 指定模板进行下载所需资源并构建镜像。

jigdo-lite debian-8.0.0-amd64-netinst.jigdo

然后会弹出提示信息:

Jigsaw Download "lite"
Copyright (C) 2001-2009  |  jigdo@
Richard Atterer          |  atterer.org
Copyright (C) 2016-2021
Steve McIntyre <93sam@debian.org>

-----------------------------------------------------------------
Images offered by `debian-8.0.0-amd64-netinst.jigdo':
  1: 'Debian GNU/Linux 8.0.0 "Jessie" - Official amd64 NETINST Binary-1 20150425-12:50 (20150425)' (debian-8.0.0-amd64-netinst.iso)

Further information about `debian-8.0.0-amd64-netinst.iso':
Generated on Sat, 25 Apr 2015 12:53:05 +0000

-----------------------------------------------------------------
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 Debian mirrors. Please
choose a Debian mirror as follows: Either enter a complete URL
pointing to a mirror (in the form
`ftp://ftp.debian.org/debian/'), 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'.
## 第二次询问:询问使用的网络镜像地址,对于历史版本请使用 archive 可以大大节约下载时间;
Debian mirror: https://archive.debian.org/debian/

回车后等待下载资源并构建镜像即可,所需时间与网络状态和镜像版本相关。

下载结束后会显示文件校验值与发布时的文件校验值,可以直观看到产物是否一致。

Found 23 of the 23 files required by the template                                                                           
Successfully created `debian-8.0.0-amd64-netinst.iso'

-----------------------------------------------------------------
Finished!
The fact that you got this far is a strong indication that `debian-8.0.0-amd64-netinst.iso'
was generated correctly. I will perform an additional, final check,
which you can interrupt safely with Ctrl-C if you do not want to wait.

MD5 from template: 2SCfNVRJ_hPbOWNXGx9S1A
MD5 from image:    2SCfNVRJ_hPbOWNXGx9S1A
OK: MD5 Checksums match, image is good!
WARNING: MD5 is not considered a secure hash!
WARNING: It is recommended to verify your image in other ways too!

附录

参考链接

如果遇到问题或者对文章内容存疑,请在下方留言,博主看到后将及时回复,谢谢!
回复 / 查看「历史评论
回答24+46=