0

我正在尝试通过以下命令将 Postal 安装到我的 VPS:

卷曲https://raw.githubusercontent.com/atech/postal/master/script/install/ubuntu1604.sh | 嘘

但是面对下面提到的错误:

错误:8 https://www.rabbitmq.com/debian testing Release 404 OK

E: 存储库 'http://www.rabbitmq.com/debian testing Release' 没有 Release 文件。

N:从这样的存储库更新不能安全地完成,因此默认情况下是禁用的。N:有关存储库创建和用户配置详细信息,请参见 apt-secure(8) 联机帮助页。

4

1 回答 1

0

您可以按照网站中的说明手动添加 RabbitMQ 存储库。

该脚本将包含 GPG 密钥以及 RabbitMQ 存储库和 Earlang 存储库。

#!/bin/sh

sudo apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y

## Team RabbitMQ's main signing key
sudo apt-key adv --keyserver "hkps://keys.openpgp.org" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
## Launchpad PPA that provides modern Erlang releases
sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F77F1EDA57EBB1CC"
## PackageCloud RabbitMQ repository
sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F6609E60DC62814E"

## Add apt repositories maintained by Team RabbitMQ
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
## Provides modern Erlang/OTP releases
##
## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main
deb-src http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main

## Provides RabbitMQ
##
## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
deb-src https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
EOF

之后,不要忘记从 中删除旧的和有缺陷的条目/etc/apt/sources.list,否则您的 apt 更新将失败。

于 2021-04-23T12:36:01.623 回答