I have the following command in package.json
to install openjdk-11-jdk-headless
:
“eas-build-pre-install”: “apt-get update; apt-get -y install openjdk-11-jdk-headless”
but getting the following error during build:
Script ‘eas-build-pre-install’ is present in package.json, running it…
yarn run v1.22.17
$ apt-get update; apt-get -y install openjdk-11-jdk-headless
Reading package lists…[stderr] E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
[stderr] E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
[stderr] E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
[stderr] error Command failed with exit code 100.
info Visit yarn run | Yarn for documentation about this command.
yarn exited with non-zero code: 100
This used to work fine a while ago. Any ideas why I’m getting this error now?