如何解决无法将邮政安装到 VPS
我正在尝试通过命令将 Postal 安装到我的 VPS:
卷曲 https://raw.githubusercontent.com/atech/postal/master/script/install/ubuntu1604.sh |嘘
但是面对下面提到的错误:
Err:8 https://www.rabbitmq.com/debian 测试发布 404确定
E:存储库“http://www.rabbitmq.com/debian testing Release”没有发布文件。
N:无法安全地从此类存储库进行更新,因此默认情况下禁用。 N:有关存储库创建和用户配置详细信息,请参阅 apt-secure(8) 联机帮助页。
解决方法
您可以按照 website 中的说明手动添加 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 更新将失败。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。