I wanted to install a standard Linux package that I would then use as part of a shell script. I got an interesting answer. Apparently we don’t have permissions to install packages on the workflow’s runner. That makes sense, but I still need the basic ping capability to run from a shell script. How should this be done? I’ve done something similar with other libraries, but those may be specialized.
This is the command and the errors I got.
Run apt-get install -y iputils-ping
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
This is a snippet of another workflow that did work to install python.
python -m pip install --upgrade pip
pip install pytest