1

This question already has an answer here:

I recently installed Trisquel 8.0 LTS (Flidas) on my Desktop PC which was running on Trisquel 7.0 for 4 year. The system became very slow. When I check the RAM and CPU Usage, I found that CPU is almost at 100 % I tun top to see what is going wrong and found that unattended-upgr is consuming whole CPU.

enter image description here

I tried to kill it by PID using sudo kill 1803 but after sometime, it started again automatically. I know that Unattended Upgrades are purposed to install important security updates automatically, however I need to disable it being launched automatically.

How do I do that?

marked as duplicate by Stephen Kitt, telcoM, Community Sep 22 '18 at 15:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • @StephenKitt This answer looks good and useful. I'll try it (currently powercut due to rain). – Pandya Sep 22 '18 at 14:19
3

You would need to stop the automatic updater as follows:

Run the following command

sudo dpkg-reconfigure -plow unattended-upgrades

You'll see prompt for Configuring unattended-upgrades :

enter image description here

Select No to disable automatic download and install of updates and press Enter.

For more information on configuring packages, see man dpkg-reconfigure

--configure package...|-a|--pending
          Configure a package which has been unpacked but not yet  config‐
          ured.   If  -a  or  --pending  is  given instead of package, all
          unpacked but unconfigured packages are configured.

          Configuring consists of the following steps:

          1.  Unpack  the  conffiles, and at the same time back up the old
          conffiles, so that they can be restored if something goes wrong.

          2. Run postinst script, if provided by the package

dpkg-reconfigure - reconfigure an already installed package

   -pvalue, --priority=value
       Specify the minimum priority of question that will be displayed.
       dpkg-reconfigure normally shows low priority questions no matter
       what your default priority is. See debconf(7) for a list.

   -a, --all
       Reconfigure all installed packages that use debconf. Warning: this
       may take a long time.

--no-reload
           Prevent dpkg-reconfigure from reloading templates. Use with caution; this will prevent
           dpkg-reconfigure from repairing broken templates databases.  However, it may be useful
           in constrained environments where rewriting the templates database is expensive.
  • 1
    I've just revised the answer to include more information. – Pandya Sep 22 '18 at 16:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.