Comment 4 for bug 1939665

Revision history for this message
Julian Andres Klode (juliank) wrote (last edit ):

Please ignore Chris (well, do upgrade though, 20.10 is oooold, it hasn't seen security updates in months)

I understand your report, I only implemented lock waiting for the dpkg lock, not for the list lock that update holds.

Note that apt-get generally doesn't wait for the lock, only apt does (you can pass/set options to make apt-get behave the same).

I'm not sure update lock waiting is necessary - there's little point in running update again if you are already updating. It makes sense for install, because you might just want to schedule two installs.

OTOH, I can see you writing a script that does update and install, and which breaks because apt-daily.service is running in the background.