Errors were encountered while processing: percona-release

Asked by bibhesh singh

I am getting below error on my ubuntu 16.04 local system. Error are as

Setting up percona-release (0.1-4.xenial) ...
dpkg: error processing package percona-release (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up google-chrome-stable (63.0.3239.132-1) ...
Errors were encountered while processing:
 percona-release
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@sysadmin-desktop:~# dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
(Reading database ... 151735 files and directories currently installed.)
Preparing to unpack percona-release_0.1-4.xenial_all.deb ...
Unpacking percona-release (0.1-4.xenial) over (0.1-4.xenial) ...
Setting up percona-release (0.1-4.xenial) ...
dpkg: error processing package percona-release (--install):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 percona-release
root@sysadmin-desktop:~#

Question information

Language:
English Edit question
Status:
Answered
For:
Percona Server moved to https://jira.percona.com/projects/PS Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes issue the command

DEBUG=1 dpkg --configure -a

and copy/paste the output into this question document.

Revision history for this message
bibhesh singh (bibhesh) said :
#2

I got the following out as mention below:

root@sysadmin-desktop:~# DEBUG=1 dpkg --configure -a
Setting up percona-release (0.1-4.xenial) ...
+ set -e
+ /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
+ /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring2.gpg
dpkg: error processing package percona-release (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 percona-release
root@sysadmin-desktop:~#

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What is the output of

ls -l /etc/apt/trusted.gpg.d/percona*
/usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
/usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring2.gpg

(to be executed with root privileges)

Revision history for this message
bibhesh singh (bibhesh) said :
#4

Below are the outputs for the above:

root@sysadmin-desktop:~# ls -l /etc/apt/trusted.gpg.d/percona*
-rw-r--r-- 1 root root 2244 Aug 15 15:23 /etc/apt/trusted.gpg.d/percona-keyring2.gpg~
-rw-r--r-- 1 root root 1178 Aug 15 15:23 /etc/apt/trusted.gpg.d/percona-keyring.gpg

root@sysadmin-desktop:~# /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
OK
root@sysadmin-desktop:~#

root@sysadmin-desktop:~# /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring2.gpg
gpg: can't open `/etc/apt/trusted.gpg.d/percona-keyring2.gpg': No such file or directory
root@sysadmin-desktop:~#

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Try renaming /etc/apt/trusted.gpg.d/percona-keyring2.gpg~ to /etc/apt/trusted.gpg.d/percona-keyring2.gpg

Can you help with this problem?

Provide an answer of your own, or ask bibhesh singh for more information if necessary.

To post a message you must log in.