# Sudo Certbot Command Not Found Linux2

**URL:** https://community.letsencrypt.org/t/sudo-certbot-command-not-found-linux2/102243
**Category:** Help
**Created:** [September 17, 2019, 8:57pm UTC](https://community.letsencrypt.org/t/sudo-certbot-command-not-found-linux2/102243 "2019-09-17T20:57:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hubvill](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hubvill](https://community.letsencrypt.org/u/hubvill)
#### Post date: [September 17, 2019, 8:57pm UTC](https://community.letsencrypt.org/t/sudo-certbot-command-not-found-linux2/102243/1 "2019-09-17T20:57:09Z")

</div>

I am following AWS Linux 2 documentation on setting up Lets Encrypt, but have ran into an issue and was hoping someone could help. [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt)

After Installing Cerbot:

sudo yum install -y certbot python2-certbot-apache

I try to run CertBot with the following command:

sudo certbot

I get the following error: sudo: certbot: command not found

Any ideas what I am doing wrong?

Thanks!

---

<div class="post-metadata">

### Author: ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)
#### Post date: [September 17, 2019, 9:03pm UTC](https://community.letsencrypt.org/t/sudo-certbot-command-not-found-linux2/102243/2 "2019-09-17T21:03:14Z")

</div>

What was the output of the `yum install` command? Did it actually succeed?

Also the following:

```
rpm -qa | grep certbot
```

---

<div class="post-metadata">

### Author: ![hubvill](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hubvill](https://community.letsencrypt.org/u/hubvill)
#### Post date: [September 17, 2019, 9:13pm UTC](https://community.letsencrypt.org/t/sudo-certbot-command-not-found-linux2/102243/3 "2019-09-17T21:13:23Z")

</div>

I checked the error during installation and I was running out of ram. Had to temporarily stop some services. Now its all good. Thanks!

---

<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: [October 17, 2019, 9:13pm UTC](https://community.letsencrypt.org/t/sudo-certbot-command-not-found-linux2/102243/4 "2019-10-17T21:13:27Z")

</div>

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