Discussion:
Jigdo download error
(too old to reply)
최민우
2024-12-07 09:20:01 UTC
Permalink
Dear Debian CD Team,

I am experiencing an issue while using Jigdo to download Debian CD/DVD
images. The process halts with a message indicating that one file could not
be downloaded. Below are the details of the issue:

- Jigdo file
http://cdimage.debian.org/debian-cd/12.8.0/amd64/jigdo-bd/debian-12.8.0-amd64-BD-1.jigdo

- Environment:
Debian 12 (Bookworm), Jigdo version 0.8.1
Ubuntu 24.10, Jigdo version 0.8.2

- Error

*Found 26 of the 27 files required by the template*










*Copied input files to temporary file `debian-12.8.0-amd64-BD-1.iso.tmp' -
repeat command and supply more files to
continue-----------------------------------------------------------------1
files not found in previous pass, tryingalternative download
locations:2024-12-07 17:42:14
URL:http://us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
<http://us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb>
[898812/898812] ->
"./debian-12.8.0-amd64-BD-1.iso.tmpdir/us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
<http://us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb>"
[1]Could not open
`./debian-12.8.0-amd64-BD-1.iso.tmpdir/us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
<http://us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb>'
for input - excluded (Input/output error)Found 0 of the 1 files required by
the templateCopied input files to temporary file
`debian-12.8.0-amd64-BD-1.iso.tmp' - repeat command and supply more files
to continue*

When attempting to download the DLBD jigdo images (both DLBD 1 and 2 ISOs),
I encountered issues.
Could you please assist me in identifying the root cause of this problem?
If there is a specific mirror or step that I should use, kindly let me know.

Best Regards,
Thomas Schmitt
2024-12-07 10:30:01 UTC
Permalink
Hi,
Post by 최민우
URL:http://us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
[...] [898812/898812] ->
"./debian-12.8.0-amd64-BD-1.iso.tmpdir/us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb [...]"
[1]Could not open
`./debian-12.8.0-amd64-BD-1.iso.tmpdir/us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
[...]' for input - excluded (Input/output error)
Somehow this looks like a problem with the local storage representation
of the downloaded file python3-impacket_0.10.0-4_all.deb .

The lack of this file in the resulting debian-12.8.0-amd64-BD-1.iso
will prevent the ISO from being verified by its published checksums
and it will prevent installation of python3-impacket_0.10.0-4_all.deb,
if that is desired.
The ISO is supposed to be bootable and all others of its packages to be
installable from it.

----------------------------------------------------------------------
Now for the problematic file:

The messages look like it might have been successfully downloaded.
What do you get from

md5sum ./debian-12.8.0-amd64-BD-1.iso.tmpdir/us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb

I get

60351904c1c37ea9167dba5131f3fac5 .../python3-impacket_0.10.0-4_all.deb

after
wget http://ftp.debian.org/debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
or
wget http://us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
alike.

This MD5 checksum matches the base64 encoded checksum in the file
debian-12.8.0-amd64-BD-1.jigdo
which i obtained by

wget https://cdimage.debian.org/debian-cd/current/amd64/jigdo-bd/debian-12.8.0-amd64-BD-1.jigdo

To get the checksum i did:

gunzip < debian-12.8.0-amd64-BD-1.jigdo | \
grep python3-impacket_0.10.0-4_all.deb

This yielded:
YDUZBMHDfqkWfbpRMfP6xQ=Debian:pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
of which i used the part before "=", padded up by "==" to 24 bytes, for

echo -n YDUZBMHDfqkWfbpRMfP6xQ== | base64 -d | od -t x1 | \
sed -e 's/^.......//' -e 's/ //g'

which yielded

60351904c1c37ea9167dba5131f3fac5

(The base64 encoding in .jigdo is peculiar. One has to replace "-"
characters by "+" and "_" by "/", to convert from RFC3548 "URL and
Filename Safe Alphabet" to RFC3548 "Base 64 Alphabet".
But in this case it works well without such a conversion.)

----------------------------------------------------------------------
Remedy proposal:

If the file python3-impacket_0.10.0-4_all.deb is missing or if its
MD5 sum is not 60351904c1c37ea9167dba5131f3fac5 , then you could try to
download the file manually, verify it by md5sum, and put it where
jigdo-lite attempted to put it:
./debian-12.8.0-amd64-BD-1.iso.tmpdir/us.cdimage.debian.org/cdimage/snapshot/Debian/pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb

Then run jigdo-lite again, so that it can find the file and insert it
into the resulting .iso image.

(If the jigdo-lite run does not work, then i guess that you could use the
jigdo-lite input prompt "Files to scan:" to tell it to scan the directory
which contains
pool/main/i/impacket/python3-impacket_0.10.0-4_all.deb
In my wget example this would be
./debian-12.8.0-amd64-BD-1.iso.tmpdir/us.cdimage.debian.org/cdimage/snapshot/Debian
I guess because i never entered anything to "Files to scan:".
)


Have a nice day :)

Thomas

Loading...