Skip to content

Error on dpkg when running sm-local-configure #25

@DannyDannyDanny

Description

@DannyDannyDanny

I'm following Local IDE integration with SageMaker Studio over SSH for PyCharm / VSCode

  1. Copy SageMaker_SSH_IDE.ipynb into SageMaker Studio and run it ✔
  2. On the local machine, install the library: pip install sagemaker-ssh-helper
  3. Make sure that you installed the latest AWS CLI v2 and the AWS Session Manager CLI plugin. Run the following command to perform the installation: sm-local-configure
    Note: I installed AWS CLI v2 using curl and unzip
    Note: I installed AWS Session Manager using curl and dpkg -i

The error:

$ sm-local-configure
Linux DK023900WSL 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 20.04.6 LTS \n \l

NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Python 3.8.10
sagemaker-ssh-helper: Installing AWS CLI v2
/usr/local/bin/aws
WARNING: Skipping awscli as it is not installed.
Found same AWS CLI version: /usr/local/aws-cli/v2/2.11.19. Skipping install.
AWS default region -
AWS region -
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************W535 shared-credentials-file
secret_key     ****************WBOW shared-credentials-file
    region                eu-west-1      config-file    ~/.aws/config
dpkg: error: requested operation requires superuser privilege

Local Environment

Running locally on WSL

WSL version: 1.1.3.0
Kernel version: 5.15.90.1
WSLg version: 1.0.49
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19044.2846

Please advise!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions