Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix the spontaneous dpkg frontend lock failures #12

Open
MartinLoeper opened this issue Jun 7, 2021 · 2 comments
Open

tests: fix the spontaneous dpkg frontend lock failures #12

MartinLoeper opened this issue Jun 7, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@MartinLoeper
Copy link
Member

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
@MartinLoeper MartinLoeper added the bug Something isn't working label Jun 7, 2021
@SinBirb
Copy link

SinBirb commented Jun 7, 2021

while [[ $(lsof /var/lib/dpkg/lock-frontend |& grep unattend) ]]
do
  sleep 2
done
killall -9 apt apt-get

https://itsfoss.com/could-not-get-lock-error/

@MartinLoeper
Copy link
Member Author

Thanks @SinBirb!
I do not know if this works in this case though.
I wait until frontend lock is released before running the installer.
Somehow a background job or so triggers apt-get and makes the intermediate apt calls in the installer script fail.
Any idea what might be running there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants