在debian-9中安装DRBD9失败



我需要将drbd8升级到drbd9。为此,我遵循本文档。

https://www.linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-升级drbd

步骤1

root@oreo:~# add-apt-repository ppa:linbit/linbit-drbd9-stack
This PPA contains DRBD9, drbd-utils, LINSTOR (client, python API, server).
This differs from official, production grade LINBIT repositories in several ways, including:
- We push RCs immediately to the PPA
- We don't push hotfixes, these usually have to wait until the next RC/release
- We only keep 2 LTS versions up to date (Bionic and Focal, but not Xenial)
For support and access to official repositories see:
https://www.linbit.com or write an email to: sales AT linbit.com
More info: https://launchpad.net/~linbit/+archive/ubuntu/linbit-drbd9-stack
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmp68jovxd3/pubring.gpg' created
gpg: keyserver receive failed: No keyserver available

步骤2接下来,您需要将DRBD签名密钥添加到您的可信密钥中

wget -O- http://packages.linbit.com/gpg-pubkey-53B3B037-282B6E23.asc | apt-key add -

步骤3最后执行一次apt更新,以便Debian识别更新后的存储库。

apt update

我得到错误像这个

apt-get update
Ign:1 http://ftp.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Hit:3 http://download.virtualbox.org/virtualbox/debian stretch InRelease
Hit:4 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease
Hit:5 http://ftp.debian.org/debian stretch-updates InRelease
Ign:6 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute InRelease
Hit:7 http://ftp.debian.org/debian stretch-backports InRelease
Hit:8 http://ftp.debian.org/debian stretch Release
Ign:9 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute Release
Ign:10 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main amd64 Packages
Ign:11 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main all Packages
Ign:12 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main Translation-en
Ign:10 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main amd64 Packages
Ign:11 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main all Packages
Ign:12 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main Translation-en
Ign:10 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main amd64 Packages
Ign:11 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main all Packages
Ign:12 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main Translation-en
Ign:10 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main amd64 Packages
Ign:11 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main all Packages
Ign:12 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main Translation-en
Ign:10 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main amd64 Packages
Ign:11 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main all Packages
Ign:12 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main Translation-en
Err:10 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main amd64 Packages
404  Not Found
Ign:11 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main all Packages
Ign:12 http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute/main Translation-en
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu hirsute Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu/dists/hirsute/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

请帮我

ppa应该只在Ubuntu及其衍生产品上运行。

在debian上要安装drbd9,您需要:

将gpg密钥添加到您的密钥环:

gpg --keyserver keyserver.ubuntu.com --recv-keys 0x53B3B037282B6E23
gpg --export -a 0x53B3B037282B6E23 |sudo apt-key add -

/etc/apt/sources.list:中添加以下行

deb http://packages.linbit.com/<hash>/ stretch drbd-9.0

其中<hash>:是您通过电子邮件收到的40个字符的访问哈希。

然后运行:

sudo apt update
sudo apt install drbd9-utils
E: Failed to fetch http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu/dists/hirsute/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

这是404,因为该路径不存在。参观http://ppa.launchpad.net/linbit/linbit-drbd9-stack/ubuntu/dists/查看所有可用的发行版。

LINBIT通常只为LTS版本提供软件包。虽然,我相信,Hirsute将是一个未来的LTS版本。它目前仍在开发/未来发布中。

最新更新