# Amazon Linux 2 certbot error

**URL:** <https://community.letsencrypt.org/t/amazon-linux-2-certbot-error/58432>\
**Category:** Server\
**Created:** [April 2, 2018, 10:31pm UTC](https://community.letsencrypt.org/t/amazon-linux-2-certbot-error/58432 "2018-04-02T22:31:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![were55](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@were55](https://community.letsencrypt.org/u/were55)\
**Post date:** [April 2, 2018, 10:31pm UTC](https://community.letsencrypt.org/t/amazon-linux-2-certbot-error/58432/1 "2018-04-02T22:31:20Z")

</div>

Hi, I followed @nodakai intructions for [Help with certbot on the new "Amazon Linux 2"](https://community.letsencrypt.org/t/help-with-certbot-on-the-new-amazon-linux-2/49399) , but I got a fail in step number 6:

Bootstrapping dependencies for Amazon… (you can skip this with --no-bootstrap)  
yum is /bin/yum  
yum is hashed (/bin/yum)  
Loaded plugins: langpacks, priorities, update-motd  
amzn2-core | 2.0 kB 00:00:00  
Package gcc-7.3.1-5.amzn2.0.0.x86\_64 already installed and latest version  
Package augeas-libs-1.4.0-2.amzn2.2.x86\_64 already installed and latest version  
Package 1:openssl-1.0.2k-8.amzn2.0.1.x86\_64 already installed and latest version  
Package 1:openssl-devel-1.0.2k-8.amzn2.0.1.x86\_64 already installed and latest version  
Package libffi-devel-3.0.13-18.amzn2.x86\_64 already installed and latest version  
Package system-rpm-config-9.1.0-76.amzn2.0.5.noarch already installed and latest version  
Package ca-certificates-2017.2.14-71.amzn2.noarch already installed and latest version  
Package python-devel-2.7.14-58.amzn2.0.2.x86\_64 already installed and latest version  
Package python-virtualenv-1.10.1-4.amzn2.noarch already installed and latest version  
Package python-tools-2.7.14-58.amzn2.0.2.x86\_64 already installed and latest version  
Package python2-pip-9.0.1-16.amzn2.0.3.noarch already installed and latest version  
Package 1:mod\_ssl-2.4.6-67.amzn2.6.1.x86\_64 already installed and latest version  
Nothing to do  
certbot-auto: line 208: certbot-auto: command not found

I setup the server and compare the files (diff) and looks fine:

[ec2-user@ip-172-31-28-180 ~]$ diff -U3 certbot-auto.orig certbot-auto  
— certbot-auto.orig 2018-04-02 21:45:59.351690641 +0000  
+++ certbot-auto 2018-04-02 22:07:32.657625090 +0000  
@@ -840,7 +840,8 @@  
DeprecationBootstrap “macOS” BootstrapMac  
}  
BOOTSTRAP\_VERSION=“BootstrapMac $BOOTSTRAP\_MAC\_VERSION”  
-elif [-f /etc/issue] && grep -iq “Amazon Linux” /etc/issue ; then  
+elif grep -i “Amazon Linux” /etc/issue \> /dev/null 2\>&1 || \

- grep ‘cpe:.\*:amazon\_linux:2’ /etc/os-release \> /dev/null 2\>&1; then  
Bootstrap() {  
ExperimentalBootstrap “Amazon Linux” BootstrapRpmCommon  
}

Any advice?

thanks

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [April 2, 2018, 10:32pm UTC](https://community.letsencrypt.org/t/amazon-linux-2-certbot-error/58432/2 "2018-04-02T22:32:54Z")

</div>

@bmw, I know certbot-auto hasn't been working super-consistently on Amazon Linux, but do you have any theories about the cause of this message?

> [@were55](#):
>
> certbot-auto: line 208: certbot-auto: command not found

---

<div class="post-metadata">

**Author:** ![markengelhardt](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/markengelhardt/32/18987_2.png) [@markengelhardt](https://community.letsencrypt.org/u/markengelhardt)\
**Post date:** [April 2, 2018, 11:29pm UTC](https://community.letsencrypt.org/t/amazon-linux-2-certbot-error/58432/3 "2018-04-02T23:29:11Z")

</div>

From the source, certbot-auto trying to run itself with different args. Maybe make sure the directory that certbot-auto is in is in the PATH?

---

<div class="post-metadata">

**Author:** ![were55](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@were55](https://community.letsencrypt.org/u/were55)\
**Post date:** [April 3, 2018, 1:25am UTC](https://community.letsencrypt.org/t/amazon-linux-2-certbot-error/58432/4 "2018-04-03T01:25:31Z")

</div>

Thanks a lot @markengelhardt, it works !!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [May 3, 2018, 1:25am UTC](https://community.letsencrypt.org/t/amazon-linux-2-certbot-error/58432/5 "2018-05-03T01:25:32Z")

</div>

Closed on May 3, 2018, 1:25am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
