# Problemw with GPC check FAILED after upgrade from Centos7 to RL8

**URL:** <https://forums.rockylinux.org/t/problemw-with-gpc-check-failed-after-upgrade-from-centos7-to-rl8/13382>\
**Category:** Rocky Linux Help & Support\
**Created:** [March 30, 2024, 7:14pm UTC](https://forums.rockylinux.org/t/problemw-with-gpc-check-failed-after-upgrade-from-centos7-to-rl8/13382 "2024-03-30T19:14:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/asle/32/4140_2.png) [@asle](https://forums.rockylinux.org/u/asle)\
**Post date:** [March 30, 2024, 7:14pm UTC](https://forums.rockylinux.org/t/problemw-with-gpc-check-failed-after-upgrade-from-centos7-to-rl8/13382/1 "2024-03-30T19:14:23Z")

</div>

I have upgraded from Centos 7 to RL8 with this tutorial: [https://first2host.co.uk/blog/migrate-centos-7-rocky-linux-8/](https://first2host.co.uk/blog/migrate-centos-7-rocky-linux-8/)  
Now I have problems updating and I get a lot of these when I try to update with: **sudo dfn update**

```auto
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for yelp-libs-3.28.1-3.el8.x86_64.rpm is not installed. Failing package is: yelp-libs-2:3.28.1-3.el8.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
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 have done everything here several times: [AlmaLinux OS - Forever-Free Enterprise-Grade Operating System](https://almalinux.org/blog/2023-12-20-almalinux-8-key-update/) , delete old keys reimport keys, clean packages etc…  
This command shows correct keys right?  
**$ rpm -q gpg-pubkey-ced7258b-6525146f**  
**gpg-pubkey-ced7258b-6525146f**

Still I can not update. how can I solve this?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [March 30, 2024, 9:55pm UTC](https://forums.rockylinux.org/t/problemw-with-gpc-check-failed-after-upgrade-from-centos7-to-rl8/13382/2 "2024-03-30T21:55:51Z")

</div>

Why were you importing keys from Alma onto a Rocky system? No wonder you have problems.

Supported Rocky migrations are from CentOS 8 to Rocky 8. There are no supported methods for CentOS 7. Your best bet, make a clean install of Rocky, migrate your data from CentOS 7.

---

<div class="post-metadata">

**Author:** ![asle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/asle/32/4140_2.png) [@asle](https://forums.rockylinux.org/u/asle)\
**Post date:** [March 30, 2024, 10:13pm UTC](https://forums.rockylinux.org/t/problemw-with-gpc-check-failed-after-upgrade-from-centos7-to-rl8/13382/3 "2024-03-30T22:13:53Z")

</div>

Wow what a fool I am. I realized that now mixing Rocky with Alma linux. Thanks for a kind reply and not calling me the idiot I feel I am. I think I will do a clean Rockyinstall.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [May 29, 2024, 10:14pm UTC](https://forums.rockylinux.org/t/problemw-with-gpc-check-failed-after-upgrade-from-centos7-to-rl8/13382/4 "2024-05-29T22:14:43Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
