Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bash: sudo: command not found

kaveh981 March 6, 2018
- curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
          - sudo apt-get install jq
          - unzip awscli-bundle.zip
          - ./awscli-bundle/install -b ~/bin/aws
          - export PATH=~/bin:$PATH

I'm trying to follow this document:  https://confluence.atlassian.com/bitbucket/deploy-to-amazon-ecs-892623902.html

to create a pipeline to make CD/CI to ECS but it returns an error saying:
bash: sudo: command not found

currently I'm using this image: image: atlassian/default-image:2

Is there an image I can use instead that has sudo command?

 

1 answer

1 accepted

0 votes
Answer accepted
Craig Castle-Mead
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2018

Hey Kaveh,

if you’re already logged in as the root user then you don’t need to use sudo, just start at the apt-get part

 

CCM

kaveh981 March 6, 2018

Hey Craig,

The bitbucket pipeline still a bit not clear, First I don't know where the container are created, Are they created on the bitbucket server?

And how can I know if I'm logged in as the root user?

I removed the sudo as you said now it complains that:
E: Unable to locate package jq

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 6, 2018

The command "whoami" will tell you about your login.

The "apt-get install jq" means it wants to install a JSON parsing tool on the system you are running on.  Problem is that your system does not have that package in its current repository lists.  You'll need to read up on how to add a repository for it to your particular system (or install it from a different place)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events