Why is unattended-upgrades activated by default?












5














I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?



Thanks










share|improve this question






















  • AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
    – Javier Rivera
    Jun 10 '16 at 16:05










  • I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
    – David Tabernero M.
    Oct 10 '18 at 8:08
















5














I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?



Thanks










share|improve this question






















  • AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
    – Javier Rivera
    Jun 10 '16 at 16:05










  • I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
    – David Tabernero M.
    Oct 10 '18 at 8:08














5












5








5


3





I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?



Thanks










share|improve this question













I just migrated from CentOS to Ubuntu Server 16.04 LTS. I chose "no" when it asked me to do automatic updates during the setup. However, I just realized that by default unattended-upgrades is activated and installed by default, since it had installed a kernel update automatically. This is very Windows like and is disappointing me. Why is this the case that it is enabled by default even though the user chose no during the setup?



Thanks







server apt upgrade lts






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 10 '16 at 15:39









Cucumber

2813




2813












  • AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
    – Javier Rivera
    Jun 10 '16 at 16:05










  • I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
    – David Tabernero M.
    Oct 10 '18 at 8:08


















  • AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
    – Javier Rivera
    Jun 10 '16 at 16:05










  • I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
    – David Tabernero M.
    Oct 10 '18 at 8:08
















AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05




AFAIK the setup is asking to download updates during the setup so it installs updates packages, not about activating or not "unattended-upgrades".
– Javier Rivera
Jun 10 '16 at 16:05












I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08




I was about to ask exactly that, it's like I have to remember for every fresh new xbuntu installation that I have to disable them.
– David Tabernero M.
Oct 10 '18 at 8:08










2 Answers
2






active

oldest

votes


















4














I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.



Edit /etc/apt/apt.conf.d/50unattended-upgrades and comment out the -security line.



// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
// "${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};





share|improve this answer





























    7














    Another way to disable unattended upgrades is to



    Edit /etc/apt/apt.conf.d/20auto-updates and set "Unattended-Upgrade" to "0".



    APT::Periodic::Unattended-Upgrade "0";





    share|improve this answer



















    • 1




      Isn't that file called 20auto-upgrades, not 20auto-updates?
      – hheimbuerger
      May 18 '18 at 20:31










    • Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
      – wedi
      Jul 29 '18 at 20:19











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f785339%2fwhy-is-unattended-upgrades-activated-by-default%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.



    Edit /etc/apt/apt.conf.d/50unattended-upgrades and comment out the -security line.



    // Automatically upgrade packages from these (origin:archive) pairs
    Unattended-Upgrade::Allowed-Origins {
    // "${distro_id}:${distro_codename}-security";
    // "${distro_id}:${distro_codename}-updates";
    // "${distro_id}:${distro_codename}-proposed";
    // "${distro_id}:${distro_codename}-backports";
    };





    share|improve this answer


























      4














      I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.



      Edit /etc/apt/apt.conf.d/50unattended-upgrades and comment out the -security line.



      // Automatically upgrade packages from these (origin:archive) pairs
      Unattended-Upgrade::Allowed-Origins {
      // "${distro_id}:${distro_codename}-security";
      // "${distro_id}:${distro_codename}-updates";
      // "${distro_id}:${distro_codename}-proposed";
      // "${distro_id}:${distro_codename}-backports";
      };





      share|improve this answer
























        4












        4








        4






        I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.



        Edit /etc/apt/apt.conf.d/50unattended-upgrades and comment out the -security line.



        // Automatically upgrade packages from these (origin:archive) pairs
        Unattended-Upgrade::Allowed-Origins {
        // "${distro_id}:${distro_codename}-security";
        // "${distro_id}:${distro_codename}-updates";
        // "${distro_id}:${distro_codename}-proposed";
        // "${distro_id}:${distro_codename}-backports";
        };





        share|improve this answer












        I can't explain why it gives you the option and then ignores your response. Without installing, I can't confirm that behaviour, however, it's easy to fix it.



        Edit /etc/apt/apt.conf.d/50unattended-upgrades and comment out the -security line.



        // Automatically upgrade packages from these (origin:archive) pairs
        Unattended-Upgrade::Allowed-Origins {
        // "${distro_id}:${distro_codename}-security";
        // "${distro_id}:${distro_codename}-updates";
        // "${distro_id}:${distro_codename}-proposed";
        // "${distro_id}:${distro_codename}-backports";
        };






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 10 '16 at 15:56









        bc2946088

        3,18021129




        3,18021129

























            7














            Another way to disable unattended upgrades is to



            Edit /etc/apt/apt.conf.d/20auto-updates and set "Unattended-Upgrade" to "0".



            APT::Periodic::Unattended-Upgrade "0";





            share|improve this answer



















            • 1




              Isn't that file called 20auto-upgrades, not 20auto-updates?
              – hheimbuerger
              May 18 '18 at 20:31










            • Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
              – wedi
              Jul 29 '18 at 20:19
















            7














            Another way to disable unattended upgrades is to



            Edit /etc/apt/apt.conf.d/20auto-updates and set "Unattended-Upgrade" to "0".



            APT::Periodic::Unattended-Upgrade "0";





            share|improve this answer



















            • 1




              Isn't that file called 20auto-upgrades, not 20auto-updates?
              – hheimbuerger
              May 18 '18 at 20:31










            • Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
              – wedi
              Jul 29 '18 at 20:19














            7












            7








            7






            Another way to disable unattended upgrades is to



            Edit /etc/apt/apt.conf.d/20auto-updates and set "Unattended-Upgrade" to "0".



            APT::Periodic::Unattended-Upgrade "0";





            share|improve this answer














            Another way to disable unattended upgrades is to



            Edit /etc/apt/apt.conf.d/20auto-updates and set "Unattended-Upgrade" to "0".



            APT::Periodic::Unattended-Upgrade "0";






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 11 '16 at 20:45









            Jorge Castro

            35.9k105422617




            35.9k105422617










            answered Nov 11 '16 at 20:43









            Malissa Sullivan

            7111




            7111








            • 1




              Isn't that file called 20auto-upgrades, not 20auto-updates?
              – hheimbuerger
              May 18 '18 at 20:31










            • Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
              – wedi
              Jul 29 '18 at 20:19














            • 1




              Isn't that file called 20auto-upgrades, not 20auto-updates?
              – hheimbuerger
              May 18 '18 at 20:31










            • Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
              – wedi
              Jul 29 '18 at 20:19








            1




            1




            Isn't that file called 20auto-upgrades, not 20auto-updates?
            – hheimbuerger
            May 18 '18 at 20:31




            Isn't that file called 20auto-upgrades, not 20auto-updates?
            – hheimbuerger
            May 18 '18 at 20:31












            Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
            – wedi
            Jul 29 '18 at 20:19




            Files from linux's *.d folders are read in alphanumeric order irrespective of their exact name. Thus, the answer will work as long as the name is alphanumerically bigger than "10periodic".
            – wedi
            Jul 29 '18 at 20:19


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f785339%2fwhy-is-unattended-upgrades-activated-by-default%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Ellipse (mathématiques)

            Quarter-circle Tiles

            Mont Emei