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)
apt software-installation dpkg debconf
add a comment |
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)
apt software-installation dpkg debconf
add a comment |
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)
apt software-installation dpkg debconf
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
apt software-installation dpkg debconf
edited Jan 14 '17 at 23:58
Byte Commander
62.4k26169282
62.4k26169282
asked Jan 14 '17 at 23:42
Chihab Chergui
163
163
add a comment |
add a comment |
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.
I had to uninstall the python version I had installed from sources to get rid of this message.
– azmeuk
Jun 21 at 10:23
add a comment |
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
1
Doesn't that effect other bins'?
– abu_bua
Nov 23 at 22:05
add a comment |
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.
I had to uninstall the python version I had installed from sources to get rid of this message.
– azmeuk
Jun 21 at 10:23
add a comment |
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.
I had to uninstall the python version I had installed from sources to get rid of this message.
– azmeuk
Jun 21 at 10:23
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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
1
Doesn't that effect other bins'?
– abu_bua
Nov 23 at 22:05
add a comment |
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
1
Doesn't that effect other bins'?
– abu_bua
Nov 23 at 22:05
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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