I downloaded the current Leap 16 offline iso via ktorrent and downloaded the associated checksum file. I then ran sha256sum on the checksum file:
sha256sum -c Leap-16.0-offline-installer-x86_64.install.iso.sha256
sha256sum: Leap-16.0-offline-installer-x86_64.install.iso: No such file or directory
Leap-16.0-offline-installer-x86_64.install.iso: FAILED open or read
sha256sum: WARNING: 1 listed file could not be read
I also ran
sha256sum -c ./Leap-16.0-offline-installer-x86_64.install.iso.sha256
sha256sum: Leap-16.0-offline-installer-x86_64.install.iso: No such file or directory
Leap-16.0-offline-installer-x86_64.install.iso: FAILED open or read
sha256sum: WARNING: 1 listed file could not be read
I note that the iso and checksum files have different base names:
Leap-16.0-offline-installer-x86_64-Build171.1.install.iso
Leap-16.0-offline-installer-x86_64.install.iso.sha256
(not sure if this makes a difference)
The correct syntax was used. But a checksum for another ISO was used. This can be seen in the terminal output.
Have a look at g.o.o:
The torrent link points to Leap-16.0-offline-installer-x86_64-Build171.1.install.iso
The direkt link points to Leap-16.0-offline-installer-x86_64.install.iso
The checksum link points to Leap-16.0-offline-installer-x86_64.install.iso.sha256
That means the checksum is not suitable for the torrent download.
So when you download the ISO via torrent, you need to chose the correct sha256 from the already provided mirror link.
Hi, the first of these commands is nonsense, because it computes the sha256sum of the text file containing the sha256sum (instead of the iso image), which isn’t of any relevance.
You should have observed that the execution of the second command, which calculates the sha256sum of the .iso of more than 4 GB took much more time than the execution of the first command.
The second of these commands yields the relevant sha256sum which you should compare with the checksum given on download.opensuse.org .
Both files/links Leap-16.0-offline-installer-x86_64-Build171.1.install.iso.sha256
and Leap-16.0-offline-installer-x86_64.install.iso.sha256
in https://download.opensuse.org/distribution/leap/16.0/offline/
contain the same sha256sum which in addition is equal to the one that you have got by your second command.
Well, thanks to all for the instruction. As the title of the thread implies, I was confused. I did not realize that sha256sum calculates a number, I thought it extracted a number from a file.