Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78170 - [aws-cli-v2] Download of aws-cli-v1

Attached to Project: Community Packages
Opened by Ben Leynen (benleynen) - Tuesday, 11 April 2023, 15:16 GMT
Last edited by Toolybird (Toolybird) - Thursday, 13 April 2023, 08:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Chih-Hsuan Yen (yan12125)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: When downloading aws-cli-v2 (https://archlinux.org/packages/community/any/aws-cli-v2/), I'm getting the v1 binary, the exact same version as package aws-cli (https://archlinux.org/packages/community/any/aws-cli/).
It is my first bug report so I may be missing something. But this confused the hell out of me so I made a ticket anyway.
In my eyes, aws-cli-v2 should provision the awscli-v2 from aws, but the one that is installed on my machine is the v1 version every time.

Steps to reproduce:
# first install aws-cli version 1 (aws-cli) https://archlinux.org/packages/community/any/aws-cli/
$ sudo pacman -S aws-cli
...
$ type -a aws
aws is /usr/bin/aws
$ aws --version
aws-cli/1.25.56 Python/3.10.10 Linux/6.1.22-1-lts awscrt/0.16.11 botocore/1.27.55
$ aws ecr
Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
...

# Then install aws-cli version 2, this binary is the exact same version as the package from above (aws-cli-v2) https://archlinux.org/packages/community/any/aws-cli-v2/
$ sudo pacman -R aws-cli
...
$ sudo pacman -S aws-cli-v2
...
$ type -a aws
aws is /usr/bin/aws
$ aws --version
aws-cli/1.25.56 Python/3.10.10 Linux/6.1.22-1-lts awscrt/0.16.11 botocore/1.27.55
$ aws ecr
Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
...


# Then do the manual install via the AWS docs, which gives us the correct version (2.xx.xx): https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
$ sudo pacman -R aws-cli-v2
...
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
...
$ unzip awscliv2.zip
...
$ sudo ./aws/install
...
$ aws --version
aws-cli/2.11.11 Python/3.11.2 Linux/6.1.22-1-lts exe/x86_64.arch prompt/off
$ type -a aws
aws is /usr/local/bin/aws
$ aws ecr

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
...
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 13 April 2023, 08:18 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Reporter says "Solved. A rogue binary was deleted."
Comment by Chih-Hsuan Yen (yan12125) - Thursday, 13 April 2023, 05:53 GMT
I cannot reproduce the issue. Could you check you don't have other aws-cli files installed on the system? Some possible places: /usr/local/lib/python3.10/site-packages, $HOME/.local/lib/python3.10/site-packages
Comment by Ben Leynen (benleynen) - Thursday, 13 April 2023, 06:28 GMT
I removed any package starting with aws under `/usr/lib/python3.10/site-packages`, `/home/user/.local/lib/python3.10/site-packages`, `/home/user/.local/lib/python3.9/site-packages` and this did indeed solve it. I swear I uninstalled all `aws` binaries earlier and tried executing `aws` but received a `command not found`, but I probably still don't understand what the core issue actually was. Frustrating.

Thanks a bunch for looking into it so quickly and sorry for the noise.

Loading...