Public key for MailScanner-5.1.4-1.efa.3.rhel.noarch.rpm is not installed

Questions and answers about how to do stuff
Post Reply
virtualhub
Posts: 1
Joined: 30 Jun 2018 04:32

Public key for MailScanner-5.1.4-1.efa.3.rhel.noarch.rpm is not installed

Post by virtualhub »

I was previously running eFa4 RC3 and upgraded/switched to a stable eFa4 as follows;

Code: Select all

sudo rm /etc/yum.repos.d/eFa4-testing.repo
sudo curl -L https://mirrors.efa-project.org/rpm/eFa4/eFa4.repo -o /etc/yum.repos.d/eFa4.repo
sudo yum update
viewtopic.php?f=8&t=3879

Recently eFa4 released new upgrades for MailScanner-5.1.4-1.efa.3.rhel.noarch.rpm and I attempted to install the new upgrade as I have done in the past, just simply by running sudo eFa-Configure ---> Select Option 13.

Well, it wasn't that straight forward this time as I encountered error as shown below;
warning: /var/cache/yum/x86_64/7/eFa4/packages/MailScanner-5.1.4-1.efa.3.rhel.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 108ef6b6: NOKEY

Public key for MailScanner-5.1.4-1.efa.3.rhel.noarch.rpm is not installed
Here is what I did to resolve the issue.

Code: Select all

cd /etc/pki/rpm-gpg
wget https://mirrors.efa-project.org/rpm/eFa4/RPM-GPG-KEY-eFa-Project
Modify /etc/yum.repos.d/efa4.repo to include the "RPM-GPG-KEY-eFa-Project" as shown below;
[eFa4]
name=eFa-Project
baseurl=https://dl.efa-project.org/rpm/eFa4/x86_64
mirrorlist=https://dl.efa-project.org/rpm/eFa4/mirrors-eFa
failovermethod=priority
enabled=1
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-eFa-Project
Now you should be able to successfully install eFa4 released updates.

Note: Some website suggests the dirty way around this is doing

Code: Select all

$ yum install {package-name} --nogpgcheck
I did not try this method and will not be able to comment on it.

I hope this help someone out there.
Last edited by virtualhub on 06 Dec 2019 03:30, edited 1 time in total.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Public key for MailScanner-5.1.4-1.efa.3.rhel.noarch.rpm is not installed

Post by shawniverson »

Should be resolved now. I signed the rpm on the repo.
Post Reply