找不到 AWS CLI 冰川命令

AWS CLI glacier command not found

我收到 "Invalid choice" 错误。

ubuntu@server:/home/foo$ aws glacier
usage: aws [options] <command> <subcommand> [parameters]
aws: error: argument command: Invalid choice, valid choices are:

autoscaling                              | cloudformation
cloudfront                               | cloudsearch
cloudtrail                               | cloudwatch
datapipeline                             | directconnect
dynamodb                                 | ec2
elasticache                              | elasticbeanstalk
elastictranscoder                        | elb
emr                                      | iam
importexport                             | kinesis
opsworks                                 | rds
redshift                                 | route53
ses                                      | sns
sqs                                      | storagegateway
sts                                      | support
swf                                      | s3api
s3                                       | configure
help


ubuntu@server:/home/foo$ aws --version
aws-cli/1.2.9 Python/3.4.0 Linux/3.13.0-65-generic

之前我安装它使用:ubuntu@server:/home/foo$ sudo apt-get install awscli

什么给了?

您的 1.2.9 版本非常旧。根据 changelog 1.7.40 添加了冰川支持,当前是 1.9.15.

也许最好通过 pip 安装它,您的 ubuntu 软件包仓库似乎已过时。