# Validating Fedora 24 ISO file

Hello, I am new to using Fedora. I have been using it on Virtual Box for a few months now and would like to install it on a partition I have created on my hard drive. I am at the point where I need to validate the software I downloaded. I have been following the instructions on Fedora docs for validation. (This is where I found the directions: https://docs.fedoraproject.org/en-US/... ) I run into issues on step 4 in PowerShell

Here is what I type into PowerShell based off of the instructions in Step 4:

PS C:\Users\Owner\Documents\Linux_Fedora_ISO_file> $image = "Fedora-Workstation-Live-i386-24-1.2.iso"$checksum_file = "Fedora-Workstation-24-x86_64-CHECKSUM.txt" $sha256 = New-Object -TypeName System.Security.Cryptography.sha256CryptoServiceProvider$expected_checksum = ((Get-Content $checksum_file | Select-String -Pattern$image) -split " ")[0].ToLower()

I replaced the "$image" and "$checksum_file" values to match the file names I have in the directory as I got a different error for not doing that the first go around. Even with doing all of this I still get the following error:

Get-Content : Cannot bind argument to parameter 'Path' because it is null. At line:1 char:238

• ... iceProvider $expected_checksum = ((Get-Content$checksum_file | Selec ...

• ~~~~~~~~~~~~~~

• CategoryInfo : InvalidData: (:) [Get-Content], ParameterBindingValidationException

• FullyQualifiedErrorId :

ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.GetContentCommand

I have two questions: 1) How can I fix this error? 2) Would it be more practical to download the ISO file in my virtual machine and validate it with Linux instead of Windows?

Edit: So I tried downloading a copy of the 64 bit ISO into my Fedora virtual machine and validating it using a terminal session (which was much easier than trying to do it PowerShell) I utilized the instructions from Fedora docs ( https://docs.fedoraproject.org/en-US/... ) Below is the result I got:

Fedora-Workstation-Live-x86_64-24-1.2.iso: OK

sha256sum: WARNING: 20 lines are improperly formatted

sha256sum: WARNING: 1 listed file could not be read

My question is this, does the second line where it says "Fedora-Worstation....iso: OK" mean that the image is good or did something go wrong because of lines being improperly formatted?

edit retag close merge delete

Following instructions here https://getfedora.org/en/verify you should have downloaded iso file of desired fedora version and its checksum (from above mentioned webpage) and then:

And you should get something like:

\$ gpg --verify-files *-CHECKSUM gpg: Signature made Fri 17 Jun 2016 03:14:03 CEST using RSA key ID 81B46521 gpg: Good signature from "Fedora (24) fedora-24-primary@fedoraproject.org"

( 2016-09-14 05:45:12 -0500 )edit

Sort by » oldest newest most voted

I believe error is caused because you're trying to verify 32 bit image with 64 bit checksum, be sure to have both image and checksum in the same directory and make sure they match (64 bit image + 64 bit checksum).

As of more practical way of checking if image is correct, well, I find it more easy on linux since it is a matter of only issuing one simple command and be done with it :-)

more

1

Thanks for the info. I tried running the validation process in PowerShell again with the corrections you suggested. I still got an error that was different than the one in this post but at this point I am going to try downloading the ISO file into my Fedora virtual machine and validate it in there. Hopefully that will be easier and it will work correctly.

( 2016-09-13 05:00:58 -0500 )edit