大网数据广告活动
服务器运维问答

I cannot get certbot to install on a particular AWS EC2 Linux instance

· 52CE 我爱测

I'm trying to install certbot on the instance where we have a Bitnami Trac/SVN stack and a Tomcat server installed, and when I do yum install -y certbot python2-certbot-apache I keep getting No package certbot available. No packa…

问题原文

原帖链接 · hbquikcomjamesl · CC BY-SA 4.0

I'm trying to install certbot on the instance where we have a Bitnami Trac/SVN stack and a Tomcat server installed, and when I do

yum install -y certbot python2-certbot-apache

I keep getting

No package certbot available.
No package python2-certbot-apache available.
Error: Nothing to do

But it worked fine on another (newer) instance, the one hosting our web site!

/etc/os-release on the Trac/SVN/Tomcat instance (the one where it won't install) shows:

NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

while on the web site instance (the one where it was successfully installed), it shows:

NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

Can anybody explain what's going wrong? And what can be done about it?

I've tried what was suggested at https://stackoverflow.com/questions/53545436/no-package-certbot-available , with no success.

已采纳解答

原帖链接 · hbquikcomjamesl · CC BY-SA 4.0

I stumbled upon the answer. It seems that Amazon Linux and Amazon Linux 2 have two entirely separate sets of instructions for installing certbot.

I was using the Amazon Linux 2 instructions when I should have been using the Amazon Linux instructions. Trying again with the correct set of instructions got me a working certbot-auto.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-01-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。