CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Issues related to applications and software problems and general support
User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Post by TrevorH » 2019/11/13 11:57:22

I don't think tony_down_under did the mistake you mention here as he confirms BOTH partitions exist on his usb stick with both correct checksums
So like this...
by tony_down_under » 2019/11/13 05:26:52

So after using RUFUS and "dd" mode, I get the same usb drive layout and sha's

[root@CV000142 Desktop]# sha256sum /dev/sdb && sha256sum /dev/sdb1 && sha256sum /dev/sdb2
9569b4aa9550ca9191a9772d2970969e6a696aa8b9bbca2ec94cc0fc60262682 /dev/sdb
ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8 /dev/sdb1
5bfdaa324a0115b384c31b2f3cc97d5a4cba26a8df2b493bf9ca2075fecad36d /dev/sdb2
[root@CV000142 Desktop]#
So, the correct sha256sum for the whole iso image is

SHA256 (CentOS-8-x86_64-1905-dvd1.iso) = ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8

and yet that is the sha256sum of just /dev/sdb1 in the output above. So /dev/sdb1 contains the iso image but the other two partitions are full of _something_ else.

You need to write the iso image to /dev/sdb not a partition on the device.

And don't use Rufus. It's been known to fail in certain configurations so avoid it since you are having problems. Use something that is absolutely known to work all the time unless it actually fails with an i/oi error while writing the image to USB.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

George99
Posts: 58
Joined: 2013/09/08 17:01:05
Location: Germany

Re: CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Post by George99 » 2019/11/13 15:54:22

TrevorH, I know it sounds confusing but on a properly created CentOS 8 usb stick you will end up with two partitions with the first one with identical sha256sums as the original ISO. This has nothing to do with writing the ISO to a specific partition instead of the whole device.

Code: Select all

sha256sum CentOS-8-x86_64-1905-dvd1.iso 
ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8  CentOS-8-x86_64-1905-dvd1.iso

sudo dd if=CentOS-8-x86_64-1905-dvd1.iso of=/dev/sde bs=1M status=progress
7131365376 bytes (7,1 GB, 6,6 GiB) copied, 211 s, 33,8 MB/s
6805+0 Datensätze ein
6805+0 Datensätze aus
7135559680 bytes (7,1 GB, 6,6 GiB) copied, 211,604 s, 33,7 MB/s

sudo sha256sum /dev/sde1
ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8  /dev/sde1


sudo fdisk -l /dev/sde
Disk /dev/sde: 29,84 GiB, 32015679488 bytes, 62530624 sectors
Disk model: Cruzer Edge     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3e04f576

Device     Boot Start      End  Sectors  Size Id Type
/dev/sde1  *        0 13936639 13936640  6,7G  0 Empty
/dev/sde2       23120    43043    19924  9,7M ef EFI (FAT-12/16/32)
If you look at the output of fdisk you'll understand the reason why. Partition 2 is really not a partion of its own but just a part of partition 1. Very tricky by the way.

The usb stick I created installs CentOS without any problems...

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Post by TrevorH » 2019/11/13 16:57:54

You are correct, it does.

So the error from the start of the thread was:
Some packages from the local repository have incorrect checksum
But since we know that the iso image does not have that problem, that means that it's either reading the wrong information off the USB stick or that it's being corrupted once it's read (bad RAM?).
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Post by TrevorH » 2019/11/13 17:37:49

So to be absolutely sure, I copied the iso to a USB stick and then attached that to a vbox VM and booted it, did a default Server with GUI install which installed over 1300 packages successfully. So whatever packages there are that "have the incorrect checksum" they're either not presnt on my USB stick or I'm not reading them with that install type.

In addition, prior to the release of CentOS 8 there were probably hundreds if not thousands of automated installs and CI runs against it. I am pretty sure that if there was a general problem with it, we'd already know.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

BShT
Posts: 109
Joined: 2019/10/09 12:31:40

Re: CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Post by BShT » 2019/11/13 19:13:54

sha256sum CentOS-8-x86_64-1905-dvd1.iso
ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8 CentOS-8-x86_64-1905-dvd1.iso

i have the same ISO file here and i´m running it in my personal notebook (USB install) and dozens of servers under VMWare (Content Libraries)

tony_down_under
Posts: 75
Joined: 2019/08/07 01:50:24
Location: Perth, Australia but originally from Carshalton, Surrey

Re: CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Post by tony_down_under » 2019/11/14 05:49:32

TrevorH wrote:
2019/11/13 17:37:49
So to be absolutely sure, I copied the iso to a USB stick and then attached that to a vbox VM and booted it, did a default Server with GUI install which installed over 1300 packages successfully. So whatever packages there are that "have the incorrect checksum" they're either not presnt on my USB stick or I'm not reading them with that install type.

In addition, prior to the release of CentOS 8 there were probably hundreds if not thousands of automated installs and CI runs against it. I am pretty sure that if there was a general problem with it, we'd already know.
Thank you for this ^

OK this is ALL great info but no one has mentioned how they are copying their ISOs to their usb's? I have Windows 10. What are you using to do it? I am unable to use the "dd" method on Windows 10, natively..

Historically, I had been using RUFUS but as mentioned, it has had problems before. Then I found Fedora and tested their OS and found their tool. Their tool works perfectly for CentOS 7 and Fedora so I had since been using that. Here I am now :)

I googled and found this page https://wiki.centos.org/HowTos/InstallFromUSBkey

It's for Centos7 and above so hope it's correct. It echoes what you guys are stating around the "device" compared to the partition. It has four programs listed as "known working" to copy the ISO to usb from Windows.

The first one looks like malware:
https://www.virustotal.com/gui/file/4ed ... /detection

I tried the "DD for Windows" which is in no way user-friendly and definitely not noob friendly. There is a possibility to erase your Windows hard disk using this 🙈
But anyway, I used it and then plugged the usb back into Centos to validate the SHA. I have a single partition on the usb. The `/dev/` devices are showing as /dev/sdb and /dev/sdb1

Sha256 =

Code: Select all

root@CV000142 Desktop]# sha256sum /dev/sdb && sha256sum /dev/sdb1 
f37d37024022100eaeaba928a2672c8dd734569e3a162cbafd060f18647bf5db  /dev/sdb
7ff7642c6ed881100db0006f4523298a31999d1dc0f57c0dcdcf16cd6ece837e  /dev/sdb1
[root@CV000142 Desktop]# 
The release notes have ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8 . Neither the above match. Plus, I had trouble finding the device as per the docs:

Code: Select all

> .\dd.exe --list                                                          rawwrite dd for windows version 0.6beta3.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by terms of the GPL Version 2.

Win32 Available Volume Information
\\.\Volume{c37effbf-39fd-47de-a908-7134c243e2f1}\
  link to \\?\Device\HarddiskVolume1
  fixed media
  Not mounted

\\.\Volume{364ffe4c-d4e2-4c52-8bb2-176fcd8b4372}\
  link to \\?\Device\HarddiskVolume4
  fixed media
  Mounted on \\.\c:

\\.\Volume{e2fd272c-9ed1-11e9-a2d9-d6fe72dc694d}\
  link to \\?\Device\HarddiskVolume43
  removeable media
  Mounted on \\.\d:

\\.\Volume{4664ffed-3bb7-44da-bb61-49daac15dc62}\
  link to \\?\Device\HarddiskVolume2
  fixed media
  Not mounted

\\.\Volume{bf418c5f-a7ab-11e9-a2e6-3cf01139a390}\
  link to \\?\Device\HarddiskVolume39
  removeable media
  Mounted on \\.\e:

\\.\Volume{bf418c60-a7ab-11e9-a2e6-3cf01139a390}\
  link to \\?\Device\HarddiskVolume40
  removeable media
  Mounted on \\.\f:
Next - win32 disk imager. This was straight forward to use. You just select the ISO and the device letter, in my case D:. Write was successful. So I put back into the centos laptop I have and it again has /dev/sdb , /dev/sdb1 and /dev/sdb2

Calculating the SHAs gives:

Code: Select all

# sha256sum /dev/sdb && sha256sum /dev/sdb1 && sha256sum /dev/sdb2
6cb697600cccfabbf3a506082ab4f8579a0a585a1618ee8fe0a6aac9cabd1872  /dev/sdb
ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8  /dev/sdb1
5bfdaa324a0115b384c31b2f3cc97d5a4cba26a8df2b493bf9ca2075fecad36d  /dev/sdb2
[root@CV000142 Desktop]# 
So looks like that tool does the same as Fedora Media Writer...

So what's the right way to do this from Windows 10?

So anyway, just in case it's impossible from Windows 10, I copied the ISO to centos and ran:

Code: Select all

dd if=centos8.iso of=/dev/sdb
The result was I had /dev/sdb , /dev/sdb1 and /dev/sdb2

I didn't bother checking the sha. I put the usb back into windows and opened the terminal and run:

Code: Select all

diskpart
list disk
select disk (the ID number given to the usb drive shown in the previous command)
clean
Now when doing the dd copy in centos, the result is the same sdb & sdb1 & sdb2

Checking the sha against this gives:

Code: Select all

# sha256sum /dev/sdb && sha256sum /dev/sdb1 && sha256sum /dev/sdb2
190ac61ab767e08670fe6a1626c8b05420cc2931970732da07cd60d815bf9ba2  /dev/sdb
ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8  /dev/sdb1
5bfdaa324a0115b384c31b2f3cc97d5a4cba26a8df2b493bf9ca2075fecad36d  /dev/sdb2
[root@CV000142 Desktop]# 
So the result is the same!

@TrevorH can you clarify what you see on your side?

tony_down_under
Posts: 75
Joined: 2019/08/07 01:50:24
Location: Perth, Australia but originally from Carshalton, Surrey

Re: CentOS 8 1905 DVD ISO install fail - local repository error "incorrect checksum"

Post by tony_down_under » 2019/11/15 04:57:29

OK so I now have 2 x successful installations with 1905.

The *fix* for me has been to borrow an old and slow USB drive from a colleague (we have company branded usb drives which were old when I joined the company... they are very slow and 8GB in size). I have been able to install from usb using one of those usb drives and I used Fedora Media Writer to copy the ISO to the usb (which took ages). On the 2nd install I went and done the customisations I require (like Australia region, Workstation software group and custom partition (no swap, no /home/ and `/` = full space of the drive (excluding the /boot/).

the linux "dd" method does EXACTLY the same as Fedora Media Writer in Windows. You will get 2 x partitions on the drive like : /dev/sdx1 and /dev/sdx2. No need to use any other software in this case.

Code: Select all

¯\_(ツ)_/¯

Post Reply

Return to “CentOS 8 - General Support”