Errors Reposyncing Rocky 9

Hello,

I’m trying to reposync the Rocky9 base repo using the following command:

$ cat << EOF > rocky9.repo
[baseos]
name=Rocky Linux 9 - BaseOS
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-9
#baseurl=http://dl.rockylinux.org/$contentdir/9/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9

[appstream]
name=Rocky Linux 9 - AppStream
#mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-9
baseurl=http://dl.rockylinux.org/$contentdir/9/AppStream/$basearch/os/
gpgcheck=1
enabled=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9

[crb]
name=Rocky Linux 9 - CRB
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-9$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/9/CRB/$basearch/os/
gpgcheck=1
enabled=0
countme=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9

[extras]
name=Rocky Linux 9 - Extras
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-9
#baseurl=http://dl.rockylinux.org/$contentdir/9/extras/$basearch/os/
gpgcheck=1
enabled=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9

[plus]
name=Rocky Linux 9 - Plus
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=plus-9$rltype
#baseurl=http://dl.rockylinux.org/$contentdir/9/plus/$basearch/os/
gpgcheck=1
enabled=0
countme=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
EOF

$ dnf reposync -n --download-metadata --delete -c rocky9.repo -p ../rocky/9 --repoid=baseos

During the sync i get the following errors:

[MIRROR] kernel-tools-libs-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: c7d2a7dec258cc79002e7319d0ea8f20ced990a018bddd8b423a88dedd7e79a3(sha256)  Expected: 8d17e6313b26d2048944da3561fa40c699624f98e7920dbb0d7683a415ba4d06(sha256) 
[MIRROR] kernel-tools-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 247310ea52c464be47df7e2ae736a1ff3059fb56de89fb6c1bc8de2d00b46273(sha256)  Expected: 46eac3ef4abc3a94e5fc27063379ef90895d3fed0c35b0951cf1fece8037c355(sha256) 
[MIRROR] kernel-modules-extra-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f13b2cff291e561bf992e9b013dd2069538c272d1fd9c2ccf0b4198391d464b2(sha256)  Expected: cf38e2672be93f2445411c90402192f6b9cb57e4a29fd4a248d74beb6027a224(sha256) 
[MIRROR] kernel-tools-libs-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: c7d2a7dec258cc79002e7319d0ea8f20ced990a018bddd8b423a88dedd7e79a3(sha256)  Expected: 8d17e6313b26d2048944da3561fa40c699624f98e7920dbb0d7683a415ba4d06(sha256) 
[FAILED] kernel-tools-libs-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
[FAILED] kernel-modules-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
[FAILED] kernel-debug-modules-extra-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
[FAILED] kernel-debug-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
[FAILED] kernel-core-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
[FAILED] kernel-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
[MIRROR] kernel-tools-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 247310ea52c464be47df7e2ae736a1ff3059fb56de89fb6c1bc8de2d00b46273(sha256)  Expected: 46eac3ef4abc3a94e5fc27063379ef90895d3fed0c35b0951cf1fece8037c355(sha256) 
[FAILED] kernel-tools-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
[MIRROR] kernel-modules-extra-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f13b2cff291e561bf992e9b013dd2069538c272d1fd9c2ccf0b4198391d464b2(sha256)  Expected: cf38e2672be93f2445411c90402192f6b9cb57e4a29fd4a248d74beb6027a224(sha256) 
[FAILED] kernel-modules-extra-5.14.0-162.12.1.el9_1.0.1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success

Any ideas on why these checksums don’t match?

FYI i also tried replacing mirrorlist with baseurl pointing at dl.rockylinux.org and received the same error.

This is a known issue. We are working on addressing this. 0001948: order of the packages in the repository metadata is reversed between primary.xml and filelists.xml / other.xml - Rocky BugTracker

1 Like

So could this situation be the cause of this symptom I’ve experienced doing this:

If I enter:
dnf history info 26
I get the last transaction with the kernel distinguished as 12.1
If I enter:
dnf history redo 26
I get this completely erronious listing of the replaced packages in this transaction as well as listing the kernel distinguished as 6.1 for install

This is the truncated output of dnf history redo 26:

Cannot find rpm nevra "libXpm-3.5.13-7.el9.x86_64".
  Cannot find rpm nevra "libtiff-4.4.0-2.el9.x86_64".
  Cannot find rpm nevra "dbus-x11-1:1.12.20-6.el9.x86_64".
  Cannot find rpm nevra "dbus-daemon-1:1.12.20-6.el9.x86_64".
  Cannot find rpm nevra "tracker-3.1.2-2.el9.x86_64".
  Cannot find rpm nevra "libtracker-sparql-3.1.2-2.el9.x86_64".
  Cannot find rpm nevra "kernel-headers-5.14.0-162.6.1.el9_1.0.1.x86_64".
  Cannot find rpm nevra "glibc-headers-2.34-40.el9.x86_64".
  Cannot find rpm nevra "glibc-devel-2.34-40.el9.x86_64".
  Cannot find rpm nevra "firefox-102.6.0-1.el9_1.x86_64".

The issue you’re facing here is that you cannot downgrade the packages. Those packages in particular were updated and thus no longer exist in the repositories. See our version policy for more information.

I understand quite clearly that you can’t downgrade. I was trying to redo the transaction that replaced those packages. I was trying to do exactly what the dnf manpage says history redo should do and instead it tried to reinstall the expired packages. I did succeed by pruning the history list in a file and then ran

dnf reinstall `cat histor26.txt`