debian - 在 debian-9 中安装 DRBD9 失败
问题描述
我需要将 drbd8 升级到 drbd9。为此,我遵循此文档。
https://www.linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-upgrading-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 update 以便 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
推荐阅读
- python - 在 groupby 内循环并更改每个组的第一行
- php - WordPress WP_Query 结果未按日期正确排序?
- javascript - 在用作另一个函数中的回调函数之前,函数不会完全初始化
- apache-kafka - 使用 Java 查找 Kafka 主题中的消息数
- java - 带有@Transactional 的EntityManager persist() 不会抛出DataIntegrityViolationException
- sql - 如何在遍历 300M + 记录并将该信息插入另一个表时获取每天的第一条和最后一条记录的 PKId?
- java - 获取异常是否为 instanceof 而不使用 instanceof 的复杂方法
- c++ - 如何使用 C++ 将数组按字母顺序排序到新数组中?
- python - For 循环只取列表中的最后一个元素
- sql - 如何修复sql中select语句中的子查询