How to disable COMPLETLY all updates? [duplicate]

I'm running Ubuntu 21.04 and I want to disable all updates for ever. The choices in the software updates do not offer NEVER in all options. I dont want to SHOW that there are update available. Nothing.

I want to install this in my in-laws and they are too old to deal with that. I always have to connect and take care of their system (right now with Windows but wants to install Ubuntu).

I see in the questions asked, that older versions had that choice available. Can I change this in a file somewhere?


Disabling all updates will require you to remove all of the references for apt and also tell snapd to not perform any updates. Aside from the security implications that would come from running software that never receives any bug-fixes, this would effectively eliminate your in-laws' ability to install applications from the Software Centre.

However, if you are dead-set on eliminating updates, this is how you would do it:

  1. Open the Software & Updates application
  2. Uncheck everything in "Ubuntu Software": Ubuntu Software
  3. Uncheck everything in "Other Software": Other Software
  4. Block snapd from accessing the Snap Store API:
    1. Open Terminal (if it's not already open)
    2. Edit the /etc/hosts file with your text editor of choice. Be sure to prefix the command with sudo:
      sudo vi /etc/hosts
      
    3. Add this line under the IPv4 section:
      127.0.0.1 api.snapcraft.io
      
    4. Save the file

By doing this, Ubuntu will be unable to check for updates on its own. However, note that this will not stop applications such as Chrome from doing their own updates. These can be controlled by the application and operate outside the typical update process.

One final note; be sure to undo all of these changes and perform updates whenever you go and visit your in-laws. Updates are offered for a reason, and an unpatched system — even one that is running Linux — is not something that should be connected to the open Internet anymore.