Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on How do I get lubuntu to not prompt non-admins about updates?

Post

How do I get lubuntu to not prompt non-admins about updates?

+6
−1

I have an old Mac Mini (Late 2009 model) kicking around, and as Apple stopped providing patches for it (and as I'm not going to put an unpatched system on the Internet), I was looking for a Linux distribution to let it do basic tasks (mainly watching Netflix, Youtube, and maybe a bit of LibreOffice usage). I ended up installing Lubuntu 20.04 on it several months ago. For the most part it does what I want, but there's a real big annoyance: Whenever there are updates to apply, it displays a box over whatever the system's doing asking if updates should be applied.

Now, as a general concept it makes sense to want to ask about updates (I mean, like I said the reason I went down this road was because I wanted a system that got current security updates), but it asks regardless of who is logged into the system. That is, while I of course have an admin account on the system that has sudo rights, usually the computer is being used by one of the kids (who each have their own login), and it just gets in the way of what they are trying to do. It seems really weird to me that it prompts for updates, especially when the user it's prompting can't actually do anything about it.

Is there some way to:

  1. Suppress the dialog box asking for updates from non-admin accounts?
  2. Automatically install updates rather than just prompting to do so? (I guess I'm really looking for the Windows-style model here, where it just updates and reboots itself overnight when nobody is logged in and you don't even really notice.)
  3. Or, preferably both?
History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (3 comments)
General comments
celtschk‭ wrote about 3 years ago

For automatic updates, I think the package unattended-updates should do what you want. However I don't think that completely resolves the issue with the message window (if whatever program is responsible for that detects a new update before the unattended update does, the message will still be displayed).

deleted user wrote almost 3 years ago

I think It's better to write a bash script which will forever running. chmod a+x maybe.

Quasímodo‭ wrote almost 3 years ago

How would unatended-upgrades package figure out that you, as a person, has access to root account? Also, from the sudoers file + (if needed) groups info it could figure whether the logged user has full, partial or no sudo rights, but it could hardly figure out whether a user actually has the sudo password. So I think this is not simple. I'd suggest just removing the package and upgrading manually (it's just apt update && apt upgrade after all, you could set a reminder).