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

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

0 votes
Saxea _Flowie_
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.
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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events