r/linuxquestions • • 4d ago

Support Checksum improperly formatted?

I'm trying to check the checksum for a linux iso, it returns "OK" but also says 17 lines are improperly formatted. What is going on here and is it an issue? Am I safe to install?

0 Upvotes

6 comments sorted by

18

u/mindstormer12 4d ago

You need to provide more info like what tool you're using to check what ISO, the exact commands you're running, and the full output. No ones going to guess what "it" is.

1

u/Shindiggidy 2d ago

A checksum tool such as sha256sum or md5sum, sorry if that wasn't clear.

In my case I was using sha356sum. Would the "improperly formatted lines" error have indicated something different under different tools?

2

u/Laurendon-Mimoune 4d ago

doesnt the 17 improperly formatted lines message basically have to be a pgp signed checksum file getting fed straight into the check flag

1

u/ScratchHistorical507 3d ago

Maybe, but why should we have to guess? If you provide no information at all you don't deserve an answer. It's that simple.

5

u/varsnef 4d ago

Yeah it's fine. The error is coming from the signature added at the bottom the checksum file. It's a harmless error. The iso passed and it printed "OK" for the checksum so that part is good.

5

u/varsnef 4d ago

Here is an example.

echo 1234 > pseudo.iso
sha256sum pseudo.iso
a883dafc480d466ee04e0d6da986bd78eb1fdd2178d04693723da3a8f95d42f4  pseudo.iso
sha256sum pseudo.iso > pseudo.iso.sha256sum
sha256sum -c pseudo.iso.sha256sum
pseudo.iso: OK
echo 'pseudo GPG signature' >> pseudo.iso.sha256sum
sha256sum -c pseudo.iso.sha256sum
pseudo.iso: OK
sha256sum: WARNING: 1 line is improperly formatted