Install Percona on Fedora

1,391 views
Skip to first unread message

bkuberek

unread,
Dec 2, 2010, 5:59:56 PM12/2/10
to Percona Discussion
Hi all. I am trying to install Percona on Fedora 14. I have tried the
following:


rpm -Uhv http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm

And

rpm -Uhv http://www.percona.com/percona-builds/percona-release/percona-release-0.0-1.x86_64.rpm

both of the above will create the following repo:

[percona]
name = CentOS $releasever - Percona
baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1


However, this will not work. Any time I try using yum, it will
complain about this repo:


# yum list | grep percona
http://repo.percona.com/centos/14/os/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 404 : http://repo.percona.com/centos/14/os/x86_64/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for
repository: percona. Please verify its path and try again



Can someone please help me?

Thanks

bkuberek

unread,
Dec 2, 2010, 11:02:01 PM12/2/10
to Percona Discussion
I figured a hack. I opened the /etc/yum.repos.d/Percona.repo and
updated it


from:

[percona]
name = CentOS $releasever - Percona
baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1


to:

[percona]
name = CentOS 5 - Percona
baseurl=http://repo.percona.com/centos/5/os/x86_64/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1


However the file /etc/pki/rpm-gpg/RPM-GPG-KEY-percona never existed.
So I manually created it from here: http://www.percona.com/downloads/RPM-GPG-KEY-percona


Now yum recognizes the repo and is able to find the packages. But the
GPG key is not working. I get this error:

Total size: 28 M
Installed size: 70 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID
cd2efd2a: NOKEY


GPG key retrieval failed: [Errno 14] Could not open/read
file://etc/pki/rpm-gpg/RPM-GPG-KEY-percona



Thanks in advance for any help

On Dec 2, 5:59 pm, bkuberek <bkube...@gmail.com> wrote:
> Hi all. I am trying to install Percona on Fedora 14. I have tried the
> following:
>
> rpm -Uhvhttp://www.percona.com/downloads/percona-release/percona-release-0.0-...
>
> And
>
> rpm -Uhvhttp://www.percona.com/percona-builds/percona-release/percona-release...
>
> both of the above will create the following repo:
>
> [percona]
> name = CentOS $releasever - Percona
> baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
> enabled = 1
> gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
> gpgcheck = 1
>
> However, this will not work. Any time I try using yum, it will
> complain about this repo:
>
> # yum list | grep perconahttp://repo.percona.com/centos/14/os/x86_64/repodata/repomd.xml:

Aleksandr Kuzminsky

unread,
Dec 3, 2010, 12:27:51 AM12/3/10
to percona-d...@googlegroups.com
Hi!

> However the file /etc/pki/rpm-gpg/RPM-GPG-KEY-percona never existed.
> So I manually created it from here: http://www.percona.com/downloads/RPM-GPG-KEY-percona
>
>
> Now yum recognizes the repo and is able to find the packages. But the
> GPG key is not working. I get this error:
>
> Total size: 28 M
> Installed size: 70 M
> Downloading Packages:
> warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID
> cd2efd2a: NOKEY
>
>
> GPG key retrieval failed: [Errno 14] Could not open/read
> file://etc/pki/rpm-gpg/RPM-GPG-KEY-percona

Looks strange however I didn't test the repo on Fedora.
First of all the gpg key should be installed by percona-release RPM:
$ rpm -qlp
http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-percona
/etc/yum.repos.d
/etc/yum.repos.d/Percona.repo
...
$

If not, please report a bug
https://bugs.launchpad.net/percona-server/+filebug

It should also work if you've downloaded the key manually and put to

/etc/pki/rpm-gpg/RPM-GPG-KEY-percona

On some reason rpm can't read it.

As a workaround I can suggest to set gpgcheck = 0 in Percona.repo.


-Aleks

signature.asc

bkuberek

unread,
Dec 3, 2010, 12:58:07 AM12/3/10
to Percona Discussion
oops! here was the error:

file://etc/pki/rpm-gpg/RPM-GPG-KEY-percona

missing a /

file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona

now it installs correctly.

bkuberek

unread,
Dec 3, 2010, 10:16:00 AM12/3/10
to Percona Discussion

On Dec 3, 12:27 am, Aleksandr Kuzminsky
<aleksandr.kuzmin...@gmail.com> wrote:
> Hi!
>
>
>
> > However the file /etc/pki/rpm-gpg/RPM-GPG-KEY-percona never existed.
> > So I manually created it from here:http://www.percona.com/downloads/RPM-GPG-KEY-percona
>
> > Now yum recognizes the repo and is able to find the packages. But the
> > GPG key is not working. I get this error:
>
> > Total size: 28 M
> > Installed size: 70 M
> > Downloading Packages:
> > warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID
> > cd2efd2a: NOKEY
>
> > GPG key retrieval failed: [Errno 14] Could not open/read
> > file://etc/pki/rpm-gpg/RPM-GPG-KEY-percona
>
> Looks strange however I didn't test the repo on Fedora.
> First of all the gpg key should be installed by percona-release RPM:
> $ rpm -qlphttp://www.percona.com/downloads/percona-release/percona-release-0.0-...
> /etc/pki/rpm-gpg
> /etc/pki/rpm-gpg/RPM-GPG-KEY-percona
> /etc/yum.repos.d/etc/yum.repos.d/Percona.repo
> ...
> $
>
> If not, please report a bughttps://bugs.launchpad.net/percona-server/+filebug
>
> It should also work if you've downloaded the key manually and put to
>
> /etc/pki/rpm-gpg/RPM-GPG-KEY-percona
>
> On some reason rpm can't read it.
>
> As a workaround I can suggest to set gpgcheck = 0 in Percona.repo.
>
> -Aleks
>
>  signature.asc
> < 1KViewDownload

Thanks Aleks. The problem with the rpm is that the generated
Percona.repo uses constants to generate the URL and for the case of
Fedora the url turns out like this:

http://repo.percona.com/centos/$releasever/os/$basearch/
http://repo.percona.com/centos/14/os/x86_64/

which is not found.

The gpg file was not generated either. I worked around by creating the
repo manually and downloading the gpg key.

If you think it is a bug I will add a bug report.

isk sul

unread,
Dec 23, 2012, 6:59:55 AM12/23/12
to percona-d...@googlegroups.com
Sorry for this. But I managed to solve this. The other problem is it conflict with php-mysql on Fedora 17. Any idea?

On Wednesday, 19 December 2012 04:49:52 UTC+8, isk sul wrote:
I issue "service mysql start" but I got this message:

Starting MySQL (Percona Server)...... ERROR! The server quit without updating PID file (/var/lib/mysql/domain.com.pid).

How can I solve it?

Ronald Weidner

unread,
Jul 28, 2015, 3:50:04 PM7/28/15
to Percona Discussion, bkub...@gmail.com
I know this thread is old but... it was an early hit when I tried to install Percona on Fedora 22.  The following was my solution: 

wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.25-73.1/binary/redhat/7/x86_64/Percona-Server-5.6.25-73.1-r07b797f-el7-x86_64-bundle.tar
mkdir Percona
mv Percona-Server-5.6.25-73.1-r07b797f-el7-x86_64-bundle.tar Percona
cd Percona
tar -xvf Percona-Server-5.6.25-73.1-r07b797f-el7-x86_64-bundle.tar
sudo dnf install jemalloc
sudo dnf install perl-Test-Unit
sudo dnf install perl-Test-Simple
rpm -ivh Percona-Server-56-debuginfo-5.6.25-rel73.1.el7.x86_64.rpm  Percona-Server-devel-56-5.6.25-rel73.1.el7.x86_64.rpm Percona-Server-shared-56-5.6.25-rel73.1.el7.x86_64.rpm Percona-Server-tokudb-56-5.6.25-rel73.1.el7.x86_64.rpm Percona-Server-client-56-5.6.25-rel73.1.el7.x86_64.rpm Percona-Server-server-56-5.6.25-rel73.1.el7.x86_64.rpm Percona-Server-test-56-5.6.25-rel73.1.el7.x86_64.rpm

(Note the last command above is a single command.  No new lines.)
Reply all
Reply to author
Forward
0 new messages