Question

Centos 8 not updating

New created droplets are not updating (yum update)

Total                                                                                                                                       61 MB/s | 550 MB     00:08

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/linux-firmware-20230217-113.git83f1d778.el8.noarch.rpm: signature hdr data: BAD, no. of bytes(716100) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/NetworkManager-1.40.16-1.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(21364) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/NetworkManager-libnm-1.40.16-1.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(17400) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/cockpit-bridge-286.1-1.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(10708) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/cockpit-system-286.1-1.el8.noarch.rpm: signature hdr data: BAD, no. of bytes(61956) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/cockpit-ws-286.1-1.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(35528) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/libibverbs-44.0-2.el8.1.x86_64.rpm: signature hdr data: BAD, no. of bytes(15176) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/libpwquality-1.4.4-6.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(18564) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/openssl-1.1.1k-9.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(32932) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/policycoreutils-2.9-24.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(38356) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/policycoreutils-python-utils-2.9-24.el8.noarch.rpm: signature hdr data: BAD, no. of bytes(11352) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/python3-policycoreutils-2.9-24.el8.noarch.rpm: signature hdr data: BAD, no. of bytes(68700) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/python3-syspurpose-1.28.35-1.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(11344) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/rdma-core-44.0-2.el8.1.x86_64.rpm: signature hdr data: BAD, no. of bytes(11792) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/selinux-policy-targeted-3.14.3-117.el8.noarch.rpm: signature hdr data: BAD, no. of bytes(679656) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/systemd-239-73.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(183268) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/systemd-udev-239-73.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(58816) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/tar-1.30-9.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(13828) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/tuned-2.20.0-1.el8.noarch.rpm: signature hdr data: BAD, no. of bytes(94844) out of range

error: /var/cache/dnf/baseos-726e5a1cc76d0c79/packages/util-linux-2.32.1-41.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(127884) out of range

Problem opening package linux-firmware-20230217-113.git83f1d778.el8.noarch.rpm

Problem opening package NetworkManager-1.40.16-1.el8.x86_64.rpm

Problem opening package NetworkManager-libnm-1.40.16-1.el8.x86_64.rpm

Problem opening package cockpit-bridge-286.1-1.el8.x86_64.rpm

Problem opening package cockpit-system-286.1-1.el8.noarch.rpm

Problem opening package cockpit-ws-286.1-1.el8.x86_64.rpm

Problem opening package libibverbs-44.0-2.el8.1.x86_64.rpm

Problem opening package libpwquality-1.4.4-6.el8.x86_64.rpm

Problem opening package openssl-1.1.1k-9.el8.x86_64.rpm

Problem opening package policycoreutils-2.9-24.el8.x86_64.rpm

Problem opening package policycoreutils-python-utils-2.9-24.el8.noarch.rpm

Problem opening package python3-policycoreutils-2.9-24.el8.noarch.rpm

Problem opening package python3-syspurpose-1.28.35-1.el8.x86_64.rpm

Problem opening package rdma-core-44.0-2.el8.1.x86_64.rpm

Problem opening package selinux-policy-targeted-3.14.3-117.el8.noarch.rpm

Problem opening package systemd-239-73.el8.x86_64.rpm

Problem opening package systemd-udev-239-73.el8.x86_64.rpm

Problem opening package tar-1.30-9.el8.x86_64.rpm

Problem opening package tuned-2.20.0-1.el8.noarch.rpm

Problem opening package util-linux-2.32.1-41.el8.x86_64.rpm

The downloaded packages were saved in cache until the next successful transaction.

You can remove cached packages by executing 'yum clean packages'.

Error: GPG check FAILED

Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
March 20, 2023
Pinned Answer

Hello @admin245734 and @azaj.ikbal,

So indeed I’ve managed to recreate the issue. This is coming from the fact that when you create a new CentOS Droplet and then try to update it with the dnf or yum update command you are updating the rpm package as well causing differences in the rpm version trying to unpackage rpm files thus coming with an error like :

Problem opening package linux-firmware-20230217-113.git83f1d778.el8.noarch.rpm

I’ve reported this however for the time being what you can do is to update rpm alone and then do the dnf update on all packages;

  1. dnf update rpm

After that is completed:

  1. dnf update

Hello,

Found the solution for this, it seems that the main CentOS 8 repo has been deprecated and moved to the archive, so I have replaced the standard urls in the repo files for CentOS 8 like this: check your OS version and replace the 8.3.2011 part with your OS version:

baseurl=https://vault.centos.org/8.3.2011/AppStream/$basearch/os/

Then yum updated with no issues and conflicts.

Thank you.

Best, Banko

This comment has been deleted

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Get our biweekly newsletter

    Sign up for Infrastructure as a Newsletter.

    Hollie's Hub for Good

    Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

    Become a contributor

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    Welcome to the developer cloud

    DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

    Learn more
    DigitalOcean Cloud Control Panel