Ubuntu 20.04 安装 qpress

1、查看 Ubuntu 系统的版本信息

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal

2、找不到名为 qpress 的软件包

# apt install qpress
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package qpress

3、更新软件源

vim /etc/apt/sources.list.d/percona-original-release.list
#
# This repo is managed by "percona-release" utility, do not edit!
#
deb http://repo.percona.com/percona/apt focal main
deb-src http://repo.percona.com/percona/apt focal main
vim /etc/apt/sources.list.d/percona-prel-release.lis
#
# This repo is managed by "percona-release" utility, do not edit!
#
deb http://repo.percona.com/prel/apt focal main
deb-src http://repo.percona.com/prel/apt focal main

4、更新软件包列表 缺少公钥

# apt update

Err:6 http://repo.percona.com/percona/apt focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9334A25F8507EFA5
Get:8 http://repo.percona.com/prel/apt focal InRelease [9779 B]
Err:8 http://repo.percona.com/prel/apt focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9334A25F8507EFA5
  • 导入 9334A25F8507EFA5 公钥
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9334A25F8507EFA5
Executing: /tmp/apt-key-gpghome.RBXqAuvZfa/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 9334A25F8507EFA5
gpg: key 9334A25F8507EFA5: public key "Percona Development Team (Packaging key) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

5、安装 qpress

# apt update
Hit:1 https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://nginx.org/packages/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:6 http://repo.percona.com/percona/apt focal InRelease [15.8 kB]
Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Get:8 http://repo.percona.com/prel/apt focal InRelease [9779 B]
Get:9 http://repo.percona.com/percona/apt focal/main Sources [4510 B]
Get:10 http://repo.percona.com/percona/apt focal/main amd64 Packages [18.2 kB]
Get:11 http://repo.percona.com/prel/apt focal/main amd64 Packages [851 B]
Fetched 23.6 kB in 2s (10.9 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
86 packages can be upgraded. Run 'apt list --upgradable' to see them.
d# apt install qpress
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  qpress
0 upgraded, 1 newly installed, 0 to remove and 86 not upgraded.
Need to get 39.9 kB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Get:1 http://repo.percona.com/percona/apt focal/main amd64 qpress amd64 11-3.focal [39.9 kB]
Fetched 39.9 kB in 1s (34.8 kB/s)
Selecting previously unselected package qpress.
(Reading database ... 141312 files and directories currently installed.)
Preparing to unpack .../qpress_11-3.focal_amd64.deb ...
Unpacking qpress (11-3.focal) ...
Setting up qpress (11-3.focal) ...
# qpress -v
qpress 1.1

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/133318901