[Fixed] AWS CLI V2 installation issue – Amazon-web-services

by
Alexei Petrov
amazon-web-services aws-cli

Quick Fix: "While waiting for a fix for the issue, you can install the previous version of AWS CLI V2 using the provided cURL command. Extract the downloaded zip file and run the installation script with the update flag."

The Problem:

A user is experiencing an error when trying to install the version 2 of Amazon Web Services (AWS) command-line interface (CLI) on Ubuntu 22.04 running on Windows Subsystem for Linux (WSL). The error message received is "Fatal error condition occurred in /tmp/….". The user seeks guidance on how to resolve this issue.

The Solutions:

Solution 1: Installing Previous AWS CLI Version

The error message you encountered is related to a known issue with AWS CLI v2 installation on Ubuntu 22.04 running on WSL. As a workaround, you can install the previous version (v2.13.33) of AWS CLI using the following steps:

  1. Download the AWS CLI v2.13.33 ZIP File:

    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.13.33.zip" -o "awscliv2.zip"
    
  2. Unzip the Downloaded File:

    unzip awscliv2.zip
    
  3. Install AWS CLI v2.13.33:

    Navigate to the extracted directory and run the following command:

    sudo ./aws/install --update
    
  4. Verify the Installation:

    To confirm that AWS CLI v2.13.33 is installed correctly, run the following command:

    aws --version
    

    You should see output similar to this:

    AWS CLI v2.13.33
    

By following these steps, you can successfully install the previous version of AWS CLI v2 and avoid the error message you encountered.

Q&A

Troubleshooting AWS CLI V2 installation error on Ubuntu 22.04

Workaround available. Install AWS CLI v2.13.33 using the direct download.

Reason behind the installation problem

Could be related to a conflict with other installed AWS software.

Alternative solution method

Attempt installation in a new virtual environment (e.g. virtualenv).

Video Explanation:

The following video, titled "Related Video", provides additional insights and in-depth exploration related to the topics discussed in this post.

Play video

This video provides further insights and detailed explanations related to the content discussed in the article.