Pawan Bahuguna

Let's Learn and Share
Menu
  • Home
  • Certification Guide
  • Tips
  • Disclaimer
  • Privacy
  • Contact

Home
Linux
Public key for MySQL-Server-5.6.rpm is not Installed [Solved]
Linux

Public key for MySQL-Server-5.6.rpm is not Installed [Solved]

Pawan Bahuguna

MySQL is the world’s most popular Open Source SQL database management system and I too thought giving it a try and learn MySQL server on Red hat Linux operating system some time ago. Being a free software MySQL is easy to download from their official website. Many big companies and organization use the MySQL database server as it is very fast, reliable, and easy to use.

 

Downloading any software from the internet and installing it on your machine is not a big task but sometimes we may face some issue/error where we are unable to install the software and continuously gets an error.

 

Recommended Article: Passed RHCSA & RHCE Exam with Good Marks

 

When I downloaded latest MySQL server package from their official website, I was very happy and thought to work immediately after installing the MySQL server.

But when I unzip the downloaded tar file and run RPM command to install it, I was surprised to see the Public key error which is given below.

 

Linux MySql public key Error

 

Transaction Summary
=============================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
 
Total size: 212 M
Installed Size: 212 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA/SHA1 signature: key ID 5072e1f5: NOKEY


Public key for MySQL-server-5.6.17-1.el6.i686.rpm is not installed

So after reading and analyzing this error carefully, I came to the conclusion that this package needs a public key to install, which was missing on my Linux OS. This is mainly due to when our package repository checks for keys.

So there can be two solution of it. First we can install the key from the repository we are using and secondly we can configure our YUM such that it does not check for key’s.

I used the second method, as it was very easy. I just modified my /etc/yum.conf file and disabled the gpgcheck option. This can be done by just putting gpgcheck value to zero from one.

 

Linux yum conf

 

Command I used

 

# vim /etc/yum.conf

 

Now just edit the gpgcheck option. You can do this by entering r0 when your cursor is at 1, which is highlighted in the above image.

Just my making above changes I was able to proceed further with my installation and it solved ”
Public key for MySQL-Server-5.6.rpm is not installed” error for me.

But my problem does not end here. Now when I again try to install the MySQL server on Red hat Linux I was now getting file conflict error with file from package mysql-libs-5.1.47-4.el6.i686 error.

 

Linux MySql file conflict error

 

So, I Google’d about this error and found that there is some bug and It can be overcome by forcefully installing the MySQL RPM package.

# rpm -ivh --force MySQL-server-5.6.17-1.el6.i686.rpm

 

Note: Please uninstall previous version of MySQL before installing new.

 

After using above command my issue was resolved and I was able to install a MySQL server on my Red hat Linux machine.

Share
Pinterest
Linkedin
Tweet
Google+
Stumble
Email
Next Article

Related Articles

Use Linux CLI on Android Phone
Are you a UNIX or Linux lover like me? If …

Love Linux Terminal? You Will Love This Android Phone Launcher Too

CentOS 8
Good news for all the Linux lovers as CentOS has …

CentOS 8 Available for Download | How to Install

Tags:Linux Tutorial

2 Comments

  1. Tomas

    “I used the second method, as it was very easy.”

    Laziness at its best 🙂

    February 10, 2016
    • Pawan Bahuguna

      Yes, I always like to work as simple as possible.

      February 10, 2016

Certifications at Discount

> Certified Kubernetes Security Specialist (CKS)
> Certified Kubernetes Application Developer (CKAD)!
> Certified Kubernetes Administrator (CKA)!
> Linux Networking and Administration (LFS211)
> Monitoring Systems and Services with Prometheus (LFS241)
> More at The Linux Foundation

Lets Connect

  • Popular
  • Recent

Free Newsletter

Subscribe NOW!

We don’t spam! Read our privacy policy for more info.

Check your inbox or spam folder to confirm your subscription.

Pawan Bahuguna

Let's Learn and Share
Copyright © 2025 Pawan Bahuguna
Home | Privacy Policy | Disclaimer | Contact