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

Package install fails when apt is in use #103

Open
borpin opened this issue Jul 16, 2020 · 1 comment
Open

Package install fails when apt is in use #103

borpin opened this issue Jul 16, 2020 · 1 comment

Comments

@borpin
Copy link
Contributor

borpin commented Jul 16, 2020

'apt' may be in use when the scripts wish to install a package. No check is made to ensure it has installed sucessfully or if apt is in use. This may be why there have been issues with emonhub updates.

https://community.openenergymonitor.org/t/emonpi-update-jammed-at-sudo-apt-install-python3-pip/14817/7?u=borpin

background

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

@borpin
Copy link
Contributor Author

borpin commented Jul 16, 2020

One solution might be to check if the apt update services are running and if not, stop them. If they are running, need to wait until they have finished.

systemctl status {apt-daily-upgrade.timer,apt-daily.timer}

However, several different things can start apt so it isn't robust (https://saveriomiroddi.github.io/Handling-the-apt-lock-on-ubuntu-server-installations/).

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

1 participant