PS MySQL 8.0.30-22 on Ubuntu 22.04 Fails to install repository packages

Hello,

While I was trying to install the new repository packages it failed with the following error:

sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
Selecting previously unselected package percona-release.
(Reading database … 112177 files and directories currently installed.)
Preparing to unpack percona-release_latest.jammy_all.deb …
Unpacking percona-release (1.0-27.generic) …
Setting up percona-release (1.0-27.generic) …
dpkg: error processing package percona-release (–install):
installed percona-release package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
percona-release

Please help!!

Steve

1 Like

Hello @Tiga,
Ubuntu 22.04 Jammy is not on our supported operating systems list at this time for the repo tool. Percona Release Lifecycle Overview I know our engineering teams are working hard to get support for 22.04 out as fast as possible.

You can download all our packages manually for Jammy here: Download Percona Server for MySQL 8.0

1 Like

Hi @Tiga,

Does it work if you install gnupg2 curl packages before you install percona-release package as described in the docs?

I’ve tried installing in the VirtualBox machine and it worked ok:

root@vagrant:~# wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
--2022-11-22 20:27:57--  https://repo.percona.com/apt/percona-release_latest.jammy_all.deb
Resolving repo.percona.com (repo.percona.com)... 142.132.159.91
Connecting to repo.percona.com (repo.percona.com)|142.132.159.91|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11804 (12K) [application/x-debian-package]
Saving to: ‘percona-release_latest.jammy_all.deb’

percona-release_latest.jammy_all.deb                        100%[=========================================================================================================================================>]  11.53K  --.-KB/s    in 0s

2022-11-22 20:27:57 (108 MB/s) - ‘percona-release_latest.jammy_all.deb’ saved [11804/11804]

root@vagrant:~# sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
Selecting previously unselected package percona-release.
(Reading database ... 43570 files and directories currently installed.)
Preparing to unpack percona-release_latest.jammy_all.deb ...
Unpacking percona-release (1.0-27.generic) ...
Setting up percona-release (1.0-27.generic) ...
* Enabling the Percona Original repository
<*> All done!
==> Please run "apt-get update" to apply changes
Specified repository is not supported for current operating system!
The percona-release package now contains a percona-release script that can enable additional repositories for our newer products.

For example, to enable the Percona Server 8.0 repository use:

  percona-release setup ps80

Note: To avoid conflicts with older product versions, the percona-release setup command may disable our original repository for some products.

For more information, please visit:
  https://www.percona.com/doc/percona-repo-config/percona-release.html

type or paste code here
1 Like

@hrvojem ,

Yes, I have the 2 packages installed already.

1 Like

Can you please provide the entire error output why the installation fails?

1 Like

@hrvojem ,

I think I have posted all the errors I get:

sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
Selecting previously unselected package percona-release.
(Reading database … 112177 files and directories currently installed.)
Preparing to unpack percona-release_latest.jammy_all.deb …
Unpacking percona-release (1.0-27.generic) …
Setting up percona-release (1.0-27.generic) …
dpkg: error processing package percona-release (–install):
installed percona-release package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
percona-release

It only has a exit status 2…

1 Like

Can you provide any more details on how to reproduce it?
Are you using VM, Docker image, or something else? Was anything else installed before this package?

Thanks,
Hrvoje

1 Like

This is on my web hosting platform and probably a VM. Before doing the PS installation, I do not have any new package installed, just a routine apt update. I just copy and paste the procedures from PS web site to start the installation. Nothing unusual…

1 Like

Would it be there is something wrong when it try to verify the key…

1 Like

Hi @Tiga
I tried to reproduce your issue but without success. So let’s investigate it togeather!
What I suggest you doing:

cd /var/lib/dpkg/info/
bash -x percona-release.postinst configure

Once it is done please provide here for investigation

1 Like

@Evgeniy_Patlan ,

Here is what I get:

  • SUPRESSOR=‘> /dev/null 2>&1’
  • OLDREPOFILE=/etc/apt/sources.list.d/percona-release.list
  • ‘[’ ‘’ = 1 ‘]’
  • set -e
  • case “$1” in
  • eval ‘/usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg > /dev/null 2>&1’
    ++ /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
1 Like

@Tiga try to execute sudo /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
and check the output

1 Like

@Evgeniy_Patlan ,

It gives me:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: can’t open ‘/etc/apt/trusted.gpg.d/percona-keyring.gpg’: No such file or directory

It seems it fails to add the key in that folder…

1 Like

Hello @Evgeniy_Patlan ,

Do you have any updates on this? Looking forward to your findings.

1 Like

Hi @Evgeniy_Patlan ,

Do you have any updates? I am still waiting for your reply.

Thank you so much

1 Like

I have carefully investigated this issue.
The root of the issue is unavailability of gpg: can’t open ‘/etc/apt/trusted.gpg.d/percona-keyring.gpg’: No such file or directory

So I suggest checking if the directory exists or not and create it if needed.
Warning: apt-key is deprecated - it is just warning and I think we will improve behavior for future releases

1 Like