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

Error install Python #4230

Closed
redschumi opened this issue Mar 29, 2021 · 5 comments
Closed

Error install Python #4230

redschumi opened this issue Mar 29, 2021 · 5 comments

Comments

@redschumi
Copy link

redschumi commented Mar 29, 2021

Update

2nd try works without an error. don’t know why.
Dietpi runs only openssh server & client, nordvpn.

Creating a bug report/issue

Wanted to install Python, but the following error occurred

Details:

  • Date | Mon Mar 29 22:32:09 CEST 2021
  • DietPi version | v7.0.2 (MichaIng/master)
  • Image creator | DietPi Core Team
  • Pre-image | Raspbian Lite
  • Hardware | RPi 4 Model B (armv7l) (ID=4)
  • Kernel version | Linux nordvpnpi 5.10.17-v7l+ DietPi-Config | Minor NTP enhancements #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
  • Distro | buster (ID=5,RASPBIAN=1)
  • Command | apt-get -q update
  • Exit code | 100
  • Software title | DietPi-Software

Steps to reproduce:

  1. ...
  2. ...

Expected behaviour:

  • ...

Actual behaviour:

  • ...

Extra details:

  • ...

Additional logs:

Reading package lists...
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.

@ravenclaw900
Copy link
Collaborator

That usually means that something else was using APT at the time you ran that command. If everything's working now, can this be closed?

@MichaIng
Copy link
Owner

Probably the daily APT update check. I was already thinking that we need to detect it, print a meaningful message and allow some minutes for it to finish.

@redschumi
What time does your daily cron job run?

grep daily /etc/crontab

22:32:09 you timestamp above doesn't look like a usual time though.

@redschumi
Copy link
Author

redschumi commented Mar 30, 2021

@MichaIng

25 1 * * * root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; }

@MichaIng
Copy link
Owner

Okay, default 01:25. Not sure what blocked APT then. Use e.g. htop to see running processes and identify what has called APT, in case you run into the same issue again.

@redschumi
Copy link
Author

Okay, default 01:25. Not sure what blocked APT then. Use e.g. htop to see running processes and identify what has called APT, in case you run into the same issue again.

Ok, thanks, will do that.

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

3 participants