<p>In the new GitHub Actions, I am trying to install a package in order to use it in one of the next steps.<br>
`name: CI</p>
<p>on: [push, pull_request]</p>
<p>jobs:<br>
translations:<br>
runs-on: ubuntu-latest<br>
steps:<br>
- uses: actions/checkout@v1<br>
with:<br>
fetch-depth: 1<br>
- name: Install xmllint<br>
run: apt-get install libxml2-utils<br>
…</p>
<pre><code class="lang-auto">
However this fails with
</code></pre>
<p>Run apt-get install libxml2-utils<br>
apt-get install libxml2-utils<br>
shell: /bin/bash -e {0}<br>
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)<br>
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?<br>
##[error]Process completed with exit code 100.</p>
<pre><code class="lang-auto">
What's the best way to do this? Do I need to reach for Docker?
Source : Stack Overflow</code></pre>