问题描述
我需要将 drbd8 升级到 drbd9。为此,我遵循此文档。
https://www.linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-upgrading-drbd
第一步
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 版本。它目前仍然是一个开发/未来版本。