systemdlete2 | Is there a deterministic way to check if apt upgrade is already running (aside from the obvious check for running process with ps). What I mean is, is there a lock file that can be tested? I have tried lsof on /var/cache/apt/archives/lock but the problem is it spits out errors about /run/user/1000/doc | 01:37 |
---|---|---|
fsmithred | E: Could not get lock /var/lib/apt/lists/lock. It is held by process 32540 (apt) | 01:54 |
systemdlete2 | what command did you run? | 01:57 |
systemdlete2 | well, anyway, I just discovered the -w option to lsof which seems to suppress those warnings | 01:58 |
fsmithred | apt update | 01:59 |
fsmithred | apt update | 01:59 |
systemdlete2 | oh | 01:59 |
fsmithred | better... | 01:59 |
fsmithred | apt upgrade and let it sit there asking for a response | 01:59 |
systemdlete2 | nah | 01:59 |
systemdlete2 | this is for a check routine | 02:00 |
fsmithred | the file i listed is static and it's been ther since 2022 | 02:00 |
systemdlete2 | thanks for that. Wonder why I didn't think of that to start with | 02:00 |
fsmithred | hang on - three files... | 02:00 |
fsmithred | lsof gave me these: /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock /var/cache/apt/archives/lock | 02:01 |
fsmithred | and they're gone when i cancel the upgrade command | 02:02 |
systemdlete2 | right, and with the -w option, that solves that problem | 02:02 |
mason | fsmithred_: Do you have unattended-upgrades installed? | 05:09 |
mason | Oh, this was for systemdlete. | 05:11 |
mason | ...who's no longer here to see it. | 05:12 |
rwp | They come and go like the will-o'-the-wisp... | 05:15 |
mason | heh | 05:15 |
onefang | I was using time to see how long some command took, and the result was - "real +()m,-,134s" lol | 07:58 |
CueXXIII | lol, what is your locale set to? | 07:59 |
onefang | This was for the my system building script. So locale isn't set before the script starts, coz "apt install locales" is near the beginning. | 08:01 |
onefang | After that it should be en_AU.UTF-8 | 08:01 |
CueXXIII | then i wonder how your shell messed that up | 08:01 |
onefang | Entirely possible my RAM gremlim hit it. I'll run it again. | 08:02 |
onefang | If I think the RAM gremlin hit, I free my caches and things, then try it again, that helps. | 08:04 |
gnarface | ntp or ntpdate got installed somewhere in there? | 08:04 |
gnarface | maybe then got called before the script exits? | 08:04 |
onefang | chrony is installed in the test VM by the part of the scripts that builds the VM. | 08:05 |
CueXXIII | but then i would still expect to be "+()" and ",-,134" to be valid, maybe negative, numbers | 08:05 |
onefang | There is an error message printed when I install chrony, which I only found two hits on the Internet, one of them in Japanese or something similar. | 08:07 |
onefang | "dpkg-statoverride: warning: --update given but /var/log/chrony does not exist" though it gets created later. | 08:07 |
onefang | Daedulas BTW. | 08:08 |
onefang | Ah I disable services from running until the end of the process, so chrony wont actually be running. Though this is the first time during these tests this has happened. | 08:09 |
onefang | The time is set correctly on the fresh VM when I boot into it for the first time. | 08:13 |
onefang | "12m15.831s" Much better. B-) | 08:26 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!