This post explains how to install latest AWS CLI version 2 on Ubuntu.
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
# Output
aws-cli/2.2.41 Python/3.8.8 Linux/5.11.0-36-generic exe/x86_64.ubuntu.20 prompt/off
Category: AWS