Can't install software because “No module named 'debconf'” error in apt/dpkg











up vote
3
down vote

favorite












I get this error message every time I try to install any app.



Setting up apt-listchanges (3.8) ...
Traceback (most recent call last):
File "/tmp/tmp.agLdMrHHO6.aptlc/debconf-helper.py", line 6, in <module>
import debconf
ImportError: No module named 'debconf'
dpkg: error processing package apt-listchanges (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
apt-listchanges
E: Sub-process /usr/bin/dpkg returned an error code (1)









share|improve this question




























    up vote
    3
    down vote

    favorite












    I get this error message every time I try to install any app.



    Setting up apt-listchanges (3.8) ...
    Traceback (most recent call last):
    File "/tmp/tmp.agLdMrHHO6.aptlc/debconf-helper.py", line 6, in <module>
    import debconf
    ImportError: No module named 'debconf'
    dpkg: error processing package apt-listchanges (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    apt-listchanges
    E: Sub-process /usr/bin/dpkg returned an error code (1)









    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I get this error message every time I try to install any app.



      Setting up apt-listchanges (3.8) ...
      Traceback (most recent call last):
      File "/tmp/tmp.agLdMrHHO6.aptlc/debconf-helper.py", line 6, in <module>
      import debconf
      ImportError: No module named 'debconf'
      dpkg: error processing package apt-listchanges (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      apt-listchanges
      E: Sub-process /usr/bin/dpkg returned an error code (1)









      share|improve this question















      I get this error message every time I try to install any app.



      Setting up apt-listchanges (3.8) ...
      Traceback (most recent call last):
      File "/tmp/tmp.agLdMrHHO6.aptlc/debconf-helper.py", line 6, in <module>
      import debconf
      ImportError: No module named 'debconf'
      dpkg: error processing package apt-listchanges (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      apt-listchanges
      E: Sub-process /usr/bin/dpkg returned an error code (1)






      apt software-installation dpkg debconf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 14 '17 at 23:58









      Byte Commander

      62.4k26169282




      62.4k26169282










      asked Jan 14 '17 at 23:42









      Chihab Chergui

      163




      163






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          6
          down vote













          You are getting this error because your Python 3 installation is broken. It can not import the debconf module. You can confirm this by trying the following:



          $ python3 -m debconf
          /usr/bin/python3: No module named debconf


          If this is the case, you should check that the debconf.py file exists in /usr/lib/python3/dist-packages and that this directory is on your sys.path.



          In the past, I've experienced this problem when I installed a custom Python interpreter. Make sure that the command type python3 returns /usr/bin/python3.






          share|improve this answer





















          • I had to uninstall the python version I had installed from sources to get rid of this message.
            – azmeuk
            Jun 21 at 10:23


















          up vote
          0
          down vote













          The answer of



          type python3


          should be



          python3 is /usr/bin/python3


          If it isn't:



          Edit file



          /etc/profile


          Remove



          /usr/local/bin:


          from path after first 'if' condition



          Reboot



          It's done now.



          Works on RPi jessy to stretch upgrade






          share|improve this answer



















          • 1




            Doesn't that effect other bins'?
            – abu_bua
            Nov 23 at 22:05











          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: 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%2f872025%2fcant-install-software-because-no-module-named-debconf-error-in-apt-dpkg%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








          up vote
          6
          down vote













          You are getting this error because your Python 3 installation is broken. It can not import the debconf module. You can confirm this by trying the following:



          $ python3 -m debconf
          /usr/bin/python3: No module named debconf


          If this is the case, you should check that the debconf.py file exists in /usr/lib/python3/dist-packages and that this directory is on your sys.path.



          In the past, I've experienced this problem when I installed a custom Python interpreter. Make sure that the command type python3 returns /usr/bin/python3.






          share|improve this answer





















          • I had to uninstall the python version I had installed from sources to get rid of this message.
            – azmeuk
            Jun 21 at 10:23















          up vote
          6
          down vote













          You are getting this error because your Python 3 installation is broken. It can not import the debconf module. You can confirm this by trying the following:



          $ python3 -m debconf
          /usr/bin/python3: No module named debconf


          If this is the case, you should check that the debconf.py file exists in /usr/lib/python3/dist-packages and that this directory is on your sys.path.



          In the past, I've experienced this problem when I installed a custom Python interpreter. Make sure that the command type python3 returns /usr/bin/python3.






          share|improve this answer





















          • I had to uninstall the python version I had installed from sources to get rid of this message.
            – azmeuk
            Jun 21 at 10:23













          up vote
          6
          down vote










          up vote
          6
          down vote









          You are getting this error because your Python 3 installation is broken. It can not import the debconf module. You can confirm this by trying the following:



          $ python3 -m debconf
          /usr/bin/python3: No module named debconf


          If this is the case, you should check that the debconf.py file exists in /usr/lib/python3/dist-packages and that this directory is on your sys.path.



          In the past, I've experienced this problem when I installed a custom Python interpreter. Make sure that the command type python3 returns /usr/bin/python3.






          share|improve this answer












          You are getting this error because your Python 3 installation is broken. It can not import the debconf module. You can confirm this by trying the following:



          $ python3 -m debconf
          /usr/bin/python3: No module named debconf


          If this is the case, you should check that the debconf.py file exists in /usr/lib/python3/dist-packages and that this directory is on your sys.path.



          In the past, I've experienced this problem when I installed a custom Python interpreter. Make sure that the command type python3 returns /usr/bin/python3.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 31 '17 at 17:25









          hedgie

          1612




          1612












          • I had to uninstall the python version I had installed from sources to get rid of this message.
            – azmeuk
            Jun 21 at 10:23


















          • I had to uninstall the python version I had installed from sources to get rid of this message.
            – azmeuk
            Jun 21 at 10:23
















          I had to uninstall the python version I had installed from sources to get rid of this message.
          – azmeuk
          Jun 21 at 10:23




          I had to uninstall the python version I had installed from sources to get rid of this message.
          – azmeuk
          Jun 21 at 10:23












          up vote
          0
          down vote













          The answer of



          type python3


          should be



          python3 is /usr/bin/python3


          If it isn't:



          Edit file



          /etc/profile


          Remove



          /usr/local/bin:


          from path after first 'if' condition



          Reboot



          It's done now.



          Works on RPi jessy to stretch upgrade






          share|improve this answer



















          • 1




            Doesn't that effect other bins'?
            – abu_bua
            Nov 23 at 22:05















          up vote
          0
          down vote













          The answer of



          type python3


          should be



          python3 is /usr/bin/python3


          If it isn't:



          Edit file



          /etc/profile


          Remove



          /usr/local/bin:


          from path after first 'if' condition



          Reboot



          It's done now.



          Works on RPi jessy to stretch upgrade






          share|improve this answer



















          • 1




            Doesn't that effect other bins'?
            – abu_bua
            Nov 23 at 22:05













          up vote
          0
          down vote










          up vote
          0
          down vote









          The answer of



          type python3


          should be



          python3 is /usr/bin/python3


          If it isn't:



          Edit file



          /etc/profile


          Remove



          /usr/local/bin:


          from path after first 'if' condition



          Reboot



          It's done now.



          Works on RPi jessy to stretch upgrade






          share|improve this answer














          The answer of



          type python3


          should be



          python3 is /usr/bin/python3


          If it isn't:



          Edit file



          /etc/profile


          Remove



          /usr/local/bin:


          from path after first 'if' condition



          Reboot



          It's done now.



          Works on RPi jessy to stretch upgrade







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 at 22:03









          abu_bua

          3,10081023




          3,10081023










          answered Nov 23 at 21:43









          blackmoon

          1




          1








          • 1




            Doesn't that effect other bins'?
            – abu_bua
            Nov 23 at 22:05














          • 1




            Doesn't that effect other bins'?
            – abu_bua
            Nov 23 at 22:05








          1




          1




          Doesn't that effect other bins'?
          – abu_bua
          Nov 23 at 22:05




          Doesn't that effect other bins'?
          – abu_bua
          Nov 23 at 22:05


















          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%2f872025%2fcant-install-software-because-no-module-named-debconf-error-in-apt-dpkg%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

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?