반응형
우분투에서 percona-release 설치 시 post-installation 오류를 해결하는 방법
오류 내용
sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
Selecting previously unselected package percona-release.
(Reading database ... 16512 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 255
Errors were encountered while processing:
percona-release
원인 분석
percona-release 패키지는 설치 완료 단계에서 APT 저장소 등록 및 GPG 키 설정 작업을 수행합니다.
이 과정에서 아래 패키지가 없으면 post-installation 스크립트가 실패할 수 있습니다.
- gnupg
- gpg
- ca-certificates
- curl
특히 최소 설치된 Ubuntu 이미지나 컨테이너 환경에서는 gnupg가 빠져 있는 경우가 많습니다.
해결 방법
1. 필수 패키지 설치
sudo apt-get update
sudo apt-get install -y gnupg ca-certificates curl
2. percona-release 패키지 재설정
이미 설치 도중 실패한 상태라면 아래 명령으로 재설정합니다.
sudo dpkg --configure -a
또는 다시 설치
sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
3. Percona XtraBackup 설치
Percona XtraBackup 8.0 설치
sudo apt-get update
sudo apt-get install -y percona-xtrabackup-80
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
curl libcurl4 libcurl4-openssl-dev libdbd-mysql-perl libdbi-perl libev4 libmysqlclient21 libpopt0 mysql-common rsync
Suggested packages:
libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev libssl-dev pkg-config zlib1g-dev libclone-perl libmldbm-perl
libnet-daemon-perl libsql-statement-perl python3-braceexpand
The following NEW packages will be installed:
libcurl4-openssl-dev libdbd-mysql-perl libdbi-perl libev4 libmysqlclient21 libpopt0 mysql-common percona-xtrabackup-80 rsync
The following packages will be upgraded:
curl libcurl4
2 upgraded, 9 newly installed, 0 to remove and 14 not upgraded.
Need to get 46.7 MB of archives.
After this operation, 148 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
invoke-rc.d: policy-rc.d denied execution of start.
/usr/sbin/policy-rc.d returned 101, not running 'start rsync.service'
Setting up percona-xtrabackup-80 (8.0.35-30-1.jammy) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
설치 확인
xtrabackup --version
xtrabackup version 8.0.35-30 based on MySQL server 8.0.35
728x90
반응형
'리눅스' 카테고리의 다른 글
| 샘플 데이터베이스와 테이블을 생성하는 방법 (0) | 2024.05.02 |
|---|---|
| 리눅스 fping 명령어 사용법 정리 (0) | 2024.04.25 |
| Minikube의 주요 명령 (0) | 2024.04.11 |
| 우분투에서 Certbot을 사용하여 Let's Encrypt SSL 인증서를 생성하는 방법 (0) | 2024.03.28 |
| Portainer를 설치하고 컨테이너를 관리하는 방법 (0) | 2024.03.27 |