How to disable the update manager popup?

I configured this:

Automatically check for updates: Never

But the update manager keeps poping up against my wishes, I have no control. I feel like I’m using Windows again.

I want to be able to install updates from time to time, manually.

What can I do?

Asked By: ChocoDeveloper

||

You’ve set it to never check for updates, but you’ll find the update manager is opening because it already knows there are updates to be done. Do the updates that it has and it won’t bother you again until you update the file lists.

It’s a bit like terminal will tell you when there are updates in the apt list that have been put there with ‘apt-get update’, and will keep on reminding you until you install them.

Answered By: fabricator4

Just turning off notification of updates will not be enough. There are several background jobs that run apt-get update (including a nightly cron job if I remember right).

To stop the pop-up run update-manager

Then in settings, set Update automaticly to ‘Never’ and Notify of new version to ‘Never’

Sample settings

I suggest leave security at immediately and, setting “others” to every two weeks.

You also need to make sure your not running apt-get update anywhere else. This can happen when you install software, run update-manager, or in a cron job.

If that doesn’t work for you:

You can do this by

editing /etc/apt/apt.conf.d/10periodic and changeing

APT::Periodic::Update-Package-Lists “1”;

to

APT::Periodic::Update-Package-Lists “0”;

Last Resort

You can also do apt-get remove update-manager to remove the feature all together.

Answered By: coteyr

Disabling the popups in the configuration seems not to be possible, as told by coteyr in the comments on this page (https://askubuntu.com/a/218780/19753: "It’s important to note that other then removing update-manager-core you can’t really stop the popup. You can just delay it till something else runs apt-get update" – coteyr Nov 18 ’12 at 9:14).

I also wanted to get rid of the popups and of the underlying program that would consume the resources of my Ubuntu 12.04 system on a weak Toshiba AC100 (ARM) — https://answers.launchpad.net/ac100/+question/214505/.

So the simplest working solution must be removing the "update-manager" (as I’ve mentioned in the comments at https://unix.stackexchange.com/a/46315/4319 ):

apt-get remove update-manager

I have had no problems after that because I could still use apt-get or synaptic to do package updates.

Useful comments:

antivirtel: on 16.10 it couldn’t be removed, since it will remove other packages, like ubuntu-desktop. A possible solution: remove the binary file (/usr/bin/update-manager) or chmod -x /usr/bin/update-manager, and apt hold package to prevent updates (echo update-manager hold | sudo dpkg --set-selections).

mchid: ubuntu-desktop is a metapackage so you can remove it without removing the actual desktop so that shouldn’t be a problem.

Dylan Parry: It’s probably better to just remove update-notifier rather than the entire update manager. Remember to run pkill update-notifier after removing it (or reboot), otherwise Ubuntu will show an error in the indicator panel.

It is good that Ubuntu automatically checks for updates, it is not good that it pops-up windows against your will. You can have less invasive notifications via the gnome bar or from terminal based applications (like Byobu).

To disable the update-notifier while leaving the update-manager automatically checking for updates, run the following from a terminal:

  1. sudo apt-get install gconf-editor in case you don’t have it already installed
  2. sudo gconf-editor mind the sudo attribute
  3. search for app->update-notifier and un-tick the “auto-launch” option
  4. close the window
  5. gconf-editor this time as a user (i.e. without sudo)
  6. search again for app->update-notifier and change the “regular_auto_launch_interval” to the number of days you want it to wait before popping-up (0 is immediately, 1 one day, 99999999 basically never again)
Answered By: Andrea Borga
pkill update-notifier
sudo mv /usr/bin/update-notifier /usr/bin/update-notifier.real
echo -e '#!/bin/bashnwhile :; do /bin/sleep 86400; done' | sudo tee /usr/bin/update-notifier
sudo chmod 755 /usr/bin/update-notifier

Brutal, but effective.

Answered By: GBA

I had a similar issue. Executing,

apt-get purge update-notifer*

resolved issue!
Ubuntu 12.04.5 LTS

Answered By: user205032

Open up the config file that runs the update-manager part after apt

nano /etc/apt/apt.conf.d/99update-notifier

Add ‘#’ infront of the line making it something similar to:

#DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi "; };

Done.

This worked for me in stopping the update manager popping up after every apt update while still allowing me to run update-manager manually if i wanted to.

Answered By: Allu2

I do not like automatic updates so I want to disable them always.
I use Ubuntu 14.04 with Gnome desktop environment. gsettings may not be available in other Ubuntu flavors.

On slow internet connections disabling apt-xapian-index prevents automatic package downloading which will take all your bandwith (I have 256 kb/s mobile sometimes).

sudo chmod a-x /etc/cron.daily/update-notifier-common 
sudo chmod a-x /etc/cron.weekly/apt-xapian-index 
sudo chmod a-x /etc/cron.weekly/update-notifier-common 

gsettings set com.ubuntu.update-notifier regular-auto-launch-interval 3650
gsettings set com.ubuntu.update-manager launch-time 1900000000

Seemed to do the trick for me. 3650 means days…
1900000000 tells that the update-manager is last run on year 2030 🙂

Update: On Ubuntu 16.04 it seems that you are able to disable automatic updates with following commands and by editing two files:

sudo mv /etc/xdg/autostart/update-notifier.desktop /etc/xdg/autostart/update-notifier.desktop.old 
sudo mv /etc/xdg/autostart/gnome-software-service.desktop /etc/xdg/autostart/gnome-software-service.desktop.old

If extension is other than .desktop these commands won’t be run on system start.

Edit /etc/apt/apt.conf.d/10periodic

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

Edit /etc/apt/apt.conf.d/20auto-upgrades

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";

If you have started Update manager even ONCE these files will contain four lines:

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";

Just change all values to "0"

Answered By: Maza

I am not sure why anyone has not tried this.

I simply disable all checkpoints under “ubuntu software” and “other software” in “software and updates”, besides setting options under “automatic updates” and “check for newer version” to “never”. This avoids any check up as there is no link, hence no pop-up.

My main pain point was that these updates eat lot of internet data. For people on move, 3G/4G data is expensive and we’d like to optimize its usage. Hope ubuntu understands this concern and provides simpler options to disable updates completely as per user requirements.

Answered By: sbharti

Edit /etc/update-manager/release-upgrades and set:

Prompt=never
change this with your favorite editor).

Never use update-manager with -d this checks whether the next release is available or not.

Answered By: Akshay Patil

Ubuntu 16.04 running Gnome Session

You can fix that by removing “Update Notifier” from the “Startup Applications.”

First allow it to display in the list of your startup applications.

sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/update-notifier.desktop

Then uncheck the item here:

gnome-session-properties

This way you don’t need to make any changes in your auto-update configuration (but you can if you want to), rename system files nor remove packages.

Answered By: user334639

For Ubuntu 16.04, and possibly other releases as well:

sudo chmod 000 /usr/bin/update-manager
sudo chmod 000 /usr/bin/update-notifier

Then reboot. (Alternatively, it is possible that merely logging out and back in is sufficient.)

You can verify that update-manager is not running by examining the output of:

ps auxwww | grep update

(Aside: Other posters have suggested sudo apt-get purge update-notifer*. However, I prefer not to remove packages that might be tangled up in the various desktop meta-packages.)

Answered By: mpb

To disable the anoying popup after 12.04 had no longer support I did:
cd to /etc/apt/apt.conf.d

and edited: 15update-stamp

commented de the original line and added a “fixed” line. My file had:

APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};

and now I substituted it with:

APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>true || true";};

Now every time the update is run it is sort of as: “updates where searched for, not found (your system was no longer supported), but it was attempted, everything is as ok as it will get”

Answered By: Ferreira

To disable the popup you must disable the program responsible for displaying them, which is update-notifier.

Stop active update-notifier:

  1. pkill update-notfier

Disable the autostart on login for current user:

  1. cp /etc/xdg/autostart/update-notifier.desktop ~/.config/autostart/update-notifier.desktop
  2. echo "X-GNOME-Autostart-enabled=false" >> ~/.config/autostart/update-notifier.desktop

Tested on Ubuntu 18.04.5

Answered By: Lucas

Replace the update-notifier package with a dummy package to override the component while satisfying dependencies.

equivs-control update-notifier && sed -i 's/.package name; defaults to equivs-dummy./update-notifier/g' update-notifier && sed -i 's/.short description; defaults to some wise words/dummy package/g' update-notifier && sed -i 's/. Version: .enter version here; defaults to 1.0./Version: 3.193/g' update-notifier && equivs-build update-notifier && dpkg -i update-notifier_3.193_all.deb

You might need to tune the version number.

Answered By: loop

We have installed Ubuntu 20.04 on our local server and installed Lubuntu desktop on it for GUI. We have disabled the update-notifier pop up by uninstalling its package from the server. Below is the command of it.

# sudo apt-get --purge remove lubuntu-update-notifier

I think the above command will be helpful to you.

Answered By: Niranjaysingh Rajput

I am using Ubuntu 20.04–the latest Long Term Support version as of January of 2022–and am here to give you the details to stop those annoying popups for good!

This is done with the Terminal. Just perform these steps:

  1. Hold down the Ctrl and Alt keys and press the T key to bring up the Terminal.

  2. The Terminal needs to be elevated to Administrator (root) privileges. To do this, type:

sudo -i

and press the Enter key. You will be prompted for your login password when you do this.

  1. Next, enter this command at the Terminal. What this command does is make the "update-manager" program non-executable and will therefore put an end to those annoying popups for good:

chmod -x /usr/bin/update-manager

  1. Next, type the "exit" command at the Terminal line twice–once to return to normal, non-elevated privileges, and a second time, to close the Terminal.

IMPORTANT: You should still use this Update Manager regularly, since installing software updates are highly recommended. To do this, follow these steps:

  1. Hold down the Ctrl and Alt keys and press the T key to bring up the Terminal.

  2. To gain Administrator (root) privileges, type:

sudo -i

and press the Enter key. You will be prompted for your login password when you do this.

  1. Next, entering this command at the Terminal and will make the "update-manager" program executable:

chmod -x /usr/bin/update-manager

  1. Next, type this command on the command line to update your system:

update-manager

This will bring up the software update screen, which will prompt you to install the recommended software updates. Just allow the updates to be downloaded and installed.

  1. If you are asked to reboot, select the Cancel option. This will close the Software Updates window, and allow you to return to the Terminal command line.

  2. Make the Software Updates program non-executable again by typing this line:

chmod -x /usr/bin/update-manager

  1. Next, to reboot your system, type this command to reboot your system:

reboot

ALSO NOTE, Software updates, after being installed, can leave unwanted files on your system, which simply wastes disk space. To remove these files, you can open the Terminal, elevate the Terminal to administrator privileges, and type these two lines to remove those files that are no longer needed:

apt-get autoremove
apt-get clean

After typing these two lines, you can type "exit" at the Terminal command prompt two times to close the Terminal.

Hope this information helps you!

Answered By: user1562761

If the goal is just to get rid of that annoying popup message, it can be done (and undone later) easily. The UpdateManager is just a python package, so:
In text editor with root privileges open
UpdateManager.py

sudo gedit /usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py

In function UpdateManager.start_available
(string # 237)
insert return statement, so as the result looks like:

def start_available(self, cancelled_update=False, error_occurred=False):
    self._look_busy()
    self.refresh_cache()

    return   # <<<--- added statement

    if self.cache is None:
        return

    pane = self._make_available_pane(self.cache.install_count
                                     + self.cache.del_count,
                                     os.path.exists(REBOOT_REQUIRED_FILE),
                                     cancelled_update, error_occurred)
    self._start_pane(pane) 

Save the result and that is it.

If later you decide to enable the message back, you just remove that return statement.

Answered By: Sergey K

In Ubuntu 20.04 executing

sudo apt remove update-manager

as suggested by Ivan Zakharyaschev in accepted answer after some time leads to appearing "red circle with a horizontal white line through, it persist on the panel in the top right" as described here.

Reinstalling update-manager removes this red circle warning but it is a bit tricky. Instruction to reinstall it is here.

For me to disable update notifications popups helped the following commands:

  • pkill update-notifier
  • sudo chmod -x /usr/bin/update-notifier

This approach also works in Ubuntu 22.04.

Answered By: Anton Samokat

In Jammy I had to remove the autostart app. There doesn’t seem to be a sensible way to solve the problem.

sudo rm /etc/xdg/autostart/update-notifier.desktop

I suspect it will be replaced next update of update-notifier.

Answered By: Ken Sharp

On my USB stick Ubuntu 20.04 (Focal) I just renamed /usr/bin/update-manager to /usr/bin/update-manager1. I can run that thing manually if I want to, but in fact there is no disk space for updates.

And as to the security considerations… come on, folks, it’s just a 32G USB stick with a Linux on it.

Answered By: 18446744073709551615

Here is a clean solution that does not require admin privileges. Paste the following into a new ~/.config/autostart/update-notifier.desktop:

[Desktop Entry]
Hidden=true

The advantages are the following:

  • This setting applies immediately upon your next login. It’s guaranteed no window shows
  • No extra process is running, and no extra memory is used
  • It works on Ubuntu releases the packages are unremovable
  • Updates still refresh and download with settings separate from notifying
  • Each user can differ
  • Your modifications are not overwritten upon update
Answered By: Daniel T
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.