Disable automatic execution of apt update after running add-apt-repository on Ubuntu 18.X

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.



Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.







share|improve this question























    up vote
    1
    down vote

    favorite












    Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.



    Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.







    share|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.



      Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.







      share|improve this question











      Okay so it's a feature that has been added to Ubuntu 18.04 which automatically calls apt update after adding any PPA, sometimes it's a time saver as I don't have to run sudo apt update manually after adding a PPA. But sometimes it just pisses me off when I've to add multiple PPA's, and I've to wait for all the list updates after adding every single PPA.



      Don't recommend "Can't you add multiple PPA by && ?", cause it's just pain.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 7 at 6:36









      Vishesh Gautam

      36011




      36011




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Checking the help:



          $ add-apt-repository --help
          Usage: add-apt-repository <sourceline>
          ...
          Options:
          -h, --help show this help message and exit
          -m, --massive-debug Print a lot of debug information to the command line
          -r, --remove remove repository from sources.list.d directory
          -s, --enable-source Allow downloading of the source packages from the
          repository
          -y, --yes Assume yes to all queries
          -n, --no-update Do not update package cache after adding
          -u, --update Update package cache after adding (legacy option)
          -k KEYSERVER, --keyserver=KEYSERVER
          Legacy option, unused.


          So:



          sudo add-apt-repository -n ppa:...





          share|improve this answer





















            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f1044372%2fdisable-automatic-execution-of-apt-update-after-running-add-apt-repository-on-ub%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            Checking the help:



            $ add-apt-repository --help
            Usage: add-apt-repository <sourceline>
            ...
            Options:
            -h, --help show this help message and exit
            -m, --massive-debug Print a lot of debug information to the command line
            -r, --remove remove repository from sources.list.d directory
            -s, --enable-source Allow downloading of the source packages from the
            repository
            -y, --yes Assume yes to all queries
            -n, --no-update Do not update package cache after adding
            -u, --update Update package cache after adding (legacy option)
            -k KEYSERVER, --keyserver=KEYSERVER
            Legacy option, unused.


            So:



            sudo add-apt-repository -n ppa:...





            share|improve this answer

























              up vote
              2
              down vote



              accepted










              Checking the help:



              $ add-apt-repository --help
              Usage: add-apt-repository <sourceline>
              ...
              Options:
              -h, --help show this help message and exit
              -m, --massive-debug Print a lot of debug information to the command line
              -r, --remove remove repository from sources.list.d directory
              -s, --enable-source Allow downloading of the source packages from the
              repository
              -y, --yes Assume yes to all queries
              -n, --no-update Do not update package cache after adding
              -u, --update Update package cache after adding (legacy option)
              -k KEYSERVER, --keyserver=KEYSERVER
              Legacy option, unused.


              So:



              sudo add-apt-repository -n ppa:...





              share|improve this answer























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                Checking the help:



                $ add-apt-repository --help
                Usage: add-apt-repository <sourceline>
                ...
                Options:
                -h, --help show this help message and exit
                -m, --massive-debug Print a lot of debug information to the command line
                -r, --remove remove repository from sources.list.d directory
                -s, --enable-source Allow downloading of the source packages from the
                repository
                -y, --yes Assume yes to all queries
                -n, --no-update Do not update package cache after adding
                -u, --update Update package cache after adding (legacy option)
                -k KEYSERVER, --keyserver=KEYSERVER
                Legacy option, unused.


                So:



                sudo add-apt-repository -n ppa:...





                share|improve this answer













                Checking the help:



                $ add-apt-repository --help
                Usage: add-apt-repository <sourceline>
                ...
                Options:
                -h, --help show this help message and exit
                -m, --massive-debug Print a lot of debug information to the command line
                -r, --remove remove repository from sources.list.d directory
                -s, --enable-source Allow downloading of the source packages from the
                repository
                -y, --yes Assume yes to all queries
                -n, --no-update Do not update package cache after adding
                -u, --update Update package cache after adding (legacy option)
                -k KEYSERVER, --keyserver=KEYSERVER
                Legacy option, unused.


                So:



                sudo add-apt-repository -n ppa:...






                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jun 7 at 6:42









                muru

                128k19269459




                128k19269459






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1044372%2fdisable-automatic-execution-of-apt-update-after-running-add-apt-repository-on-ub%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Cutting all the characters after the last /