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

"Could not get lock /var/lib/dpkg/lock-frontend" when installing apt packages #13

Closed
janoskut opened this issue May 23, 2021 · 1 comment

Comments

@janoskut
Copy link

Sometimes when running the firstboot scripts and installing apt packages, I'm getting this error:

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?

This is possibly because of apt-daily.service and apt-daily-upgrade.service also running on system start, as pointed out in this answer.

I think it would be a good idea to add apt-daily.service apt-daily-upgrade.service to After= in the service unit.

@nmcclain
Copy link
Owner

Added to main. THANK YOU!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants