How do I get lubuntu to not prompt non-admins about updates?
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:
- Suppress the dialog box asking for updates from non-admin accounts?
- 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.)
- Or, preferably both?
1 answer
I didn't use Lubuntu. So, I don't have idea of Lubuntu's UI/UX. When we update system, it actually make changes to the system which only root user can do. If you want to give the access to those kids than, you have to make some changes to a file. Run the command (You can watch the tutorial. To know more about admin privilege)
sudo visudo
Then, the file will appear. Then, you should make some changes to give admin privilege to those kids. Actually, normal user can't make every changes cause, normal user don't have access to use every file or, command.
To update your system you have to run following command
sudo apt-get update
Above command is for Debian-Based Linux. Lubuntu is Debian-Based Linux. For, Arch-Based Linux you have to run following command.
sudo pacman -Syyu
As far as I remember in Ubuntu I found a way to directly update system by clicking on button (I am not sure of the information cause, I had used Ubuntu lot of days ago. And, Lubuntu is similar to Ubuntu).
For automatic updates :
- How to Enable Automatic Updates on Ubuntu 20.04
- How to set up automatic updates for Ubuntu Linux 18.04
sudo vim /etc/apt/apt.conf.d/20auto-upgrades
You can use gedit
/nano
instead of vim
. By default you will have following lines
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
The value "1" enables auto update and upgrade. To disable it you can set it to "0". If these aren't set to 1 by default then, set it.
1 comment thread