Skip to content

sudo apt-get command fails in custom built runner #33

Description

@kimxogus

We are using self-hosted runner which uses custom runner image based on https://github.com/actions/actions-runner-controller .
sudo apt-get command fails in our runners(error logs below).

It seems we can't avoid that sudo apt-get, we can't use this action.

Can you resolve this issue?

Possible solution is to make the command to use bash shell like `bash -c 'sudo apt-get ...' (not sure that would work)

Run leafo/gh-actions-lua@v10
  
Notice: gh-actions-lua: No cache available, clean build
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /runner/_work/_temp/.lua-build -f /runner/_work/_temp/50d5[7](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:7)b5[8](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:9)-88b4-4d30-[9](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:10)8c0-8c004e53123f
/usr/bin/sudo apt-get install -q libreadline-dev libncurses-dev
sudo: apt-get: command not found
Error: Failed to install Lua: Error: The process '/usr/bin/sudo' failed with exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions