无法将 Ubuntu Precise(12)存储库添加到 Ubuntu 18(Bionic Beaver)

无法将 Ubuntu Precise(12)存储库添加到 Ubuntu 18(Bionic Beaver)

由于几个原因,我尝试glusterfs-client在 Ubuntu 18.04 上安装版本 3.2.5。

glusterfs-client版本 3.2.5 包含在Ubuntu Precise软件包中。

所以我将这两行添加到sources.list

deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse

...然后运行apt-get update,我得到了

W: GPG error: http://us.archive.ubuntu.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
E: The repository 'http://us.archive.ubuntu.com/ubuntu precise Release' is not signed.

好的,所以我添加了密钥:

root@myserver:/home/ubuntu# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
Executing: /tmp/apt-key-gpghome.NFkm9FMqma/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
gpg: key 40976EAF437D05B5: 59 signatures not checked due to missing keys
gpg: key 40976EAF437D05B5: public key "Ubuntu Archive Automatic Signing Key <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

...再次运行apt-get update,出现以下错误:

Reading package lists... Done
W: GPG error: http://us.archive.ubuntu.com/ubuntu precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5

有人能告诉我发生了什么事吗?

提前致谢。

答案1

我没有看到严重的问题。
您可以通过将 3 个 deb 文件下载到 Ubuntu 18.04.2 LTS 来手动安装 GlusterFS 客户端:

cd ~/Downloads
wget https://mirrors.wikimedia.org/ubuntu/ubuntu/pool/main/f/fuse/fuse-utils_2.8.6-2ubuntu2_all.deb
sudo apt install ./fuse-utils_2.8.6-2ubuntu2_all.deb

wget https://mirrors.edge.kernel.org/ubuntu/pool/universe/g/glusterfs/glusterfs-common_3.2.5-1ubuntu1_amd64.deb
sudo apt install ./glusterfs-common_3.2.5-1ubuntu1_amd64.deb

wget https://mirrors.edge.kernel.org/ubuntu/pool/universe/g/glusterfs/glusterfs-client_3.2.5-1ubuntu1_amd64.deb
sudo apt install ./glusterfs-client_3.2.5-1ubuntu1_amd64.deb

为了防止 glusterfs 包升级,您需要使用一个长命令固定/锁定其版本:

cat <<EOF | sudo tee /etc/apt/preferences.d/pin-glusterfs
Package: glusterfs-common
Pin: version 3.2.5-1ubuntu1
Pin-Priority: 1337

Package: glusterfs-client
Pin: version 3.2.5-1ubuntu1
Pin-Priority: 1337
EOF

这将结束于:

$ glusterfsd --version
glusterfs 3.2.5 built on Jan 31 2012 07:39:58
...

$ glusterfs --version
glusterfs 3.2.5 built on Jan 31 2012 07:39:58
...

$ mount.glusterfs --version
glusterfs 3.2.5 built on Jan 31 2012 07:39:58
...

请注意这些软件包将不会收到安全更新

相关内容