Bug 1282228 - Problems Verifying Checksums on both Mac OS X and Ubuntu Linux
Summary: Problems Verifying Checksums on both Mac OS X and Ubuntu Linux
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora Documentation
Classification: Retired
Component: install-guide
Version: devel
Hardware: Unspecified
OS: Mac OS
unspecified
medium
Target Milestone: ---
Assignee: Petr Bokoc
QA Contact: Fedora Docs QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-15 17:07 UTC by Adam Stewart
Modified: 2024-05-21 09:21 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-21 09:21:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Stewart 2015-11-15 17:07:02 UTC
Description of problem:

shasum and sha256 sum do not like the format of your checksum files for some reason.

Version-Release number of selected component (if applicable):

Fedora-Live-Workstation-x86_64-23-10.iso
Fedora-Workstation-23-x86_64-CHECKSUM

How reproducible:

Follow the instructions in section 3.3.2

Steps to Reproduce:
1. Download the Fedora image and appropriate checksum file. I was using the versions listed above. I tried both saving the checksum webpage itself and copying and pasting the text into a txt file.
2. In a terminal, navigate to the directory containing the files
3. For Linux:
$ sha256sum -c *CHECKSUM
For OS X:
$ shasum -a 256 -c *CHECKSUM

Actual results:

When running the above commands on both OS X and Ubuntu, I get something along the lines of the following:
shasum: Fedora-Workstation-23-x86_64-CHECKSUM: no properly formatted SHA1 checksum lines found
For some reason it does not like the formatting of your files.

Expected results:

Something saying the checksum is valid I assume.

Additional info:

When I remove the -c option, it spits out the checksum itself. I was able to manually verify the download that way. This solution should be sufficient for most users. At least, it's better than having them run into the above error message. A better solution would involve figuring out why it doesn't like the formatting. I tried switching the line-ending characters from \n to \r\n since that's such a common problem but it didn't help. If you want any more detailed information on how to recreate this bug just let me know.

Comment 1 Fredy Muñoz 2015-11-27 01:51:38 UTC
The format of the `*-CHECKSUM` file is not recognized by `shasum` in Mac OS X. I solved this using the following one-liner in OS X Yosemite:

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

I also posted this solution at: https://ask.fedoraproject.org/en/question/74873/cant-verify-the-image-checksum-fedora-22/?answer=78954#post-id-78954

Comment 2 Petr Bokoc 2024-05-21 09:21:52 UTC
The install guide has been retired, therefore I'm closing this bug. 

If you would like to report Fedora docs bugs in the future, please use the "bug" icon on the top right of the affected page, it will take you directly to the appropriate issue tracker.


Note You need to log in before you can comment on or make changes to this bug.