ubuntu 20.04安装XtraBackup 2.4.29

内容目录

安装XtraBackup 2.4.29

# 下载 Percona APT 仓库的安装包
wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb

# 安装 Percona APT 仓库的安装包,配置 Percona 的 APT 源
dpkg -i percona-release_latest.generic_all.deb

# 更新 APT 包列表,确保最新的 Percona 包信息被加载
apt-get update

# 安装 percona-xtrabackup-24 包,这是 Percona XtraBackup 工具的主要版本
apt install percona-xtrabackup-24

# 下载特定版本的 percona-xtrabackup-24 的 Debian 安装包(适用于 focal 版本)
wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2.4.29/binary/debian/focal/x86_64/percona-xtrabackup-24_2.4.29-1.focal_amd64.deb

# 安装下载的特定版本的 percona-xtrabackup-24 包
dpkg -i percona-xtrabackup-24_2.4.29-1.focal_amd64.deb

apt-get update报错处理

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5BA31D57EF5975CA
W: GPG error: http://repo.mysql.com/apt/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C

这个错误表明系统缺少 Jenkins APT 仓库的公钥,导致无法验证其签名。你可以按照以下步骤解决这个问题:

1. 获取缺失的公钥

根据错误信息,缺少的公钥是 5BA31D57EF5975CA。你可以使用 apt-key 命令来导入这个公钥。

执行以下命令:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5BA31D57EF5975CA

这将从公钥服务器下载并导入 Jenkins 的公钥。

2. 更新包列表

导入公钥后,更新 APT 包列表:

sudo apt-get update

这应该会消除 GPG 错误。

3. 继续安装或更新软件包

类似key错误都可以这样处理

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注