Can't run apt update because apt-config is running in the background












0















I can't update my system anymore because some variation of apt-config is running in the background. 'ps aux | grep apt' shows one of the following two constantly running in the background. Also I can't kill these programs because the PID is constantly changing. Also another note, a user called '_apt' seems to be running these programs. Any help would be greatly appreciated!



apt-config shell MASTER_KEYRING APT::Key::MasterKeyring
apt-config shell TRUSTEDPARTS Dir::Etc::TrustedParts/d









share|improve this question









New contributor




ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • If you are using Debian and not and official "Ubuntu" release, then this question belongs on unix.stackexchange.com as questions about Debian are off topic on Askubuntu. Thanks!

    – mchid
    1 hour ago











  • Do you have unattended-upgrades installed?

    – mchid
    1 hour ago
















0















I can't update my system anymore because some variation of apt-config is running in the background. 'ps aux | grep apt' shows one of the following two constantly running in the background. Also I can't kill these programs because the PID is constantly changing. Also another note, a user called '_apt' seems to be running these programs. Any help would be greatly appreciated!



apt-config shell MASTER_KEYRING APT::Key::MasterKeyring
apt-config shell TRUSTEDPARTS Dir::Etc::TrustedParts/d









share|improve this question









New contributor




ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • If you are using Debian and not and official "Ubuntu" release, then this question belongs on unix.stackexchange.com as questions about Debian are off topic on Askubuntu. Thanks!

    – mchid
    1 hour ago











  • Do you have unattended-upgrades installed?

    – mchid
    1 hour ago














0












0








0








I can't update my system anymore because some variation of apt-config is running in the background. 'ps aux | grep apt' shows one of the following two constantly running in the background. Also I can't kill these programs because the PID is constantly changing. Also another note, a user called '_apt' seems to be running these programs. Any help would be greatly appreciated!



apt-config shell MASTER_KEYRING APT::Key::MasterKeyring
apt-config shell TRUSTEDPARTS Dir::Etc::TrustedParts/d









share|improve this question









New contributor




ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I can't update my system anymore because some variation of apt-config is running in the background. 'ps aux | grep apt' shows one of the following two constantly running in the background. Also I can't kill these programs because the PID is constantly changing. Also another note, a user called '_apt' seems to be running these programs. Any help would be greatly appreciated!



apt-config shell MASTER_KEYRING APT::Key::MasterKeyring
apt-config shell TRUSTEDPARTS Dir::Etc::TrustedParts/d






apt unattended-upgrades






share|improve this question









New contributor




ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 1 hour ago









mchid

23k25284




23k25284






New contributor




ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









ktb92677ktb92677

1




1




New contributor




ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






ktb92677 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • If you are using Debian and not and official "Ubuntu" release, then this question belongs on unix.stackexchange.com as questions about Debian are off topic on Askubuntu. Thanks!

    – mchid
    1 hour ago











  • Do you have unattended-upgrades installed?

    – mchid
    1 hour ago



















  • If you are using Debian and not and official "Ubuntu" release, then this question belongs on unix.stackexchange.com as questions about Debian are off topic on Askubuntu. Thanks!

    – mchid
    1 hour ago











  • Do you have unattended-upgrades installed?

    – mchid
    1 hour ago

















If you are using Debian and not and official "Ubuntu" release, then this question belongs on unix.stackexchange.com as questions about Debian are off topic on Askubuntu. Thanks!

– mchid
1 hour ago





If you are using Debian and not and official "Ubuntu" release, then this question belongs on unix.stackexchange.com as questions about Debian are off topic on Askubuntu. Thanks!

– mchid
1 hour ago













Do you have unattended-upgrades installed?

– mchid
1 hour ago





Do you have unattended-upgrades installed?

– mchid
1 hour ago










2 Answers
2






active

oldest

votes


















0














From the man apt-config page:



   apt-config is an internal program used by various portions of the APT suite to provide
consistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a
manner that is easy to use for scripted applications.


Therefore, you should find out the parent process of each apt-config process.



Do



for i in $( pgrep apt-config ) ; do ps -fp$i; done


and look at the PPID column.






share|improve this answer































    0














    unattended-upgrades runs apt-daily and apt-daily runs apt-config. You can disable automatic updates by running the following commands:



    sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades
    sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/10perodic


    source:



    wiki.debian.org/UnattendedUpgrades



    On Debian, the periodic file is not the same:



    sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/02perodic





    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',
      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
      });


      }
      });






      ktb92677 is a new contributor. Be nice, and check out our Code of Conduct.










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120247%2fcant-run-apt-update-because-apt-config-is-running-in-the-background%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









      0














      From the man apt-config page:



         apt-config is an internal program used by various portions of the APT suite to provide
      consistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a
      manner that is easy to use for scripted applications.


      Therefore, you should find out the parent process of each apt-config process.



      Do



      for i in $( pgrep apt-config ) ; do ps -fp$i; done


      and look at the PPID column.






      share|improve this answer




























        0














        From the man apt-config page:



           apt-config is an internal program used by various portions of the APT suite to provide
        consistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a
        manner that is easy to use for scripted applications.


        Therefore, you should find out the parent process of each apt-config process.



        Do



        for i in $( pgrep apt-config ) ; do ps -fp$i; done


        and look at the PPID column.






        share|improve this answer


























          0












          0








          0







          From the man apt-config page:



             apt-config is an internal program used by various portions of the APT suite to provide
          consistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a
          manner that is easy to use for scripted applications.


          Therefore, you should find out the parent process of each apt-config process.



          Do



          for i in $( pgrep apt-config ) ; do ps -fp$i; done


          and look at the PPID column.






          share|improve this answer













          From the man apt-config page:



             apt-config is an internal program used by various portions of the APT suite to provide
          consistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a
          manner that is easy to use for scripted applications.


          Therefore, you should find out the parent process of each apt-config process.



          Do



          for i in $( pgrep apt-config ) ; do ps -fp$i; done


          and look at the PPID column.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          waltinatorwaltinator

          22.4k74169




          22.4k74169

























              0














              unattended-upgrades runs apt-daily and apt-daily runs apt-config. You can disable automatic updates by running the following commands:



              sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades
              sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/10perodic


              source:



              wiki.debian.org/UnattendedUpgrades



              On Debian, the periodic file is not the same:



              sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/02perodic





              share|improve this answer






























                0














                unattended-upgrades runs apt-daily and apt-daily runs apt-config. You can disable automatic updates by running the following commands:



                sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades
                sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/10perodic


                source:



                wiki.debian.org/UnattendedUpgrades



                On Debian, the periodic file is not the same:



                sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/02perodic





                share|improve this answer




























                  0












                  0








                  0







                  unattended-upgrades runs apt-daily and apt-daily runs apt-config. You can disable automatic updates by running the following commands:



                  sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades
                  sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/10perodic


                  source:



                  wiki.debian.org/UnattendedUpgrades



                  On Debian, the periodic file is not the same:



                  sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/02perodic





                  share|improve this answer















                  unattended-upgrades runs apt-daily and apt-daily runs apt-config. You can disable automatic updates by running the following commands:



                  sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades
                  sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/10perodic


                  source:



                  wiki.debian.org/UnattendedUpgrades



                  On Debian, the periodic file is not the same:



                  sudo sed -i 's/1/0/g' /etc/apt/apt.conf.d/02perodic






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 1 hour ago

























                  answered 1 hour ago









                  mchidmchid

                  23k25284




                  23k25284






















                      ktb92677 is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      ktb92677 is a new contributor. Be nice, and check out our Code of Conduct.













                      ktb92677 is a new contributor. Be nice, and check out our Code of Conduct.












                      ktb92677 is a new contributor. Be nice, and check out our Code of Conduct.
















                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120247%2fcant-run-apt-update-because-apt-config-is-running-in-the-background%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

                      GameSpot

                      日野市

                      Tu-95轟炸機