Ask Your Question
1

Can't verify the image checksum (fedora 22)

asked 2015-09-03 16:50:38 -0500

pannekake gravatar image

I have followed the steps given by Fedora ( https://getfedora.org/verify ), but can't verify the image's checksum (fedora 22).

These steps are ok:
$ curl https://getfedora.org/static/fedora.gpg | gpg --import
$ gpg --verify-files *-CHECKSUM
Get a good signature (8E1431D5 - Fedora 22).

But the last step don't work (I run OS X so the command is a little bit different from getfedora.org/verify, but the right one as stated in https://docs.fedoraproject.org/en-US/... )

$ shasum -a 256 -c *CHECKSUM
This gives the following error: shasum: Fedora-Workstation-22-x86_64-CHECKSUM: no properly formatted SHA1 checksum lines found

have also tried:
$ shasum -a 256 -c Fedora-Live-Workstation-x86_64-22-3.iso
This gives the following error: shasum: Fedora-Live-Workstation-x86_64-22-3.iso: no properly formatted SHA1 checksum lines found

I can always run:
$ shasum Fedora-Live-Workstation-x86_64-22-3.iso
This gives me the following output: e56c8a4e2b1a49e2a9b68d112f98f0b3685c98dc Fedora-Live-Workstation-x86_64-22-3.iso. But I got nothing to check the shasum against.

Thanks for any replies on this matter.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2015-09-03 17:10:15 -0500

aeperezt gravatar image

You need to download the check sum files from https://getfedora.org/verify like

wget https://getfedora.org/static/checksum... wget https://getfedora.org/static/checksum...

then

sha256sum -c Fedora-Workstation-22-x86_64-CHECKSUM

That will check all files Fedora-Workstation-netinst-x86_64-22.iso Fedora-Live-Workstation-x86_64-22-3.iso if the file is not on the same folder it will fail

That should work for you.

edit flag offensive delete link more

Comments

Thanks for your reply.

I have downloaded the checksum and it's verified in the following step:
$ gpg --verify-files *-CHECKSUM


Image/iso: Fedora-Live-Workstation-x86_64-22-3
CHECKSUM file: Fedora-Workstation-22-x86_64-CHECKSUM
(both are in the same folder)


It's the last step that gives me an error:
$ shasum -a 256 -c Fedora-Workstation-22-x86_64-CHECKSUM
(the command is the right one for OS X as stated in Fedora documentation).
The error:
shasum: Fedora-Workstation-22-x86_64-CHECKSUM: no properly formatted SHA1 checksum lines found

pannekake gravatar imagepannekake ( 2015-09-03 23:55:21 -0500 )edit

I got the same error when I ran shasum -a 256 -c checksum. I used the .* since the extension of my checksum is .webarchive - $ shasum -a 256 -c CHECKSUM. shasum: Fedora-Workstation-22-i386-CHECKSUM.webarchive: no properly formatted SHA1 checksum lines found -- is the fedora documentation wrong? thats where I got the command info from

ngm01 gravatar imagengm01 ( 2015-09-15 21:57:27 -0500 )edit
1

answered 2015-11-26 19:25:00 -0500

The problem is that the format of the *-CHECKSUM file is not recognized by shasum. I solved this using the following one-liner:

$ grep '^SHA256' *-CHECKSUM | awk -F '[()=]' '{ print $4 "  " $2 }' | shasum -a 256 -c
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-03 16:50:38 -0500

Seen: 3,854 times

Last updated: Sep 03 '15