libera/#devuan/ Friday, 2024-04-19

systemdlete2Is 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/doc01:37
fsmithredE: Could not get lock /var/lib/apt/lists/lock. It is held by process 32540 (apt)01:54
systemdlete2what command did you run?01:57
systemdlete2well, anyway, I just discovered the -w option to lsof which seems to suppress those warnings01:58
fsmithredapt update01:59
fsmithredapt update01:59
systemdlete2oh01:59
fsmithredbetter...01:59
fsmithredapt upgrade and let it sit there asking for a response01:59
systemdlete2nah01:59
systemdlete2this is for a check routine02:00
fsmithredthe file i listed is static and it's been ther since 202202:00
systemdlete2thanks for that.  Wonder why I didn't think of that to start with02:00
fsmithredhang on - three files...02:00
fsmithredlsof gave me these: /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock /var/cache/apt/archives/lock02:01
fsmithredand they're gone when i cancel the upgrade command02:02
systemdlete2right, and with the -w option, that solves that problem02:02
masonfsmithred_: Do you have unattended-upgrades installed?05:09
masonOh, this was for systemdlete.05:11
mason...who's no longer here to see it.05:12
rwpThey come and go like the will-o'-the-wisp...05:15
masonheh05:15
onefangI was using time to see how long some command took, and the result was - "real    +()m,-,134s"  lol07:58
CueXXIIIlol, what is your locale set to?07:59
onefangThis 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
onefangAfter that it should be en_AU.UTF-808:01
CueXXIIIthen i wonder how your shell messed that up08:01
onefangEntirely possible my RAM gremlim hit it.  I'll run it again.08:02
onefangIf I think the RAM gremlin hit, I free my caches and things, then try it again, that helps.08:04
gnarfacentp or ntpdate got installed somewhere in there?08:04
gnarfacemaybe then got called before the script exits?08:04
onefangchrony is installed in the test VM by the part of the scripts that builds the VM.08:05
CueXXIIIbut then i would still expect to be "+()" and ",-,134" to be valid, maybe negative, numbers08:05
onefangThere 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
onefangDaedulas BTW.08:08
onefangAh 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
onefangThe 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/!