I've been having an issue for a while with mintupdate not detecting updates on one machine. Using sudo apt update from the command line was working fine, and once it realised there were patches to apply it would go ahead and install them so it wasn't a showstopper but still mildly annoying.
I had been suspecting it may be something to do with sudo config, and mintupdate has its own config file in /etc/sudoers.d to allow anyone to check for updates - only permitted users can apply them though.
The final clue was in the /var/log/auth.log file which gave me something more specific to search on
sudo: pam_unix(sudo:auth): auth could not identify password for [username]
This lead to a post on stackoverflow.com and in particular the comment from Bill McGonigle regarding the order of processing config files in sudoers.d. The mintupdate file allows certain privileged programs to be called by anyone without authentication
# Allow any user to check for new system updates without
# requiring user authentication.
ALL ALL = NOPASSWD:/usr/bin/mint-refresh-cache
ALL ALL = NOPASSWD:/usr/lib/linuxmint/mintUpdate/synaptic-workaround.py
ALL ALL = NOPASSWD:/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
I had also added a file called tyrell which allows members of the linuxadmin group to do anything after an authentication. And yes, I'm a member of the linuxadmin group so this applied to me.
%linuxadmin ALL=(ALL:ALL) ALL
The config files are parsed in name order with settings in later files taking priority. Since tyrell is alphabetically after mintupdate its settings applied so I didn't get the ability to call mint-refresh-cache without authenticating. I can't help feeling this is something mintupdate should at least be able warn about, or even prompt for authentication.
Simply renaming the tyrell file to 10tyrell fixed the issue. 10tyrell is applied first, giving me the ability to do anything after an authentication prompt, then mintupdate adds the NOPASSWD for all users, including me, for just those three programs.
The next task is to update my deployment playbooks to use the new name as well.
Win!