Can't install GitHub actions runner on linux


I’m trying to install a GitHub runner on my Linux machine (Ubuntu 20.04.1 LTS) following the steps described at repo>settings>Actions>add runner. The first steps worked fine but when I run the config:

./ --url <repo URL> --token <token>

I get the following failure message:

ldd: ./bin/ No such file or directory
ldd: ./bin/ No such file or directory
touch: cannot touch '.env': Permission denied
./ line 37: .path: Permission denied
./ line 32: .env: Permission denied
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/actions-runner/_diag' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileSystem.CreateDirectory(String fullPath)
   at System.IO.Directory.CreateDirectory(String path)
   at GitHub.Runner.Common.HostTraceListener..ctor(String logFileDirectory, String logFilePrefix, Int32 pageSizeLimit, Int32 retentionDays)
   at GitHub.Runner.Common.HostContext..ctor(String hostType, String logFile)
   at GitHub.Runner.Listener.Program.Main(String[] args)
./ line 76: 10405 Aborted                 (core dumped) ./bin/Runner.Listener configure "$@" does not allow the user to execute it as sudo, so I’ve modified the script to be allowed to do so but the problems with the permissions remain. Any ideas?

UPDATE: I also installed dependencies by running the command below in /actions-runner directory and nothing has changed, the error message is still the same.

sudo ./bin/


Expanding on @someone’s answer, I created a quick loop to make symlinks for every one of of these renamed libraries that live in the bin directory of the github action runners. After running the script, it creates a symlink for every file that starts with "System." and appends "lib" to the original filename.

sudo ./bin/ \
   && cd ./bin \
   && for lib in $(find . -name 'System.*'); do \
     toFile=$(echo "$lib" | sed -e 's/\.\/System\./.\/libSystem./g'); \
     if ! [ -f $toFile ]; then sudo ln -s $lib $toFile; fi; \
  done && cd ..

Answered By – draxiom

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published