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?


1 Answer 1


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.

This updates the config file /etc/apt/apt.conf.d/20auto-upgrades, setting APT::Periodic::Unattended-Upgrade to "0".

  $ sudo dpkg-reconfigure -plow unattended-upgrades
  Replacing config file /etc/apt/apt.conf.d/20auto-upgrades with new version
  $ cat /etc/apt/apt.conf.d/20auto-upgrades
  APT::Periodic::Update-Package-Lists "0";
  APT::Periodic::Unattended-Upgrade "0";

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.

           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.
  • 4
    I've just revised the answer to include more information.
    – Pandya
    Sep 22, 2018 at 16:03
  • Is the following procedure correct for disabling all automated updates? reddit.com/r/linuxadmin/comments/kvcfv0/… Jan 12, 2021 at 3:48
  • Can someone explain -plow? It looks like perhaps the -pl would specify a low priority (just a guess). I have no clue on ow. Nov 9, 2021 at 17:10
  • -plow == --priority=low (that's why it's always better to give examples with long options)
    – zigarn
    Dec 14, 2021 at 12:07

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