jigdo无法下载的文件

问题描述

用jigdo下载Debian的iso镜像,剩下最后一个文件下载不了,提示信息:

Found 0 of the 1 files required by the template
Copied input files to temporary file `debian-12.5.0-amd64-DLBD-2.iso.tmp' - repeat command and supply more files to continue

-----------------------------------------------------------------
Aaargh - 1 files could not be downloaded. This should not
happen! Depending on the problem, it may help to retry downloading
the missing files.
Also, you could try changing to another Debian or Non-US server,
in case the one you used is out of sync.

However, if all the files downloaded without errors and you
still get this message, it means that the files changed on the
server, so the image cannot be generated.
As a last resort, you could try to complete the CD image download
by fetching the remaining data with rsync.

Press Return to retry downloading the missing files.
Press Ctrl-C to abort. (If you re-run jigdo-lite later, it will
resume from here, the downloaded data is not lost if you press
Ctrl-C now.)
:

换了好几个源也搞不定。

调查

就是这个家伙:
‘./debian-12.5.0-amd64-DLBD-2.iso.tmpdir/ftp.cn.debian.org/debian/pool/main/g/golang-github-container-orchestrated-devices-container-device-interface/golang-github-container-orchestrated-devices-container-device-interface-dev_0.5.2-2_all.deb’

检查报错时的提示信息,发现了“Bad file descriptor”和“Cannot write”这样的信息,其中下载工具还自动尝试缩短(shorten)目录名。
可以访问到对应的网络文件,但是写入磁盘时出错了,判断是创建本地文件时参数过长导致失败。

解决方法

把jigdo-lite所在目录移到根目录下,改名为bd2,尽量缩短目录名长度,重试后解决。

无谓地浪费了时间,被恶心坏了。
把文件名搞得这么长,你的良心不会痛吗?

### 使用 Jigdo 工具下载 Debian 发行版 #### 安装 Jigdo 文件工具 为了能够使用 Jigdo 下载 Debian 镜像,在系统中需要先安装 `jigdo-file` 软件包。可以通过以下命令完成安装: ```bash $ sudo apt install jigdo-file ``` 此操作适用于基于 DebianLinux 发行版,如 Ubuntu 或其他衍生版本[^1]。 #### 获取所需的 .jigdo 和 .template 文件 对于特定版本的 Debian ISO 映像文件,官方提供了对应的 `.jigdo` 和 `.template` 文件用于通过 Jigdo 方式获取完整的映像。例如要下载 Debian 10.4.0 i386 架构下的网络安装镜像(netinst),可以从指定位置获得相应的资源文件: - netinst.jigdo 地址:<http://cdimage.debian.org/cdimage/archive/10.4.0/i386/jigdo-cd/debian-10.4.0-i386-netinst.jigdo> 这些文件包含了构建最终 ISO 所需的信息以及部分数据片段的位置指引[^2]。 #### 开始下载过程 一旦拥有了上述两个必要的文件之后,就可以启动实际的数据收集流程了。通常情况下只需要提供给 `jigdo-lite` 命令这两个文件路径即可自动处理剩余的工作。具体做法如下所示: ```bash $ jigdo-lite /path/to/downloaded/file.jigdo ``` 这里 `/path/to/downloaded/file.jigdo` 应替换为你本地保存下来的 `.jigdo` 文件的实际路径。运行该指令后程序会询问关于目标存储位置等问题,请按照屏幕上的指示进行设置以完成整个下载任务。 #### 处理可能遇到的问题 如果在更新 APT 包列表(`apt-get update`)过程中遇到了某些索引文件未能成功下载的情况,并因此影响到了后续软件包(比如 `linuxcnc-ethercat`)的正常安装,则建议检查当前使用的源服务器是否稳定可靠;也可以考虑更换为更接近地理位置或者更加稳定的镜像站点来改善这一状况[^3]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值