/srv/irclogs.ubuntu.com/2021/06/21/#ubuntu-uk.txt

zxm-piallo allo10:42
bigcalmo/11:23
zxm-pi\o11:23
laney|O|11:55
zxm-pi\o/12:14
jlj_o712:32
zxm-pio>12:34
bigcalmI have a question about security updates!16:46
bigcalmOn a client's server:16:46
bigcalm57 packages can be updated.16:46
bigcalm1 of these updates is a security update.16:46
bigcalmI only want to see/run the 1 security update. Thus running "apt dist-upgrade" isn't ideal.16:47
bigcalm"unattended-upgrade" got most of the packages that needed security updates, but not this last one16:47
bigcalmDoes anybody know how to find out which package it is?16:48
bigcalmWithout updating all of the others in the process16:48
zxm-pihttps://www.poftut.com/how-to-list-available-updates-and-updateable-packages-with-apt-apt-get-aptitude-commands/16:53
bigcalmI like verbose titles :)16:53
popeyapt list --upgradable16:53
popey(it tells you this after you run apt update)16:54
bigcalmYeah, I tried that, but I don't see where it says which are security updates16:55
bigcalmMy visual grepping may be bad16:55
popeyapache2/bionic-updates,bionic-security 2.4.29-1ubuntu4.16 i386 [upgradable from: 2.4.29-1ubuntu4.14]16:55
popeyafter the package name16:55
popeybionic-security16:55
bigcalmI tried: apt list --upgradable | grep -i sec16:56
bigcalmI got: libseccomp2/bionic-updates 2.5.1-1ubuntu1~18.04.1 amd64 [upgradable from: 2.4.3-1ubuntu3.18.04.3]16:56
popeywhat told you one of the 57 was a security update?16:57
bigcalmLogging into the server16:58
bigcalmSo whatever has written to MOTD16:59
bigcalmThis is weird16:59
bigcalmI ran `sudo apt update` and got: 54 packages can be upgraded. Run 'apt list --upgradable' to see them.17:00
bigcalmSo whatever is in the MOTD is out of date17:00
popeyLook at the date stamp on /var/lib/update-notifier/updates-available17:02
popeywhich contains the text, that'll tell you when it was generated17:02
bigcalmJun 21 16:1517:02
bigcalmServer's time is UTC17:02
bigcalmSo about 45 minutes ago17:03
popeythere's a regular job which updates it17:03
bigcalmOkay. I'll leave it for now and check back another day :)17:04
popeyupdate-notifier-common17:04
popeyyou could just run dist-upgrade, and not actually say "y" at the end17:04
bigcalmAh17:04
popeyit will download all the files, and you can see where they come from17:04
popeyor use the dry-run option to not do it, or the download option17:04
bigcalmNone of the above has updated the MOTD17:05
popeyI didn't say it would17:06
popeyI'm saying you can see what the updates are using those options17:06
popeymuch like apt list --upgradable17:06
bigcalmOh, okay. Yeah, that's not the issue :)17:06
popeyWhat specifically is the issue?17:07
bigcalmThe MOTD saying that there is 1 package for security updates, but running unattended-upgrade is not getting that 1 package.17:07
popeyHow do you know it's not?17:08
bigcalmWe have since worked out that the MOTD is out of date and will be updated at some point by cron17:08
popeyGiven MOTD isn't dynamic17:08
bigcalmI thought that's what we worked out :|17:08
popey(you could comment out updates from apt sources.list, and do a dist-upgrade)17:08
popeythen you'll only get security updates17:08
popeyI'm saying, how do you know there is still 1 security update, given MOTD isn't dynamic.17:09
bigcalmIt's my guess that the information is in MOTD17:09
popeybut you proved there's *now* (since MOTD was generated) no security updates with your grepping?17:10
bigcalm"sudo apt update" results in "54 packages can be upgraded. Run 'apt list --upgradable' to see them."17:11
bigcalmThis is what I see when I ssh into the server: https://paste.ubuntu.com/p/dCMWp5WxpM/17:11
popeyRight, 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:12
bigcalmRunning "unattended-upgrade" results in no email being sent (previous run did send an email when there was something for it to do)17:15
popeyI meant look at the logs to see what it did. There's a log in /var/log/unattended-upgrades17:15
bigcalmFrom the last run https://paste.ubuntu.com/p/wNwfQ5gJWM/17:16
popeyGood news, no security updates to install then. Happy days.17:17
bigcalmThere's nothing for it to upgrade17:17
bigcalmIndeed!17:17
bigcalmExcept that the MOTD says that there is. That's what I was trying to work out.17:17
bigcalmYou've let me know that a cron job will update it at some point17:17
popeySweet17:18
popeyHapy days17:18
popeyalso happy17:18
bigcalmI 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:19
bigcalmNow I want ribs :|17:22
ballAnyone have a feel for which is lighter out of lxde and lxqt?21:42
ballAh, it sounds as though lxqt is newer, somehow.  I'll try that.21:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!