Got an error “Unable to find a match: certbot” in Amazon Linux 2023【AWS】
1 min readMay 20, 2023
While I was putting SSL into my Nginx server, I wasn’t able to solve the issue below for a while.
>sudo dnf install -y certbot
created by dnf config-manager from file:///home/ec2-user/certbot 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'home_ec2-user_certbot':
- Curl error (37): Couldn't read a file:// file for file:///home/ec2-user/certbot/repodata/repomd.xml [Couldn't open file /home/ec2-user/certbot/repodata/repomd.xml]
Error: Failed to download metadata for repo 'home_ec2-user_certbot': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: home_ec2-user_certbot
Last metadata expiration check: 5:48:38 ago on Thu Apr 27 18:27:27 2023.
No match for argument: certbot
Error: Unable to find a match: certbot
The cause is that I was referring to wrong manuals. The URL below is correct. The part of OS is not fedora but pip.
At first, I thought Amazon linux was fedora, so I had to use fedora’s way in certbot. However, that was wrong…