Kudos
Collect
Twiiter
Facebook
Share
Develop somethings, meditation, reading and thinking...

Percona Server 설치 에러 Ubuntu 18.04 GnuPG

Last updated over 5 years ago
2 0 0 0

Ubuntu 18.04 최소설치 하게 되면, Percona Server 가 설치되지 않는 버그가 있다.

Percona Server 설치 에러

$ wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
--2019-03-13 17:53:11--  https://repo.percona.com/apt/percona-release_latest.bionic_all.deb
Resolving repo.percona.com (repo.percona.com)... 74.121.199.234
Connecting to repo.percona.com (repo.percona.com)|74.121.199.234|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8900 (8.7K) [application/octet-stream]
Saving to: ‘percona-release_latest.bionic_all.deb.3’

percona-release_latest.bion 100%[=========================================>]   8.69K  --.-KB/s    in 0s

2019-03-13 17:53:12 (21.5 MB/s) - ‘percona-release_latest.bionic_all.deb.3’ saved [8900/8900]

$ sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
Selecting previously unselected package percona-release.
(Reading database ... 63652 files and directories currently installed.)
Preparing to unpack percona-release_latest.bionic_all.deb ...
Unpacking percona-release (1.0-9.generic) ...
Setting up percona-release (1.0-9.generic) ...
dpkg: error processing package percona-release (--install):
 installed percona-release package post-installation script subprocess returned error exit status 255
Errors were encountered while processing:
 percona-release
E: Sub-process /usr/bin/dpkg returned an error code (1)

에러 디버깅

$ export DEBUG=1
$ sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
...
+ set -e
+ /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
dpkg: error processing package percona-release (--install):
 installed percona-release package post-installation script subprocess returned error exit status 255
Errors were encountered while processing:
 percona-release
...

/usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg 여기서 에러가 나므로 테스트…

$ /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

gnupg ?!?!?!
드디어 원인을 찾았다.

gnupg 설치

$ apt install gnupg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  dirmngr gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libassuan0
  libksba8 libnpth0 pinentry-curses
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

Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Setting up libksba8:amd64 (1.3.5-2) ...
Setting up gnupg-l10n (2.2.4-1ubuntu1.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up libassuan0:amd64 (2.5.1-2) ...
Setting up gpgconf (2.2.4-1ubuntu1.2) ...
Setting up gpgsm (2.2.4-1ubuntu1.2) ...
Setting up gnupg-utils (2.2.4-1ubuntu1.2) ...
Setting up pinentry-curses (1.1.0-1) ...
Setting up dirmngr (2.2.4-1ubuntu1.2) ...
Setting up gpg (2.2.4-1ubuntu1.2) ...
Setting up gpg-agent (2.2.4-1ubuntu1.2) ...
Setting up gpg-wks-server (2.2.4-1ubuntu1.2) ...
Setting up gpg-wks-client (2.2.4-1ubuntu1.2) ...
Setting up gnupg (2.2.4-1ubuntu1.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
W: APT had planned for dpkg to do more than it reported back (70 vs 74).
   Affected packages: percona-release:amd64

다시 테스트 해보면,

$ /usr/bin/apt-key add /etc/apt/trusted.gpg.d/percona-keyring.gpg
OK

Ubuntu 를 서버로 설치할때는 여유가 있다면 일반설치로 진행하는게 퇴근의 지름길임을 알게 되었다.

파일 청소 (필요에 따라)

$ service mysql stop
$ apt-get remove percona-server*
$ apt-get purge percona-server*
$ apt-get autoremove
$ apt-get update
$ apt-get upgrade

이정도면 충분하지 않나 싶다.

What is GnuPG?

The GNU Privacy Guard

GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP). GnuPG allows you to encrypt and sign your data and communications; it features a versatile key management system, along with access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications. A wealth of frontend applications and libraries are available. GnuPG also provides support for S/MIME and Secure Shell (ssh).

from official homepage - The GNU Privacy Guard https://www.gnupg.org/

References

https://jira.percona.com/browse/PS-4607
https://www.gnupg.org/

Hi, my name is Richard. I’m a developer wants to make the world better with logic power. Mainly I use Linux, Nginx, MySQL, PHP and JavaScript . I want to share my knowledge with someone that it was also based from some great persons via LYNMP. 👨‍💻

Essedrop - Make your file online instantly
 

Responses

  • 칼퇴는 사랑입니다~^^ 좋은 글 감사합니다!!!

Leave a response to @richard

Please sign in to comment.
Markdown is also available in comment.