[10:42] allo allo [11:23] o/ [11:23] \o [11:55] |O| [12:14] \o/ [12:32] o7 [12:34] o> [16:46] I have a question about security updates! [16:46] On a client's server: [16:46] 57 packages can be updated. [16:46] 1 of these updates is a security update. [16:47] I only want to see/run the 1 security update. Thus running "apt dist-upgrade" isn't ideal. [16:47] "unattended-upgrade" got most of the packages that needed security updates, but not this last one [16:48] Does anybody know how to find out which package it is? [16:48] Without updating all of the others in the process [16:53] https://www.poftut.com/how-to-list-available-updates-and-updateable-packages-with-apt-apt-get-aptitude-commands/ [16:53] I like verbose titles :) [16:53] apt list --upgradable [16:54] (it tells you this after you run apt update) [16:55] Yeah, I tried that, but I don't see where it says which are security updates [16:55] My visual grepping may be bad [16:55] apache2/bionic-updates,bionic-security 2.4.29-1ubuntu4.16 i386 [upgradable from: 2.4.29-1ubuntu4.14] [16:55] after the package name [16:55] bionic-security [16:56] I tried: apt list --upgradable | grep -i sec [16:56] I got: libseccomp2/bionic-updates 2.5.1-1ubuntu1~18.04.1 amd64 [upgradable from: 2.4.3-1ubuntu3.18.04.3] [16:57] what told you one of the 57 was a security update? [16:58] Logging into the server [16:59] So whatever has written to MOTD [16:59] This is weird [17:00] I ran `sudo apt update` and got: 54 packages can be upgraded. Run 'apt list --upgradable' to see them. [17:00] So whatever is in the MOTD is out of date [17:02] Look at the date stamp on /var/lib/update-notifier/updates-available [17:02] which contains the text, that'll tell you when it was generated [17:02] Jun 21 16:15 [17:02] Server's time is UTC [17:03] So about 45 minutes ago [17:03] there's a regular job which updates it [17:04] Okay. I'll leave it for now and check back another day :) [17:04] update-notifier-common [17:04] you could just run dist-upgrade, and not actually say "y" at the end [17:04] Ah [17:04] it will download all the files, and you can see where they come from [17:04] or use the dry-run option to not do it, or the download option [17:05] None of the above has updated the MOTD [17:06] I didn't say it would [17:06] I'm saying you can see what the updates are using those options [17:06] much like apt list --upgradable [17:06] Oh, okay. Yeah, that's not the issue :) [17:07] What specifically is the issue? [17:07] The MOTD saying that there is 1 package for security updates, but running unattended-upgrade is not getting that 1 package. [17:08] How do you know it's not? [17:08] We have since worked out that the MOTD is out of date and will be updated at some point by cron [17:08] Given MOTD isn't dynamic [17:08] I thought that's what we worked out :| [17:08] (you could comment out updates from apt sources.list, and do a dist-upgrade) [17:08] then you'll only get security updates [17:09] I'm saying, how do you know there is still 1 security update, given MOTD isn't dynamic. [17:09] It's my guess that the information is in MOTD [17:10] but you proved there's *now* (since MOTD was generated) no security updates with your grepping? [17:11] "sudo apt update" results in "54 packages can be upgraded. Run 'apt list --upgradable' to see them." [17:11] This is what I see when I ssh into the server: https://paste.ubuntu.com/p/dCMWp5WxpM/ [17:12] Right, and the date stamp on the /var/lib/update-notifier/updates-available file suggests perhaps security updates were pending and have now been installed? Check the unattended-upgrades log? [17:15] Running "unattended-upgrade" results in no email being sent (previous run did send an email when there was something for it to do) [17:15] I meant look at the logs to see what it did. There's a log in /var/log/unattended-upgrades [17:16] From the last run https://paste.ubuntu.com/p/wNwfQ5gJWM/ [17:17] Good news, no security updates to install then. Happy days. [17:17] There's nothing for it to upgrade [17:17] Indeed! [17:17] Except that the MOTD says that there is. That's what I was trying to work out. [17:17] You've let me know that a cron job will update it at some point [17:18] Sweet [17:18] Hapy days [17:18] also happy [17:19] I guess my expectation was that the MOTD would be updated as and when packages were installed/upgraded. I have new knowledge that I can pass on to the client - "yes we can see what the MOTD says, but that's not always in sync with the truth" [17:22] Now I want ribs :| [21:42] Anyone have a feel for which is lighter out of lxde and lxqt? [21:59] Ah, it sounds as though lxqt is newer, somehow. I'll try that.