The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bash apt-get not found in pipeline

Cesar Alejandro Chavana Cazarez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 14, 2024

Hello

I've been trying to run my pipeline with this yml configuration file but i keep getting this problem 

bash: apt-get: command not found

This is the yml

image: ruby:3.0.3

pipelines:

default:

- step:

name: Run minitests

script:

# Dependencias necesarias

- apt-get update && \

apt-get install -y \

fonts-liberation \

libasound2 \

libatk-bridge2.0-0 \

libatk1.0-0 \

libatspi2.0-0 \

libcups2 \

libdbus-1-3 \

libdrm2 \

libgbm1 \

libgtk-3-0 \

libnspr4 \

libnss3 \

libu2f-udev \

libvulkan1 \

libxcomposite1 \

libxdamage1 \

libxfixes3 \

libxkbcommon0 \

libxrandr2 \

xdg-utils && \

rm -rf /var/lib/apt/lists/*

# Configuracion de chrome y chromedriver

- dpkg -i driver/117.0.5938.132/google-chrome.deb

- export CHROMEDRIVER_PATH=driver/117.0.5938.132/

- export PATH="${CHROMEDRIVER_PATH}:${PATH}"

- export BROWSER=:chrome

- export LOAD=eager

- gem install bundler

- bundle install

- rake runner:run_tests

 It's the image im using? i used the same image in a docker with the same steps and everything runs fine, i don't understand why this happens in the pipeline

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Saxea _Flowie_
Atlassian Partner
April 17, 2024

Hi @Cesar Alejandro Chavana Cazarez ,

The issue is the '\' this are used for escaping in the shell. You can remove it and it should work.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events