Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install awscli in GitHub Action #8978

Closed
1 task
patrickpasquini opened this issue Oct 16, 2024 · 2 comments
Closed
1 task

Cannot install awscli in GitHub Action #8978

patrickpasquini opened this issue Oct 16, 2024 · 2 comments
Assignees

Comments

@patrickpasquini
Copy link

patrickpasquini commented Oct 16, 2024

Describe the bug

When running the GitHub Action script that executes the command sudo apt-get install awscli, I encounter an error.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The command is expected to execute normally.

Current Behavior

I am receiving the following error:

Package awscli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'awscli' has no installation candidate

Reproduction Steps

runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
      with:
        ref: ${{github.ref_name}}
        
    - name: Install AWS CLI
      run: |
        sudo apt-get update
        sudo apt-get install awscli

Possible Solution

No response

Additional Information/Context

No response

CLI version used

latest

Environment details (OS name and version, etc.)

ubuntu-latest

@patrickpasquini patrickpasquini added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 16, 2024
@tim-finnigan tim-finnigan self-assigned this Oct 16, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reaching out. The latest Ubuntu runner should have AWS CLI preinstalled on it. (Also for reference please note the supported installation methods for the CLI documented for v1 and v2).

If you want to authenticate to AWS through a GitHub action you can use configure-aws-credentials. Also there is an open feature request for an AWS CLI GitHub action: #4835.

@tim-finnigan tim-finnigan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
@tim-finnigan tim-finnigan removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 16, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants