As I follow the tutorial for install mariadb on centos 8 (https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-centos-8) the dnf install command has repeatedly failed. The files download but the install fails and I think it’s because of an issue with the signature. I get the following back each time I run the dnf install:
error: /var/cache/dnf/appstream-670736f27949a722/packages/perl-DBI-1.641-4.module_el8+332+132e4365.x86_64.rpm: signature hdr data: BAD, no. of bytes(30020) out of range
error: /var/cache/dnf/appstream-670736f27949a722/packages/perl-IO-Socket-SSL-2.066-4.module_el8+339+1ec643e0.noarch.rpm: signature hdr data: BAD, no. of bytes(11548) out of range
error: /var/cache/dnf/appstream-670736f27949a722/packages/perl-Net-SSLeay-1.88-2.module_el8+339+1ec643e0.x86_64.rpm: signature hdr data: BAD, no. of bytes(28456) out of range
Problem opening package perl-DBI-1.641-4.module_el8+332+132e4365.x86_64.rpm
Problem opening package perl-IO-Socket-SSL-2.066-4.module_el8+339+1ec643e0.noarch.rpm
Problem opening package perl-Net-SSLeay-1.88-2.module_el8+339+1ec643e0.x86_64.rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
I’ve done some searching but so far found nothing to help resolve the error. Any guidance would be greatly appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey @bross68,
This issue is because there is a difference between the RPM package that you have and the one that your system is trying to use.
The solution is detailed in both these topics:
https://www.digitalocean.com/community/questions/cento-os-8-not-updating
Basically, you need to run the following commands as it follows:
- dnf clean all
- dnf update rpm
- dnf update
Once the above 3 commands have been executed in that order you can try installing mariadb.
Hello @bross68
This issue might be related to corrupted or outdated packages in the cache. To resolve this error, please follow these steps:
- sudo dnf clean all
- sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
- sudo dnf update -y
If the issue persists, please ensure that you have correctly configured repositories and there are no network connectivity issues.
For more information on installing MariaDB on CentOS 8, please refer to this tutorial: How To Install MariaDB on CentOS 8.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.