简体   繁体   中英

aws cli version 2 install - "command not found" error

I am beginner to aws, i installed aws cli v2 on my linux machine using-

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

After the install if i run aws --version i get

"Command 'aws' not found,"

my path has usr/local/bin

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

If i do

$ sudo /usr/local/bin/aws --version
aws-cli/2.5.6 Python/3.9.11 Linux/5.4.0-107-generic exe/x86_64.ubuntu.20 prompt/off

it works fine.

I added

export PATH=/usr/local/bin:$PATH

to my.profile and ran. ~/.profile as well. But no luck.

Please help me.

OP Here. What worked for me was

sudo chmod -R 755 /usr/local/aws-cli

Don't know why AWS bundler could not do it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM